vcstools / rosinstall

Other
10 stars 21 forks source link

python-rosinstall requires python-vcstools but it's not an apt dependency #37

Closed KaijenHsiao closed 11 years ago

KaijenHsiao commented 11 years ago

If you sudo apt-get install python-rosinstall and don't already have python-vcstools installed on your machine, running rosinstall gives you this error:

ERROR Cannot find rosinstall libraries, check your installation. One frequent cause is that rosinstall 0.5 is still installed in /usr/local/lib. Check the rosinstall wiki for solutions. cannot import name get_vcs_client

which is mighty confusing. Surely python-vcstools should be an official apt depedency?

tkruse commented 11 years ago

Hi Kaijen,

python-vcstools is already an official apt dependency: $ sudo apt-get install python-rosinstall ... The following extra packages will be installed: python-vcstools

So probably the cause for your error in this case is indeed the double installation of rosinstall via pip/easy_install and then via apt_get, such that the pip/easy_install module location overrides the apt location.

Have you checked /usr/local/lib/... for a previous rosinstall/vcstools installation as the error message suggested?

cheers, Thibault

On Tue, Dec 11, 2012 at 12:42 AM, Kaijen Hsiao notifications@github.comwrote:

If you sudo apt-get install python-rosinstall and don't already have python-vcstools installed on your machine, running rosinstall gives you this error:

ERROR Cannot find rosinstall libraries, check your installation. One frequent cause is that rosinstall 0.5 is still installed in /usr/local/lib. Check the rosinstall wiki for solutions. cannot import name get_vcs_client

which is mighty confusing. Surely python-vcstools should be an official apt depedency?

— Reply to this email directly or view it on GitHubhttps://github.com/vcstools/rosinstall/issues/37.

KaijenHsiao commented 11 years ago

Ah. Tully looked at my laptop (which had the same problem, and for which I hadn't done sudo apt-get install python-vcstools for) and figured out that it's a version issue--my installed version of python-vcstools is 0.1.20-1, which doesn't work with newest rosinstall. Ideally it would point that out instead of just failing with a misleading error (having a stray pip version is not the problem--I had done sudo pip uninstall rosinstall before updating python-rosinstall).

On Mon, Dec 10, 2012 at 5:11 PM, tkruse notifications@github.com wrote:

Hi Kaijen,

python-vcstools is already an official apt dependency: $ sudo apt-get install python-rosinstall ... The following extra packages will be installed: python-vcstools

So probably the cause for your error in this case is indeed the double installation of rosinstall via pip/easy_install and then via apt_get, such that the pip/easy_install module location overrides the apt location.

Have you checked /usr/local/lib/... for a previous rosinstall/vcstools installation as the error message suggested?

cheers, Thibault

On Tue, Dec 11, 2012 at 12:42 AM, Kaijen Hsiao notifications@github.comwrote:

If you sudo apt-get install python-rosinstall and don't already have python-vcstools installed on your machine, running rosinstall gives you this error:

ERROR Cannot find rosinstall libraries, check your installation. One frequent cause is that rosinstall 0.5 is still installed in /usr/local/lib. Check the rosinstall wiki for solutions. cannot import name get_vcs_client

which is mighty confusing. Surely python-vcstools should be an official apt depedency?

— Reply to this email directly or view it on GitHub< https://github.com/vcstools/rosinstall/issues/37>.

— Reply to this email directly or view it on GitHubhttps://github.com/vcstools/rosinstall/issues/37#issuecomment-11226858.

tkruse commented 11 years ago

I see, so an apt-get update should have updated vcstools for you, then, That someone apt-get install vcstools early, and later rosinstall is a case that did not happen often, apparently.

Apparently stdep can handle this:

-Depends: subversion, mercurial, git-core, bzr, python-yaml, python-vcstools +Depends: subversion, mercurial, git-core, bzr, python-yaml, python-vcstools (>=0.1.25)

We could also try to improve the error message.

Tully, what do you think?

On Tue, Dec 11, 2012 at 4:06 AM, Kaijen Hsiao notifications@github.comwrote:

Ah. Tully looked at my laptop (which had the same problem, and for which I hadn't done sudo apt-get install python-vcstools for) and figured out that it's a version issue--my installed version of python-vcstools is 0.1.20-1, which doesn't work with newest rosinstall. Ideally it would point that out instead of just failing with a misleading error (having a stray pip version is not the problem--I had done sudo pip uninstall rosinstall before updating python-rosinstall).

On Mon, Dec 10, 2012 at 5:11 PM, tkruse notifications@github.com wrote:

Hi Kaijen,

python-vcstools is already an official apt dependency: $ sudo apt-get install python-rosinstall ... The following extra packages will be installed: python-vcstools

So probably the cause for your error in this case is indeed the double installation of rosinstall via pip/easy_install and then via apt_get, such that the pip/easy_install module location overrides the apt location.

Have you checked /usr/local/lib/... for a previous rosinstall/vcstools installation as the error message suggested?

cheers, Thibault

On Tue, Dec 11, 2012 at 12:42 AM, Kaijen Hsiao notifications@github.comwrote:

If you sudo apt-get install python-rosinstall and don't already have python-vcstools installed on your machine, running rosinstall gives you this error:

ERROR Cannot find rosinstall libraries, check your installation. One frequent cause is that rosinstall 0.5 is still installed in /usr/local/lib. Check the rosinstall wiki for solutions. cannot import name get_vcs_client

which is mighty confusing. Surely python-vcstools should be an official apt depedency?

— Reply to this email directly or view it on GitHub< https://github.com/vcstools/rosinstall/issues/37>.

— Reply to this email directly or view it on GitHub< https://github.com/vcstools/rosinstall/issues/37#issuecomment-11226858>.

— Reply to this email directly or view it on GitHubhttps://github.com/vcstools/rosinstall/issues/37#issuecomment-11229242.

tfoote commented 11 years ago

If stdeb can handle this we could drop it in. In general we've avoid versioned dependencies as it gets much more complicated quickly, but if it's hitting multiple people it's probably worth it for this.

On Tue, Dec 11, 2012 at 4:18 AM, tkruse notifications@github.com wrote:

I see, so an apt-get update should have updated vcstools for you, then, That someone apt-get install vcstools early, and later rosinstall is a case that did not happen often, apparently.

Apparently stdep can handle this:

-Depends: subversion, mercurial, git-core, bzr, python-yaml, python-vcstools +Depends: subversion, mercurial, git-core, bzr, python-yaml, python-vcstools (>=0.1.25)

We could also try to improve the error message.

Tully, what do you think?

On Tue, Dec 11, 2012 at 4:06 AM, Kaijen Hsiao notifications@github.comwrote:

Ah. Tully looked at my laptop (which had the same problem, and for which I hadn't done sudo apt-get install python-vcstools for) and figured out that it's a version issue--my installed version of python-vcstools is 0.1.20-1, which doesn't work with newest rosinstall. Ideally it would point that out instead of just failing with a misleading error (having a stray pip version is not the problem--I had done sudo pip uninstall rosinstall before updating python-rosinstall).

On Mon, Dec 10, 2012 at 5:11 PM, tkruse notifications@github.com wrote:

Hi Kaijen,

python-vcstools is already an official apt dependency: $ sudo apt-get install python-rosinstall ... The following extra packages will be installed: python-vcstools

So probably the cause for your error in this case is indeed the double installation of rosinstall via pip/easy_install and then via apt_get, such that the pip/easy_install module location overrides the apt location.

Have you checked /usr/local/lib/... for a previous rosinstall/vcstools installation as the error message suggested?

cheers, Thibault

On Tue, Dec 11, 2012 at 12:42 AM, Kaijen Hsiao < notifications@github.com>wrote:

If you sudo apt-get install python-rosinstall and don't already have python-vcstools installed on your machine, running rosinstall gives you this error:

ERROR Cannot find rosinstall libraries, check your installation. One frequent cause is that rosinstall 0.5 is still installed in /usr/local/lib. Check the rosinstall wiki for solutions. cannot import name get_vcs_client

which is mighty confusing. Surely python-vcstools should be an official apt depedency?

— Reply to this email directly or view it on GitHub< https://github.com/vcstools/rosinstall/issues/37>.

— Reply to this email directly or view it on GitHub< https://github.com/vcstools/rosinstall/issues/37#issuecomment-11226858>.

— Reply to this email directly or view it on GitHub< https://github.com/vcstools/rosinstall/issues/37#issuecomment-11229242>.

— Reply to this email directly or view it on GitHubhttps://github.com/vcstools/rosinstall/issues/37#issuecomment-11241388.

Tully Foote tfoote@willowgarage.com (650) 475-2827

tfoote commented 11 years ago

The error message should be good enough for now.