Python and PyQt (Windows) - AttributeError: 'module' object has not attribute run

alesssia alessia.visconti at gmail.com
Thu Aug 1 15:15:58 EDT 2013


>> After some tests, I discovered that renaming Pmc.py in pmc.py 
> I don't know what that means.

I simply renamed Pmc.py to pmc.py, using a lower case instead of an upper case. Of course, I also changed lines referencing to 'Pmc' (upper case) to 'pmc' (lover case) in the source code. This allows my program to work.

> My guess is that somehow when the zip file was extracted, the case of 
> this file was not preserved, and it came out  pmc.py.

The zip was not extracted because there was no zip. I copied the code from my computer to a USB pen drive and ran the code from there.


> My suggestion is to simply use all lower-case for your filenames

What surprised me is that Windows was unable of holding upper case, so I thought there was something else.  Yet, it seems that this behaviour does not surprise anyone else. Then, I'll simply changes all my source file names, despite I felt it silly...

Thanks,
Alessia



More information about the Python-list mailing list