New submission from Florian Schulze <florian.schu...@gmx.net>: 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. ---------- components: Interpreter Core messages: 317664 nosy: fschulze priority: normal severity: normal status: open title: Importing bs4 fails with -3 option in Python 2.7.15 type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33645> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com