Re: Importing package on Windows XP

2010-04-22 Thread M.-H. Z
Problem solved! For those who wish to know, the actual problem was the following. In my project, I had a package called "parser". I works fine on Linux and Mac, but seems to conflict with other package on Windows. So the module I wanted to load was not found. I had to rename the package name... D'o

Re: Importing package on Windows XP

2010-04-22 Thread M.-H. Z
Dear Dave, You are absolutely right! I changed my code so many times that I got confused when writing the post. Actually, I tried "from mod import module1" and "import mod.module1". Of course, they led to the same error: the one that Peter pointed. Anyway, thanks a lot for your help! Matthias. (Yet

Re: Importing package on Windows XP

2010-04-22 Thread M.-H. Z
Darn! That was it! I was pretty stupid! I swear I will stop drinking vodka before 8am. However, it does not solve the problem on my main project (which was not this toy example of course), since the names were correct there. Keep on working. Thanks a lot, Peter, for reading my long post and helping

Importing package on Windows XP

2010-04-22 Thread M.-H. Z
Hello dear Python hackers. I have a pretty stupid problem that I cannot solve despite all my efforts: Python cannot find my modules. I am sure the answer is obvious, but I cannot find it. The problem is simple, here is a toy example (which does not work). I have a file: --- import sys print sys.pat