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

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Windows': 0.02; 'subject:not': 0.03; 'subject:Python': 0.06; "subject:' ": 0.07; 'extracted': 0.09; 'filenames': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:module': 0.09; 'changes': 0.15; 'windows': 0.15; 'lower-case': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:PyQt': 0.16; 'subject:object': 0.16; 'subject:run': 0.16; 'two,': 0.16; 'uppercase;': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'header:User- Agent:1': 0.23; 'copied': 0.24; 'source': 0.25; 'header:X -Complaints-To:1': 0.27; "doesn't": 0.30; 'code': 0.31; 'anyone': 0.31; 'file': 0.32; 'there.': 0.32; 'probably': 0.32; 'linux': 0.33; 'guess': 0.33; "i'd": 0.34; 'subject: (': 0.35; 'except': 0.35; 'something': 0.35; 'case,': 0.35; 'but': 0.35; 'there': 0.35; 'really': 0.36; "didn't": 0.36; 'charset:us-ascii': 0.36; "i'll": 0.36; 'sometimes': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'rather': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'unable': 0.39; 'either': 0.39; 'received:org': 0.40; 'then,': 0.60; 'lower': 0.61; 'lost': 0.61; 'simply': 0.61; 'zip': 0.64; 'holding': 0.65; 'between': 0.67; 'fact,': 0.69; 'felt': 0.74; 'surprise': 0.74; 'upper': 0.74; 'subject:skip:A 10': 0.78; 'transfer': 0.82; 'fat': 0.84; 'subject:\t': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dave Angel <davea@davea.name>
Subject Re: Python and PyQt (Windows) - AttributeError: 'module' object has not attribute run
Date Thu, 1 Aug 2013 23:43:22 +0000 (UTC)
References <1414fafe-bc3c-4795-87db-3e8ece51f2c5@googlegroups.com> <mailman.75.1375360769.1251.python-list@python.org> <aaa2817b-5118-49c2-a749-4bc263020c0b@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 174.32.174.32
User-Agent XPN/1.2.6 (Street Spirit ; Linux)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.100.1375400624.1251.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375400624 news.xs4all.nl 15988 [2001:888:2000:d::a6]:36652
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51770

Show key headers only | 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