Neurolab // "No module named .."

  • Thread starter FiveHydroxy Tryptamine
  • Start date
F

FiveHydroxy Tryptamine

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

Joel Goldstick

On Sat, Sep 28, 2013 at 10:55 AM, FiveHydroxy Tryptamine <
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.

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
 
D

Dave Angel

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.Traceback (most recent call last):
 
T

Terry Reedy

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

Mark Lawrence

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"
 
M

MRAB

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

Dennis Lee Bieber

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.
 

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,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top