Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem importing

14 views
Skip to first unread message

C. Ng

unread,
Oct 29, 2013, 5:46:41 AM10/29/13
to
Hi all,
So I cloned a package xyz from github. OS is ubuntu 12.04.
Then install successfully using "sudo python setup.py install"
Now when I try to import xyz, I get "ImportError: No module named xyz" unless my current working directory is in xyz.
Appreciate your help. Thanks.


Peter Otten

unread,
Oct 29, 2013, 6:40:37 AM10/29/13
to pytho...@python.org
Maybe the author called the toplevel package pyxyz or XYZ -- when you don't
provide the actual package name/github url we can only guess.

Or

$ which python

and

$ sudo which python

point to different Python installations.

C. Ng

unread,
Oct 29, 2013, 11:08:22 PM10/29/13
to
On Tuesday, October 29, 2013 6:40:37 PM UTC+8, Peter Otten wrote:
> C. Ng wrote: > Hi all, > So I cloned a package xyz from github. OS is ubuntu 12.04. > Then install successfully using "sudo python setup.py install" > Now when I try to import xyz, I get "ImportError: No module named xyz" > unless my current working directory is in xyz. Appreciate your help. > Thanks. Maybe the author called the toplevel package pyxyz or XYZ -- when you don't provide the actual package name/github url we can only guess. Or $ which python and $ sudo which python point to different Python installations.

Solved by the package author. Thanks!
0 new messages