Menu

#194 pip/easy_install taurus does not work

Jan16
resolved
None
bug
2016-04-27
2013-07-25
No

UPDATE: This is no longer an issue in Taurus v>4 since the change to setuptools in [9f976f]. And as a workaround, the --egg parameter solves the problem for Taurus < 4 , as mentioned in the comments

Installing taurus with easy_install appears to work, but:

-resources are not built
-extra_packages are not installed

IMHO, doing "easy_install taurus" should yield similar results than downloading the tgz and doing "python setup.py install"

As a hint:
during easy_install, the following is printed:

cpascual@pc218:~/src/svn/taurus/dist$ PYTHONPATH=/tmp/kkinstdirtaurus311 easy_install --install-dir=/tmp/kkinstdirtaurus311 taurus-3.1.1.tar.gz
Processing taurus-3.1.1.tar.gz
Running taurus-3.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Tmbuxl/taurus-3.1.1/egg-dist-tmp-elgCV3

But surprisingly to me, the command "bdist_egg" cannot be called manually (?)

Related

Sardana: Sardana GIT: 5200b4bfd46bb468bf9b9e39

Discussion

  • Carlos Pascual

    Carlos Pascual - 2013-07-31

    note: bdist_egg is part of setuptools and not of distutils

     
  • Zbigniew Reszela

    • Category: --> setup
    • Type: --> bug
     
  • Zbigniew Reszela

    • status: open --> waiting
     
  • Carlos Pascual

    Carlos Pascual - 2014-02-07
    • Milestone: Jan14 --> Jul14
     
  • Carlos Pascual

    Carlos Pascual - 2014-07-10

    This worked for me on debian testing:
    ~~~~~~~~
    cpascual@pc218:~/src/sardana/taurus(release-taurus-Jul14)$ mkdir /tmp/kkinstdirtaurus330
    cpascual@pc218:~/src/sardana/taurus(release-taurus-Jul14)$ PYTHONPATH=$PYTHONPATH:/tmp/kkinstdirtaurus330 easy_install --install-dir=/tmp/kkinstdirtaurus330 dist/taurus-3.3.0.tar.gz
    ~~~~~~~~~
    EDITED: I was wrong. It seemed to work but it did not install the extra_packages

     

    Last edit: Carlos Pascual 2014-07-10
  • Carlos Pascual

    Carlos Pascual - 2014-07-10
    • Milestone: Jul14 --> future
     
  • Carlos Pascual

    Carlos Pascual - 2015-10-01

    Ticket moved from /p/sardana/tickets/20/

    Can't be converted:

    • _category: setup
     
  • Carlos Pascual

    Carlos Pascual - 2015-10-01

    I moved this ticket from the sardana list (it was #20 there).

    A user (Yngve) gave a very useful hint in the mailing list: use the --egg option of pip (easy_install is not worth worrying about anymore):

    pip install taurus --egg
    

    So I think we can close this ticket and add this to the docs.

    Thanks Yngve!

    On Wed 30 September 2015 10:15:46 Yngve Inntjore Levinsen wrote:

    Hi all,

    I wanted to install taurus for testing on my machine (CentOS 7). I
    noticed in your install instructions that you recommend to download
    the tarball from pip, so then I thought, 'why not just use pip
    instead?'
    That does not seem to work initially though:

    $ pip install taurus
    Collecting taurus

    Using cached taurus-3.6.0.tar.gz

    Installing collected packages: taurus

    Running setup.py install for taurus

    Complete output from command /usr/bin/python -c "import
    setuptools,
    tokenize;__file__='/tmp/pip-build-zLtyIO/taurus/setup.py';exec(
    compile(getattr(tokenize, 'open',
    open)(__file__).read().replace('\r\n', '\n'), __file__,
    'exec'))" install --record
    /tmp/pip-4hH39k-record/install-record.txt
    --single-version-externally-managed --compile: usage: -c
    [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]>     
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help
    
    error: option --single-version-externally-managed not recognized
    
    ----------------------------------------
    

    Command "/usr/bin/python -c "import setuptools,
    tokenize;file='/tmp/pip-build-zLtyIO/taurus/setup.py';exec(comp
    ile(getattr(tokenize, 'open', open)(file).read().replace('\r\n',
    '\n'), file, 'exec'))" install --record
    /tmp/pip-4hH39k-record/install-record.txt
    --single-version-externally-managed --compile" failed with error
    code 1 in /tmp/pip-build-zLtyIO/taurus
    I am not sure where 'single-version-externally-managed' option comes from, probably someone more clever than me can explain. In any case, after a bit of searching online I found a recommendation to add the '--egg' option to pip. That worked very well:
    $ pip install taurus --egg --user
    Collecting taurus

    Using cached taurus-3.6.0.tar.gz

    Installing collected packages: taurus

    Running setup.py install for taurus

    Successfully installed taurus-3.6.0

    (I added the --user as well to only install for my user account
    without sudo)

    Same is true for PyTango by the way. I would consider to maybe add
    this as (an alternative) installation instruction in the
    documentation.

    Cheers,
    Yngve

     
  • Carlos Pascual

    Carlos Pascual - 2015-10-01
    • summary: easy_install taurus does not work --> pip/easy_install taurus does not work
    • status: waiting --> resolved
    • Milestone: future --> Jan16
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.