#664 problem while installing PyTango 8.1.1 with pip (using pip 1.4.1)

open
None
PyTango
5
2014-09-10
2014-04-09
Zbigniew Reszela
No

I encountered a tiny problem while installing PyTango with pip (easy_install seems to work without problems).

I'm not sure if it's a problem with my environment or a PyTango "bug".

I use the following command to install it:

pip install PyTango --egg

(I need to use --egg, otherwise I get an exception)

Well actually package seems to get installed correctly:

pc255:~ # pip show PyTango
---
Name: PyTango
Version: 8.1.1
Location: /usr/lib64/python2.7/site-packages
Requires:

However at the end of installation I get:

(...)
copying /tmp/pip_build_root/PyTango/build/sphinx/html/_static/logo-medium.png -> /usr/share/doc/PyTango/html/_static

copying /tmp/pip_build_root/PyTango/build/sphinx/html/_static/basic.css -> /usr/share/doc/PyTango/html/_static

Traceback (most recent call last):

  File "<string>", line 1, in <module>
  File "/tmp/pip_build_root/PyTango/setup.py", line 516, in <module>
    main()
  File "/tmp/pip_build_root/PyTango/setup.py", line 511, in main
    cmdclass=cmdclass)
  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.7/distutils/command/install.py", line 587, in run
    outputs = self.get_outputs()
  File "/usr/lib64/python2.7/distutils/command/install.py", line 679, in get_outputs
    for filename in cmd.get_outputs():
  File "/usr/lib64/python2.7/distutils/cmd.py", line 105, in __getattr__
    raise AttributeError, attr
AttributeError: get_outputs

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/PyTango/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ZP6wCW-record/install-record.txt failed with error code 1 in /tmp/pip_build_root/PyTango
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.4.1', 'console_scripts', 'pip-2.7')()
  File "/usr/lib/python2.7/site-packages/pip/__init__.py", line 148, in main
    return command.main(args[1:], options)
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 169, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 74: ordinal not in range(128)

I use pip (1.4.1).

Discussion

  • Tiago Coutinho
    Tiago Coutinho
    2014-09-10

    Hi Zbigniew,

    Sorry to take so much time to answer.

    If the exception resulting from not using --egg is:
    error: option --single-version-externally-managed not recognized
    then the solution seems to be either (from stackoverflow):

    1. use --egg
    2. upgrade setuptools

    Regarding the errors: they both seem to be inside python 2.7 distutils.
    The first is a call to get_outputs which doesn't seem to exist.
    The second is during the clean up due to the first error.

    Can you try to install/upgrade setuptools and try without --egg?

    Thanks in advance