Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 427562

Summary: Setuptools with python 3.2 tries to import from python 2.7
Product: Gentoo Linux Reporter: mathepic
Component: [OLD] UnspecifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description mathepic 2012-07-21 20:24:58 UTC
Created attachment 318852 [details]
emerge --info

gentoo ~ # python3.2 -c 'import pkg_resources;print("import successful, fixed")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 45
    def _bypass_ensure_directory(name, mode=0777):
                                               ^
SyntaxError: invalid token

# I have attached the emerge --info output
# I have also ran python-updater and manually oneshotted python-updater to no avail
Comment 1 mathepic 2012-07-21 23:01:25 UTC
I fixed this; it was specific to some weird settings in my environment.