Richard Penman added the comment:
The full error log:
$ python3
Failed to import the site module
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/site.py", line 75, in
__boot()
File "/usr/local/lib/python2.7/site-packages/site.py", line 23, in __boot
loader.load_module('site')
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site.py", line
563, in
main()
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site.py", line
549, in main
known_paths = addusersitepackages(known_paths)
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site.py", line
281, in addusersitepackages
user_site = getusersitepackages()
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site.py", line
257, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site.py", line
247, in getuserbase
USER_BASE = get_config_var('userbase')
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/sysconfig.py",
line 582, in get_config_var
return get_config_vars().get(name)
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/sysconfig.py",
line 561, in get_config_vars
import _osx_support
File
"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/_osx_support.py",
line 4, in
import re
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/re.py",
line 335, in
import copyreg
File "/usr/local/lib/python2.7/site-packages/copyreg/__init__.py", line 7, in
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are
trying to run from the python-future src folder or your installation of
python-future is corrupted.
What needs to be changed to avoid importing Python 2 modules?
--
___
Python tracker
<http://bugs.python.org/issue27090>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com