[Distutils] AttributeError: 'tuple' object has no attribute 'split'

Dominique Orban dominique.orban at gmail.com
Thu Oct 24 22:04:27 CEST 2013


I hope this is the right place to ask for help. I'm not finding much comfort in the PyPi documentation or in Google searches. I uploaded my package `pykrylov` with `python setup.py sdist upload`. Installing it locally with `python setup.py` install works fine but `pip install pykrylov` breaks with the messages below. I since removed it from PyPI but I get the same error message if I try installing from the git repository. I'm hoping someone can put me on track as I've no idea what's wrong. You can see my setup.py here:

https://github.com/dpo/pykrylov/blob/ea553cdb287f6e685406ceadcb297fd6704af52d/setup.py

I'm using Python 2.7.5 on OSX installed with Homebrew and pip 1.4.1. Attempts to upgrade setuptools or pip result in another error message (AttributeError: 'str' object has no attribute 'rollback')...

Thanks!

-- 
Dominique


$ pip install -e git://github.com/dpo/pykrylov.git@ea553cd#egg=pykrylov
Obtaining pykrylov from git+git://github.com/dpo/pykrylov.git@ea553cd#egg=pykrylov
  Updating ./src/pykrylov clone (to ea553cd)
  Could not find a tag or branch 'ea553cd', assuming commit.
  Running setup.py egg_info for package pykrylov
    build_src
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/Users/dpo/.virtualenvs/test/src/pykrylov/setup.py", line 77, in <module>
        setup_package()
      File "/Users/dpo/.virtualenvs/test/src/pykrylov/setup.py", line 69, in setup_package
        configuration=configuration )
      File "/usr/local/lib/python2.7/site-packages/numpy/distutils/core.py", line 186, in setup
        return old_setup(**new_attr)
      File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python2.7/site-packages/numpy/distutils/command/egg_info.py", line 9, in run
        _egg_info.run(self)
      File "<string>", line 13, in replacement_run
      File "/Users/dpo/.virtualenvs/test/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 441, in write_toplevel_names
        for k in cmd.distribution.iter_distribution_names()
    AttributeError: 'tuple' object has no attribute 'split'
    Complete output from command python setup.py egg_info:
    running egg_info

running build_src

build_src

writing pykrylov.egg-info/PKG-INFO

Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/Users/dpo/.virtualenvs/test/src/pykrylov/setup.py", line 77, in <module>

    setup_package()

  File "/Users/dpo/.virtualenvs/test/src/pykrylov/setup.py", line 69, in setup_package

    configuration=configuration )

  File "/usr/local/lib/python2.7/site-packages/numpy/distutils/core.py", line 186, in setup

    return old_setup(**new_attr)

  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup

    dist.run_commands()

  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands

    self.run_command(cmd)

  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/usr/local/lib/python2.7/site-packages/numpy/distutils/command/egg_info.py", line 9, in run

    _egg_info.run(self)

  File "<string>", line 13, in replacement_run

  File "/Users/dpo/.virtualenvs/test/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 441, in write_toplevel_names

    for k in cmd.distribution.iter_distribution_names()

AttributeError: 'tuple' object has no attribute 'split'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/dpo/.virtualenvs/test/src/pykrylov
Storing complete log in /Users/dpo/.pip/pip.log




More information about the Distutils-SIG mailing list