Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51770

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

From Dave Angel <davea@davea.name>
Subject Re: Python and PyQt (Windows) - AttributeError: 'module' object has not attribute run
Date 2013-08-01 23:43 +0000
References <1414fafe-bc3c-4795-87db-3e8ece51f2c5@googlegroups.com> <mailman.75.1375360769.1251.python-list@python.org> <aaa2817b-5118-49c2-a749-4bc263020c0b@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.100.1375400624.1251.python-list@python.org> (permalink)

Show all headers | View raw


alesssia wrote:

   <snip>

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

That's probably where you lost the case distinction.  The FAT file
system doesn't really support lowercase, except with 'extended
attributes', and probably your Linux system didn't create those in a way
that Windows was happy with.

If I had to get files between the two, I'd either use Linux tools to do
the transfer (eg. scp or ftp), or I'd zip the files and just transfer
the zip.

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

It can hold uppercase;  in fact, it's lower case that's "new".  But
because it's "case - preserving" rather than "case -sensitive",
sometimes it's a mess.

-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Python and PyQt (Windows) - AttributeError: 'module' object has not attribute run alesssia <alessia.visconti@gmail.com> - 2013-08-01 02:49 -0700
  Re: Python and PyQt (Windows) - AttributeError: 'module' object has not attribute run Dave Angel <davea@davea.name> - 2013-08-01 12:39 +0000
    Re: Python and PyQt (Windows) - AttributeError: 'module' object has not attribute run alesssia <alessia.visconti@gmail.com> - 2013-08-01 12:15 -0700
      Re: Python and PyQt (Windows) - AttributeError: 'module' object has not attribute run Dave Angel <davea@davea.name> - 2013-08-01 23:43 +0000

csiph-web