import problem

Batista, Facundo FBatista at uniFON.com.ar
Tue Apr 29 12:18:38 EDT 2003


#- i am having problems importing a module in my python script.  i have 
#- the following two import statements in the script:
#- 
#- from WVWService.util import XMLUtil
#- from WVWService.test import HTTPClient
#- 
#- the first import works just fine.  but, the second one i get 
#- the error 
#- "ImportError: No module named test".  i have checked for 
#- mispellings;  
#- i have checked to see if the directory test exists; i have 
#- checked the 
#- system path by printing out sys.path from w/i the script to 
#- see if the 
#- directory path is in sys.path 
#- (/home/vjb/workspace/wvwBase3/src/wvw).  

Check if you have a __init__.py file in the directory (you must).

Facundo.






More information about the Python-list mailing list