sys has not attribute 'implementation'

Create issue
Issue #383 invalid
Julien Fache created an issue


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

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

The commit in cause :

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

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))

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

  2. Julien Fache 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.


  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