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 <module>
    __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 <module>
    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 <module>
    import re
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/re.py", 
line 335, in <module>
    import copyreg
  File "/usr/local/lib/python2.7/site-packages/copyreg/__init__.py", line 7, in 
<module>
    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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27090>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to