473,322 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Error loading modules

BL
I am very new to python. I am installing it as part of a bazzar
version control installation.
I have installed the Crypto, paramiko and cElementTree modules. I am
running Solaris10x86.
When testing the modules I get the following results.

python -c "import Crypto"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named Crypto

Here is the path setups and the modules have been verified to be in
those directories.
Python 2.5.1 (r251:54863, May 16 2007, 19:39:00)
[GCC 3.4.6] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>import sys
sys.path
['', '/usr/local/lib/python25.zip', '/usr/local/lib/python2.5', '/usr/
local/lib/python2.5/plat-sunos5', '/usr/local/lib/python2.5/lib-tk', '/
usr/local/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-
packages']

Any assistance would be appreciated
Nov 4 '08 #1
4 9155
On Nov 5, 9:18*am, BL <bll...@gmail.comwrote:
I am very new to python. *I am installing it as part of a bazzar
version control installation.
I have installed the Crypto, paramiko and cElementTree modules. *I am
running Solaris10x86.
When testing the modules I get the following results.

*python -c "import Crypto"
Traceback (most recent call last):
* File "<string>", line 1, in <module>
ImportError: No module named Crypto
What is "the Crypto module"? What is the path to the directory in
which you installed it? Do you mean one of crypto [case matters],
pycrypto, pyCrypto, M2Crypto, ...?
Nov 5 '08 #2
BL
On Nov 4, 7:11*pm, John Machin <sjmac...@lexicon.netwrote:
On Nov 5, 9:18*am, BL <bll...@gmail.comwrote:
I am very new to python. *I am installing it as part of a bazzar
version control installation.
I have installed the Crypto, paramiko and cElementTree modules. *I am
running Solaris10x86.
When testing the modules I get the following results.
*python -c "import Crypto"
Traceback (most recent call last):
* File "<string>", line 1, in <module>
ImportError: No module named Crypto

What is "the Crypto module"? What is the path to the directory in
which you installed it? Do you mean one of crypto [case matters],
pycrypto, pyCrypto, M2Crypto, ...?
pyCrypto is the module I installed. The directory it is installed in
is
/usr/local/lib/python2.5/site-packages - there is one directory
called
Crytpo and two other files called pycrytpo-2.0.1-py2.5.egg-info and
pycrytpo-2.0.1-py2.5-solaris-2.10-i86pc.egg.

The directions to check the installation of the python modules said
to
execute python -c "import Crypto"
Nov 5 '08 #3
On Nov 6, 3:21*am, BL <bll...@gmail.comwrote:
On Nov 4, 7:11*pm, John Machin <sjmac...@lexicon.netwrote:
On Nov 5, 9:18*am, BL <bll...@gmail.comwrote:
I am very new to python. *I am installing it as part of a bazzar
version control installation.
I have installed the Crypto, paramiko and cElementTree modules. *I am
running Solaris10x86.
When testing the modules I get the following results.
*python -c "import Crypto"
Traceback (most recent call last):
* File "<string>", line 1, in <module>
ImportError: No module named Crypto
What is "the Crypto module"? What is the path to the directory in
which you installed it? Do you mean one of crypto [case matters],
pycrypto, pyCrypto, M2Crypto, ...?

pyCrypto is the module I installed.
or pycrypto??? What URL did you download it from?
*The directory it is installed in
is
/usr/local/lib/python2.5/site-packages *- there is one directory
called
Crytpo and two other files called *pycrytpo-2.0.1-py2.5.egg-info and
pycrytpo-2.0.1-py2.5-solaris-2.10-i86pc.egg.
There are *THREE* apparent typos there ("...rytpo" instead of
"...rypto"). Do please check what you type. Did you by any chance
type
python -c "import Crytpo"
originally? Were your "following results" obtained by copy/paste or by
typing it all in yourself?

What is in the .../site-packages/Crypto directory?
>
The directions to check the installation of the python modules said
to
execute python -c "import Crypto"
Nov 5 '08 #4
The easiest way to debug such import problems is by telling
Python to be verbose:

python -vv -c "import some_module"

The generated output will then list all the locations where
Python looks for the module and is often handy to track
down reasons for Python not being able to load a module.

--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source (#1, Nov 06 2008)
>>Python/Zope Consulting and Support ... http://www.egenix.com/
mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
__________________________________________________ ______________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
Nov 6 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
0
by: piyushc | last post by:
Hi, I am having problem creating new project using VS.Net 2003. Whenever I am trying to create new project (any type) it shows error message "Error writing the project file. Error loading...
0
by: Nic Butler | last post by:
Hi, I've got a win form app that takes an arbitrary file from the local drive, calls a webservice function, passing the file's byte array plus an number of other params. About half the time I...
0
by: Jeff | last post by:
Hello, I've run into a problem with my asp.net application and would like to know whether the error is likely with my remote host. The problem is an unhandled exception, and the exception...
2
by: Jeff | last post by:
Hello, I've run into a problem with my asp.net application and would like to know whether the error is likely with my remote host. The problem is an unhandled exception, and the exception...
0
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To =...
1
by: campwes | last post by:
Hey, all! We're having trouble displaying SQL Server data in a web site as XML, using a transform. The query is a simple SELECT statement. When running the query, we get the following error from...
1
by: TC | last post by:
Anyone know what this means Parser Error Message: Error loading XML file E:\Inetpub\wwwroot\web.config Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name:...
3
by: ravisc | last post by:
Hi, I had .Net 2005 framework installed in my system. I had uninstalled the same. Now I have been working with .Net 2003 develpment environment. when I try to debug any .Net 2003 project, it gives...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.