Issue #169 wontfix

ImportError: cannot import name _config_vars

Anonymous created an issue

Seems _config_vars is removed in python3 in 5356 revision:

File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 946, in run_commands self.run_command(cmd) File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 965, in run_command cmd_obj.run() File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/command/install.py", line 73, in run self.do_egg_install() File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/command/install.py", line 93, in do_egg_install self.run_command('bdist_egg') File "/usr/local/py3k/lib/python3.2/distutils/cmd.py", line 315, in run_command self.distribution.run_command(command) File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 965, in run_command cmd_obj.run() File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/command/bdist_egg.py", line 172, in run self.run_command("egg_info") File "/usr/local/py3k/lib/python3.2/distutils/cmd.py", line 315, in run_command self.distribution.run_command(command) File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 965, in run_command cmd_obj.run() File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/command/egg_info.py", line 179, in run self.find_sources() File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/command/egg_info.py", line 254, in find_sources mm.run() File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/command/egg_info.py", line 308, in run self.add_defaults() File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/command/egg_info.py", line 332, in add_defaults sdist.add_defaults(self) File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/command/sdist.py", line 191, in add_defaults build_ext = self.get_finalized_command('build_ext') File "/usr/local/py3k/lib/python3.2/distutils/cmd.py", line 300, in get_finalized_command cmd_obj = self.distribution.get_command_obj(command, create) File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 837, in get_command_obj klass = self.get_command_class(command)

File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/dist.py", line 361, in get_command_class self.cmdclass[command] = cmdclass = ep.load() File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/pkg_resources.py", line 1954, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.13-py3.2.egg/setuptools/command/build_ext.py", line 14, in <module> from distutils.sysconfig import _config_vars ImportError: cannot import name _config_vars

Comments (3)

  1. Anonymous

    Repost backtrace with better formatting:

    /home/sources/greenlet$ sudo python3 ./setup.py install
    /usr/local/py3k/lib/python3.2/distutils/dist.py:263: UserWarning: Unknown distribution option: 'repository'
      warnings.warn(msg)
    running install
    /usr/local/py3k/lib/python3.2/distutils/sysconfig.py:96: DeprecationWarning: distutils.sysconfig.get_python_lib is deprecated. Use the APIs provided by the sysconfig module instead
      warn(_DEPRECATION_MSG % 'get_python_lib', DeprecationWarning)
    running bdist_egg
    running egg_info
    writing greenlet.egg-info/PKG-INFO
    writing top-level names to greenlet.egg-info/top_level.txt
    writing dependency_links to greenlet.egg-info/dependency_links.txt
    Traceback (most recent call last):
      File "./setup.py", line 26, in <module>
        'Topic :: Software Development :: Libraries :: Python Modules'])
      File "/usr/local/py3k/lib/python3.2/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 946, in run_commands
        self.run_command(cmd)
      File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 965, in run_command
        cmd_obj.run()
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/command/install.py", line 73, in run
        self.do_egg_install()
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/command/install.py", line 93, in do_egg_install
        self.run_command('bdist_egg')
      File "/usr/local/py3k/lib/python3.2/distutils/cmd.py", line 315, in run_command
        self.distribution.run_command(command)
      File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 965, in run_command
        cmd_obj.run()
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/command/bdist_egg.py", line 167, in run
        self.run_command("egg_info")
      File "/usr/local/py3k/lib/python3.2/distutils/cmd.py", line 315, in run_command
        self.distribution.run_command(command)
      File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 965, in run_command
        cmd_obj.run()
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/command/egg_info.py", line 179, in run
        self.find_sources()
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/command/egg_info.py", line 254, in find_sources
        mm.run()
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/command/egg_info.py", line 308, in run
        self.add_defaults()
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/command/egg_info.py", line 332, in add_defaults
        sdist.add_defaults(self)
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/command/sdist.py", line 191, in add_defaults
        build_ext = self.get_finalized_command('build_ext')
      File "/usr/local/py3k/lib/python3.2/distutils/cmd.py", line 300, in get_finalized_command
        cmd_obj = self.distribution.get_command_obj(command, create)
      File "/usr/local/py3k/lib/python3.2/distutils/dist.py", line 837, in get_command_obj
        klass = self.get_command_class(command)
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/dist.py", line 361, in get_command_class
        self.cmdclass[command] = cmdclass = ep.load()
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/pkg_resources.py", line 1948, in load
        entry = __import__(self.module_name, globals(),globals(), ['__name__'])
      File "/usr/local/py3k/lib/python3.2/site-packages/distribute-0.6.10-py3.2.egg/setuptools/command/build_ext.py", line 14, in <module>
        from distutils.sysconfig import _config_vars
    ImportError: cannot import name _config_vars
    
    
  2. Tarek Ziadé repo owner

    This is going to be fixed once I revert in Python 3 trunk the status of distutils (that will be back at the 3.1 state).

    I expect to do it this week end

  3. Anonymous

    Hi Tarek, any progress on this? distribute is no longer compatible with Python 3.2 svn. :(

  4. Log in to comment