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


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

Neurolab // "No module named .."

Started byFiveHydroxy Tryptamine <lilithsolved@gmail.com>
First post2013-09-28 07:55 -0700
Last post2013-09-28 18:37 -0400
Articles 7 — 7 participants

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


Contents

  Neurolab // "No module named .." FiveHydroxy Tryptamine <lilithsolved@gmail.com> - 2013-09-28 07:55 -0700
    Re: Neurolab // "No module named .." Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-28 12:04 -0400
    Re: Neurolab // "No module named .." Dave Angel <davea@davea.name> - 2013-09-28 16:23 +0000
    Re: Neurolab // "No module named .." Terry Reedy <tjreedy@udel.edu> - 2013-09-28 14:58 -0400
    Re: Neurolab // "No module named .." Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-09-28 20:06 +0100
    Re: Neurolab // "No module named .." MRAB <python@mrabarnett.plus.com> - 2013-09-28 20:45 +0100
    Re: Neurolab // "No module named .." Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-28 18:37 -0400

#54943 — Neurolab // "No module named .."

FromFiveHydroxy Tryptamine <lilithsolved@gmail.com>
Date2013-09-28 07:55 -0700
SubjectNeurolab // "No module named .."
Message-ID<a074d642-7c4f-4841-ba24-8e19f24c55e6@googlegroups.com>
Hiya
A word of warning, I am a complete beginner.
My problem goes like this:: I've been trying to "import neurolab as nl"(a neural network library)and I keep getting the "No module named.." error in my Python 2.7.3 shell. There is definitely something wrong with my Python path, although everything looks fine (to me). I also appended the sys.path with "C:/Python27/neurolab-0.2.3/neurolab" and I still get that error. What am I missing?
Thanks.

[toc] | [next] | [standalone]


#54947

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2013-09-28 12:04 -0400
Message-ID<mailman.416.1380384277.18130.python-list@python.org>
In reply to#54943

[Multipart message — attachments visible in raw view] — view raw

On Sat, Sep 28, 2013 at 10:55 AM, FiveHydroxy Tryptamine <
lilithsolved@gmail.com> wrote:

> Hiya
> A word of warning, I am a complete beginner.
> My problem goes like this:: I've been trying to "import neurolab as nl"(a
> neural network library)and I keep getting the "No module named.." error in
> my Python 2.7.3 shell. There is definitely something wrong with my Python
> path, although everything looks fine (to me). I also appended the sys.path
> with "C:/Python27/neurolab-0.2.3/neurolab" and I still get that error. What
> am I missing?
> Thanks.
> --
> https://mail.python.org/mailman/listinfo/python-list
>

How exactly did you install python?  And how did you install neurolab?
Also, its best to actually cut and paste the traceback rather than
paraphrase it.  Since you don't know what is wrong, you may not be
providing the information necessary to solve the problem

-- 
Joel Goldstick
http://joelgoldstick.com

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


#54953

FromDave Angel <davea@davea.name>
Date2013-09-28 16:23 +0000
Message-ID<mailman.418.1380385457.18130.python-list@python.org>
In reply to#54943
On 28/9/2013 10:55, FiveHydroxy Tryptamine wrote:

> Hiya
> A word of warning, I am a complete beginner.
> My problem goes like this:: I've been trying to "import neurolab as nl"(a neural network library)and I keep getting the "No module named.." error in my Python 2.7.3 shell. There is definitely something wrong with my Python path, although everything looks fine (to me). I also appended the sys.path with "C:/Python27/neurolab-0.2.3/neurolab" and I still get that error. What am I missing?
> Thanks.

Welcome to the forum, and to Python.

First point:  when you have a problem, especially an import problem, in
some (unnamed) shell, make sure the same symptoms happen at a command
line or the Python interpreter, whichever is appropriate. If the
problem only occurs in the shell, it's a shell problem, or probably a
configuration one.

Second point:  Include the source file you use, hopefully stripped to
the essential minimum.

Third point: include a transcript of all, or the significant portions of
the session (using cut and paste, not paraphrasing). The error
(exception) message is a minimum of 3 lines long,  You show part of the
last line.  The full error message starts with "Traceback" and ends with
some textual summary error message.

Fourth:  indicate how you may have customized your system.  At a
minimum, you must think you installed the neurolab module.  Whatever
that is, whereever you found it.  You should supply the link.

But perhaps you downloaded it and copied it, without actually running
any install program. The directory you specify is NOT the conventional
place for foreign modules.

For example:

davea@think2:~/temppython$ python
Python 2.7.3 (default, Apr 10 2013, 06:20:15) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import unknown
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named unknown
>>> 



-- 
DaveA

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


#54973

FromTerry Reedy <tjreedy@udel.edu>
Date2013-09-28 14:58 -0400
Message-ID<mailman.432.1380394717.18130.python-list@python.org>
In reply to#54943
On 9/28/2013 10:55 AM, FiveHydroxy Tryptamine wrote:
> Hiya A word of warning, I am a complete beginner. My problem goes
> like this:: I've been trying to "import neurolab as nl"(a neural
> network library)and I keep getting the "No module named.." error in
> my Python 2.7.3 shell. There is definitely something wrong with my
> Python path, although everything looks fine (to me). I also appended
> the sys.path with "C:/Python27/neurolab-0.2.3/neurolab" and I still
> get that error. What am I missing? Thanks.

Perhaps that sys.path should contain directory paths but not module 
paths. I suspect that "C:/Python27/neurolab-0.2.3" is the directory you 
should append. Import will then find the neurolab module it contains.

-- 
Terry Jan Reedy

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


#54974

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2013-09-28 20:06 +0100
Message-ID<mailman.433.1380395224.18130.python-list@python.org>
In reply to#54943
On 28/09/2013 15:55, FiveHydroxy Tryptamine wrote:
> Hiya
> A word of warning, I am a complete beginner.
> My problem goes like this:: I've been trying to "import neurolab as nl"(a neural network library)and I keep getting the "No module named.." error in my Python 2.7.3 shell. There is definitely something wrong with my Python path, although everything looks fine (to me). I also appended the sys.path with "C:/Python27/neurolab-0.2.3/neurolab" and I still get that error. What am I missing?
> Thanks.
>

Are you sure that path is correct?  I'd expect to see something like 
"C:/Python27/lib/site-packages/neurolab-0.2.3/neurolab"

-- 
Cheers.

Mark Lawrence

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


#54976

FromMRAB <python@mrabarnett.plus.com>
Date2013-09-28 20:45 +0100
Message-ID<mailman.434.1380397518.18130.python-list@python.org>
In reply to#54943
On 28/09/2013 20:06, Mark Lawrence wrote:
> On 28/09/2013 15:55, FiveHydroxy Tryptamine wrote:
>> Hiya
>> A word of warning, I am a complete beginner.
>> My problem goes like this:: I've been trying to "import neurolab as nl"(a neural network library)and I keep getting the "No module named.." error in my Python 2.7.3 shell. There is definitely something wrong with my Python path, although everything looks fine (to me). I also appended the sys.path with "C:/Python27/neurolab-0.2.3/neurolab" and I still get that error. What am I missing?
>> Thanks.
>>
>
> Are you sure that path is correct?  I'd expect to see something like
> "C:/Python27/lib/site-packages/neurolab-0.2.3/neurolab"
>
+1

That's very true. If it's meant to be in the Python folder, then I'd
expected it to be in the "Lib\site-packages" subfolder.

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


#54979

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2013-09-28 18:37 -0400
Message-ID<mailman.435.1380407855.18130.python-list@python.org>
In reply to#54943
On Sat, 28 Sep 2013 07:55:54 -0700 (PDT), FiveHydroxy Tryptamine
<lilithsolved@gmail.com> declaimed the following:

>Hiya
>A word of warning, I am a complete beginner.

	Welcome...

>My problem goes like this:: I've been trying to "import neurolab as nl"(a neural network library)and I

	... but why is a "complete beginner" trying to work with such an
advanced third-party library before first learning the core language and
libraries.

>looks fine (to me). I also appended the sys.path with "C:/Python27/neurolab-0.2.3/neurolab" and I still get that error. What am I missing?

	A compliant third-party library commonly /would/ have installed its
importable parts in "c:\python<vn>\Lib\site-packages\<package>" -- or where
ever Python was installed: C:\Python_x64\Python27\Lib\site-packages\MySQLdb
for example on my system for the MySQLdb package.

	It wouldn't need modification of the search path.


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [prev] | [standalone]


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


csiph-web