problem importing

C

C. Ng

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.
 
P

Peter Otten

C. Ng said:
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.
 
C

C. Ng

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top