Issue #383 invalid

sys has not attribute 'implementation'

fantomas42
created an issue

Hi,

using distribute under Python 3.3, I have this following error :

File "/tmp//distribute-0.6.45-py3.3.egg/pkg_resources.py", line 37, in <module> if sys.version_info >= (3, 3) and sys.implementation.name == "cpython": AttributeError: 'module' object has no attribute 'implementation'

The commit in cause : https://bitbucket.org/tarek/distribute/commits/dbd3d486dc4d94ce02ee8b8cb61afadcab506080

How to reproduce the issue for the people who does not have Python 3.3 installed:

http://ideone.com/6fFBQz

Comments (3)

  1. Arfrever Frehtes Taifersar Arahesis

    I have Python 3.3 installed and it definitely has sys.implementation attribute:

    $ python3.3
    Python 3.3.2+ (3.3:aafa11c1dd61+, Jun  9 2013, 03:10:31) 
    [GCC 4.7.3] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sys
    >>> sys.implementation
    namespace(cache_tag='cpython-33', hexversion=50529184, name='cpython', version=sys.version_info(major=3, minor=3, micro=3, releaselevel='alpha', serial=0))
    >>>
    

    http://docs.python.org/3.3/library/sys.html#sys.implementation

    Which version of Python 3.3 do you use? How and when have you installed it?

  2. fantomas42 reporter

    I have installed this version from a PPA. And effectively my version of Python3.3 seems old.

    Python 3.3.0a0 (default, Jan 13 2012, 11:02:53) 
    [GCC 4.6.2] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    

    I will let you close the issue.

    Regards

  3. Arfrever Frehtes Taifersar Arahesis

    You are using an early snapshot of Python 3.3. Python 3.3.0 was released over 8 months later after your snapshot. There is also other code in Distribute/Setuptools, which assumes that if major and minor version of Python is 3.3, then some features are available.

  4. Log in to comment