This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fschulze
Recipients fschulze
Date 2018-05-25.09:17:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527239862.03.0.682650639539.issue33645@psf.upfronthosting.co.za>
In-reply-to
Content
Since Python 2.7.15 import bs4 (BeautifulSoup4) fails when using the -3 option on the Python binary.

...
    'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>'You need to convert the code, either by installing it (`python setup.py install`) or by running 2to3 (`2to3 -w bs4`).'
                                                                                                       ^
SyntaxError: unknown parsing error

With 2.7.14 this works fine and I get the expected deprecation warning.

A workaround is to import the package without -3 first, so the .pyc file is generated and used in subsequent imports.
History
Date User Action Args
2018-05-25 09:17:42fschulzesetrecipients: + fschulze
2018-05-25 09:17:42fschulzesetmessageid: <1527239862.03.0.682650639539.issue33645@psf.upfronthosting.co.za>
2018-05-25 09:17:41fschulzelinkissue33645 messages
2018-05-25 09:17:41fschulzecreate