Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57898 > unrolled thread

problem importing

Started by"C. Ng" <ngcbmy@gmail.com>
First post2013-10-29 02:46 -0700
Last post2013-10-29 20:08 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  problem importing "C. Ng" <ngcbmy@gmail.com> - 2013-10-29 02:46 -0700
    Re: problem importing Peter Otten <__peter__@web.de> - 2013-10-29 11:40 +0100
      Re: problem importing "C. Ng" <ngcbmy@gmail.com> - 2013-10-29 20:08 -0700

#57898 — problem importing

From"C. Ng" <ngcbmy@gmail.com>
Date2013-10-29 02:46 -0700
Subjectproblem importing
Message-ID<79476abe-0eff-481b-9160-fbab4fbbcb55@googlegroups.com>
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.

[toc] | [next] | [standalone]


#57900

FromPeter Otten <__peter__@web.de>
Date2013-10-29 11:40 +0100
Message-ID<mailman.1754.1383043213.18130.python-list@python.org>
In reply to#57898
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.

[toc] | [prev] | [next] | [standalone]


#57998

From"C. Ng" <ngcbmy@gmail.com>
Date2013-10-29 20:08 -0700
Message-ID<ba4b295d-0db9-4ca8-b587-4250878ed913@googlegroups.com>
In reply to#57900
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!

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web