Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.4.2 installation error #60

Closed
wiliamsouza opened this issue Nov 15, 2014 · 3 comments
Closed

Python 3.4.2 installation error #60

wiliamsouza opened this issue Nov 15, 2014 · 3 comments

Comments

@wiliamsouza
Copy link

Trying to install ipdb inside a virtualenv with Python 3.4.2 on a linux box.

Running python setup.py install and pip install ipdb same result.

running install
Traceback (most recent call last):
  File "setup.py", line 59, in <module>
    use_2to3=True,
  File "/home/wiliam/.pyenv/versions/3.4.2/lib/python3.4/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/wiliam/.pyenv/versions/3.4.2/lib/python3.4/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/wiliam/.pyenv/versions/3.4.2/lib/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/wiliam/.virtualenvs/test/lib/python3.4/site-packages/setuptools/command/install.py", line 67, in run
    self.do_egg_install()
  File "/home/wiliam/.virtualenvs/test/lib/python3.4/site-packages/setuptools/command/install.py", line 103, in do_egg_install
    cmd.ensure_finalized()  # finalize before bdist_egg munges install cmd
  File "/home/wiliam/.pyenv/versions/3.4.2/lib/python3.4/distutils/cmd.py", line 107, in ensure_finalized
    self.finalize_options()
  File "/home/wiliam/.virtualenvs/test/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 283, in finalize_options
    'install_lib', ('install_dir', 'install_dir')
  File "/home/wiliam/.pyenv/versions/3.4.2/lib/python3.4/distutils/cmd.py", line 287, in set_undefined_options
    src_cmd_obj.ensure_finalized()
  File "/home/wiliam/.pyenv/versions/3.4.2/lib/python3.4/distutils/cmd.py", line 107, in ensure_finalized
    self.finalize_options()
  File "/home/wiliam/.virtualenvs/test/lib/python3.4/site-packages/setuptools/command/install_lib.py", line 16, in finalize_options
    self.set_undefined_options('install',('install_layout','install_layout'))
  File "/home/wiliam/.pyenv/versions/3.4.2/lib/python3.4/distutils/cmd.py", line 290, in set_undefined_options
    setattr(self, dst_option, getattr(src_cmd_obj, src_option))
  File "/home/wiliam/.pyenv/versions/3.4.2/lib/python3.4/distutils/cmd.py", line 103, in __getattr__
    raise AttributeError(attr)
AttributeError: install_layout
@wiliamsouza
Copy link
Author

After update setuptools fix the installation issue.

pip install -U setuptools

@gotcha
Copy link
Owner

gotcha commented Dec 15, 2014

Which version of setuptools did fix the issue ?

@toolforger
Copy link

I guess whatever the current version was on Dec 2014. pip install -U upgrades the package.
For me, it upgraded from setuptools 12.2 to setuptools-17.1.1-py2.py3-none-any.whl .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants