Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

pip/easy_install taurus does not work #182

Closed
sf-migrator-bot opened this issue Jul 25, 2013 · 9 comments
Closed

pip/easy_install taurus does not work #182

sf-migrator-bot opened this issue Jul 25, 2013 · 9 comments
Assignees
Milestone

Comments

@sf-migrator-bot
Copy link
Collaborator

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 (?)

Reported by: cpascual ( http://sf.net/u/cpascual )
@sf-migrator-bot
Copy link
Collaborator Author

note: bdist_egg is part of setuptools and not of distutils

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

@sf-migrator-bot
Copy link
Collaborator Author

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

Original comment by: reszelaz (http://sourceforge.net/u/zreszela)

@sf-migrator-bot
Copy link
Collaborator Author

  • status: open --> waiting

Original comment by: reszelaz (http://sourceforge.net/u/zreszela)

@sf-migrator-bot
Copy link
Collaborator Author

  • Milestone: Jan14 --> Jul14

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

@sf-migrator-bot
Copy link
Collaborator Author

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

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

@sf-migrator-bot
Copy link
Collaborator Author

  • Milestone: Jul14 --> future

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

@sf-migrator-bot
Copy link
Collaborator Author

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

Can't be converted:

  • _category: setup

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

@sf-migrator-bot
Copy link
Collaborator Author

  • summary: easy_install taurus does not work --> pip/easy_install taurus does not work
  • status: waiting --> resolved
  • Milestone: future --> Jan16

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

@sf-migrator-bot
Copy link
Collaborator Author

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

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

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

No branches or pull requests

2 participants