Re: strange problem building non-pure wheel for apple M1 arm64

2022-03-08 Thread Robin Becker
On 08/03/2022 16:08, Christian Gollwitzer wrote: Am 07.03.22 um 17:22 schrieb Robin Becker: I use brew to install freetype version 2.11.1. I find via google that homebrew/apple have split the installation of intel and arm64 into /usr/local and /opt/homebrew so I must modify the include_dirs &

Re: strange problem building non-pure wheel for apple M1 arm64

2022-03-08 Thread Peter Pearson
On Mon, 7 Mar 2022 16:22:10 +, Robin Becker wrote: [snip] > > gcc -bundle -undefined dynamic_lookup -g -arch arm64 [snip] > -L/usr/local/lib > -L/usr/lib > -L/Library/Frameworks/Python.framework/Versions/3.9/lib > -lfreetype [snip] > > ld: warning: ignoring file /usr/l

Re: strange problem building non-pure wheel for apple M1 arm64

2022-03-08 Thread Christian Gollwitzer
Am 07.03.22 um 17:22 schrieb Robin Becker: I use brew to install freetype version 2.11.1. gcc -bundle -undefined dynamic_lookup -g -arch arm64 build/temp.macosx-11.0-arm64-3.9/src/rl_addons/renderPM/_renderPM.o build/temp.macosx-11.0-arm64-3.9/src/rl_addons/renderPM/gt1/gt1-dict.o

strange problem building non-pure wheel for apple M1 arm64

2022-03-07 Thread Robin Becker
I use cibuildwheel to build extensions with a github action. For the macos 11.0 arm64 build I get a strange message from the load command. So I am looking for assistance to try and figure out what is going wrong. The cibuild action uses the latest pip 21.2.4 and latest setuptools etc. I use bre

Re: Strange problem with pip2

2018-03-01 Thread dieter
Cecil Westerhof writes: > There are three pip2 packages that should be updated: > apsw (3.13.0.post1) - Latest: 3.9.2.post1 [sdist] > mysql-utilities (1.6.4) - Latest: 1.4.3 [sdist] > pygobject (3.22.0) - Latest: 3.27.4 [sdist] > > But the strange thing is that the installed version i

Re: Strange problem with pip2

2018-03-01 Thread Paul Moore
On 1 March 2018 at 16:32, Dennis Lee Bieber wrote: > Note that a google search shows lots of problems apparently caused by > the --single-version-externally-managed option. --single-version-externally-managed is how pip calls setuptools, and is required. It doesn't cause any problems the

Strange problem with pip2

2018-03-01 Thread Cecil Westerhof
There are three pip2 packages that should be updated: apsw (3.13.0.post1) - Latest: 3.9.2.post1 [sdist] mysql-utilities (1.6.4) - Latest: 1.4.3 [sdist] pygobject (3.22.0) - Latest: 3.27.4 [sdist] But the strange thing is that the installed version is newer as the new version. And when

Re: Strange Problem with pythonw.exe

2012-06-10 Thread Terry Reedy
On 6/10/2012 7:39 PM, a...@vorsicht-bissig.de wrote: Thank you for your help. I found the problem at some other place. The registry tweaks didn't solve it. But I found the hint to look up my .idlerc folder. So the problem was entirely IDLE related (yes, it worked before). But it wasnt PyQt'S pro

Re: Strange Problem with pythonw.exe

2012-06-10 Thread asa
> > Hello subscribers, > > > > I've recently encountered a strange problem with Python for Windows. > > I'm using Windows 7 Pro 64 Bit and Python 3.2.3 64 Bit (also tried 32 > > bit). The Problem is, that pythonw.exe does not work at all! > > Theref

Re: Strange Problem with pythonw.exe

2012-06-09 Thread Terry Reedy
On 6/9/2012 10:23 AM, a...@vorsicht-bissig.de wrote: Hello subscribers, I've recently encountered a strange problem with Python for Windows. I'm using Windows 7 Pro 64 Bit and Python 3.2.3 64 Bit (also tried 32 bit). The Problem is, that pythonw.exe does not work at all! Therefore n

Strange Problem with pythonw.exe

2012-06-09 Thread asa
Hello subscribers, I've recently encountered a strange problem with Python for Windows. I'm using Windows 7 Pro 64 Bit and Python 3.2.3 64 Bit (also tried 32 bit). The Problem is, that pythonw.exe does not work at all! Therefore no IDLE for me... But python.exe runs just fine. I r

Re: strange problem with multiprocessing

2010-11-11 Thread Marc Christiansen
Neal Becker wrote: > Any idea what this could be about? > > Traceback (most recent call last): > File "run-tests-1004.py", line 48, in >results = pool.map (run_test, cases) > File "/usr/lib64/python2.7/multiprocessing/pool.py", line 199, in map >return self.map_async(func, iterable

strange problem with multiprocessing

2010-11-11 Thread Neal Becker
Any idea what this could be about? Traceback (most recent call last): File "run-tests-1004.py", line 48, in results = pool.map (run_test, cases) File "/usr/lib64/python2.7/multiprocessing/pool.py", line 199, in map return self.map_async(func, iterable, chunksize).get() File "/us

Re: More On the Strange Problem

2009-12-29 Thread Albert van der Horst
In article <4b32881...@dnews.tpgi.com.au>, Lie Ryan wrote: >On 12/24/2009 8:00 AM, MRAB wrote: >> >> >>> print first_twin == second_twin >> True > >err... I don't think there is any situation where first_twin == >second_twin wouldn't be considered a bug. They look similar, they act >similar, and

Re: More On the Strange Problem

2009-12-23 Thread Steven D'Aprano
On Wed, 23 Dec 2009 19:03:36 +, MRAB wrote: >> if whatDo == 'insert': >> theVal = defaultVal >> val = defaultVal >> > What's the difference between theVal and val? The names don't help me! Oh MRAB! Isn't it obvious? theVal has a leading definite article while val doesn't! R

Re: More On the Strange Problem

2009-12-23 Thread Lie Ryan
On 12/24/2009 8:00 AM, MRAB wrote: >>> print first_twin == second_twin True err... I don't think there is any situation where first_twin == second_twin wouldn't be considered a bug. They look similar, they act similar, and they quack the same; though you can almost always treat them the sa

Re: More On the Strange Problem

2009-12-23 Thread MRAB
Victor Subervi wrote: On Wed, Dec 23, 2009 at 3:03 PM, MRAB > wrote: Victor Subervi wrote: I've isolated the problem in the print-out at the bottom of this post. It occurs when these values are passed: ['LastDatePrice', 'date', '10

Re: More On the Strange Problem

2009-12-23 Thread uticdmarceau2...@yahoo.ca
Victor Subervi wrote: > On Wed, Dec 23, 2009 at 2:21 PM, Victor Subervi > wrote: > >> I've isolated the problem in the print-out at the bottom of this post. It >> occurs when these values are passed: >> >> ['LastDatePrice', 'date', '10', '/mm/dd', None], >> >> Since this is the first datetime

Re: More On the Strange Problem

2009-12-23 Thread Victor Subervi
On Wed, Dec 23, 2009 at 3:03 PM, MRAB wrote: > Victor Subervi wrote: > >> I've isolated the problem in the print-out at the bottom of this post. It >> occurs when these values are passed: >> >> ['LastDatePrice', 'date', '10', '/mm/dd', None], >> >> Since this is the first datetime that is pas

Re: More On the Strange Problem

2009-12-23 Thread Emile van Sebille
On 12/23/2009 10:21 AM Victor Subervi said... printed out. This is the code: print 'printTheForm: ', descrProds, '' for value in descrProds: print 'value: ', value, '' Why not try this in a fashion more likely to succeed... import cgi for value in descrProds: print 'value: %s '

Re: More On the Strange Problem

2009-12-23 Thread Carsten Haese
Victor Subervi wrote: > [...] > If in fact the problem has to do with the None value, how can I easily > substitute a different value? I tried: > > if theVal == None: > theVal = '' > > but that didn't capture it. That indicates one of two things: * Your problem is not caused by the None value.

Re: More On the Strange Problem

2009-12-23 Thread MRAB
Victor Subervi wrote: I've isolated the problem in the print-out at the bottom of this post. It occurs when these values are passed: ['LastDatePrice', 'date', '10', '/mm/dd', None], Since this is the first datetime that is passed, it would appear to be associated with such values, which a

Re: More On the Strange Problem

2009-12-23 Thread Victor Subervi
On Wed, Dec 23, 2009 at 2:21 PM, Victor Subervi wrote: > I've isolated the problem in the print-out at the bottom of this post. It > occurs when these values are passed: > > ['LastDatePrice', 'date', '10', '/mm/dd', None], > > Since this is the first datetime that is passed, it would appear to

More On the Strange Problem

2009-12-23 Thread Victor Subervi
I've isolated the problem in the print-out at the bottom of this post. It occurs when these values are passed: ['LastDatePrice', 'date', '10', '/mm/dd', None], Since this is the first datetime that is passed, it would appear to be associated with such values, which are processed thus: el

Re: Strange Problem

2009-12-23 Thread Victor Subervi
On Tue, Dec 22, 2009 at 5:14 PM, Dave Angel wrote: > Victor Subervi wrote: > >> Hi; >> I have the following code: >> >> print 'printTheForm: ', descrProds, '' >> for value in descrProds: >>print 'value: ', value, '' >> >> which prints this: >> >> printTheForm: [['ID', 'tinyint', '5', '0', N

Re: Strange Problem

2009-12-22 Thread MRAB
Victor Subervi wrote: Hi; I have the following code: print 'printTheForm: ', descrProds, '' for value in descrProds: print 'value: ', value, '' which prints this: printTheForm: [['ID', 'tinyint', '5', '0', None], ['SKU', 'varchar', '40', '', None], ['Category', 'varchar', '40', '',

Re: Strange Problem

2009-12-22 Thread Dave Angel
Victor Subervi wrote: Hi; I have the following code: print 'printTheForm: ', descrProds, '' for value in descrProds: print 'value: ', value, '' which prints this: printTheForm: [['ID', 'tinyint', '5', '0', None], ['SKU', 'varchar', '40', '', None], ['Category', 'varchar', '40', '', Non

Re: Strange Problem

2009-12-22 Thread Emile van Sebille
On 12/22/2009 10:57 AM Victor Subervi said... Hi; I have the following code: print 'printTheForm: ', descrProds, '' This doesn't match what you say the below is the output from. There's no below... for value in descrProds: print 'value: ', value, '' When I assign your result la

Strange Problem

2009-12-22 Thread Victor Subervi
Hi; I have the following code: print 'printTheForm: ', descrProds, '' for value in descrProds: print 'value: ', value, '' which prints this: printTheForm: [['ID', 'tinyint', '5', '0', None], ['SKU', 'varchar', '40', '', None], ['Category', 'varchar', '40', '', None], ['Name', 'varchar',

Re: Very Strange Problem

2009-07-30 Thread Simon Forman
On Wed, Jul 29, 2009 at 3:10 PM, Omer Khalid wrote: > Hi Dave, > > Thanks for your reply. I actually didn't cut and paste my code as it was > dispersed in different places, i typed the logic behind my code in the email > (and obiviously made some typos, indentations is some thing else) but my Plea

Re: Very Strange Problem

2009-07-29 Thread Dave Angel
in memory this object is stored, and is there a lock on it or else? Thanks, Omer ** On Wed, Jul 29, 2009 at 8:56 PM, Dave Angel wrote: Omer Khalid wrote: Hi, I am having a very strange problem with modifying a variable in a list in my progra

Re: Very Strange Problem

2009-07-29 Thread Terry Reedy
Omer Khalid wrote: Hi, I am having a very strange problem with modifying a variable in a list in my program. Here is the code: To me, this sentence clearly implies that the code that follows is the code that had the problem. Since the posted code cannot run, it clearly is not. People

Re: Very Strange Problem

2009-07-29 Thread Omer Khalid
t is stored, and is there a lock on it or else? Thanks, Omer ** On Wed, Jul 29, 2009 at 8:56 PM, Dave Angel wrote: > Omer Khalid wrote: > >> Hi, >> >> I am having a very strange problem with modifying a variable in a list in >&g

Re: Very Strange Problem

2009-07-29 Thread Dave Angel
Omer Khalid wrote: Hi, I am having a very strange problem with modifying a variable in a list in my program. Here is the code: # a list that contains dictionary objects jobs = [] index=5 for each in range(index): jobs.append({'v':0}) some_function(index): if jobs

Re: Very Strange Problem

2009-07-29 Thread MRAB
Ricardo Aráoz wrote: MRAB wrote: Omer Khalid wrote: Hi, I am having a very strange problem with modifying a variable in a list in my program. Here is the code: # a list that contains dictionary objects jobs = [] index=5 for each in range(index): jobs.append({'

Re: Very Strange Problem

2009-07-29 Thread MRAB
Omer Khalid wrote: Hi, I am having a very strange problem with modifying a variable in a list in my program. Here is the code: # a list that contains dictionary objects jobs = [] index=5 for each in range(index): jobs.append({'v':0}) some_function(index): if jobs

Very Strange Problem

2009-07-29 Thread Omer Khalid
Hi, I am having a very strange problem with modifying a variable in a list in my program. Here is the code: # a list that contains dictionary objects jobs = [] index=5 for each in range(index): jobs.append({'v':0}) some_function(index): if jobs[index]

Re: Strange problem when using imp.load_module

2009-04-23 Thread pythoncurious
Well spotted :) That does seem to be the problem. Adding removal of the .pyc file will make the tests pass. I guess that python doesn't use the higher resolution timestamp you can get from at least Solaris when doing 'stat' on a file. Thanks for the help. /Mattias On Apr 23, 10:28 pm, Arnaud

Re: Strange problem when using imp.load_module

2009-04-23 Thread Arnaud Delobelle
pythoncuri...@gmail.com writes: > Hi, Hi, I have a guess at explaining the behaviour you describe - see below. > I'm having problem when I'm trying to import modules using the > imp.load_module function. > At the end of this post there's some code I wrote to illustrate the > problem. > The code

Strange problem when using imp.load_module

2009-04-23 Thread pythoncurious
Hi, I'm having problem when I'm trying to import modules using the imp.load_module function. At the end of this post there's some code I wrote to illustrate the problem. The code istself doesn't make much sense, but what I'm trying to do in reality is allow people to customize an application by wr

Re: strange problem with Py2exe

2009-03-11 Thread Mike Driscoll
On Mar 11, 9:37 am, sf409...@gmail.com wrote: > Hello all, > in the past I've used Py2exe without any problem, but now I have this > strange difficulty. > In my computer I have  python 2.6,  py2exe for python 2.6 and the > distutils, but when I do: > > from distutils.core import setup > import py2e

Re: strange problem with Py2exe

2009-03-11 Thread CM
On Mar 11, 10:37 am, sf409...@gmail.com wrote: > Hello all, > in the past I've used Py2exe without any problem, but now I have this > strange difficulty. > In my computer I have  python 2.6,  py2exe for python 2.6 and the > distutils, but when I do: > > from distutils.core import setup > import py2

strange problem with Py2exe

2009-03-11 Thread sf409777
Hello all, in the past I've used Py2exe without any problem, but now I have this strange difficulty. In my computer I have python 2.6, py2exe for python 2.6 and the distutils, but when I do: from distutils.core import setup import py2exe setup(console=['hello.py']) ( like written in: http://w

Re: Strange problem ....

2008-07-23 Thread karthikbalaguru
On Jul 23, 1:31 pm, "Simon Brunning" <[EMAIL PROTECTED]> wrote: > 2008/7/23 karthikbalaguru <[EMAIL PROTECTED]>: > > > I use Redhat 9.0, python-2.2.2-26, python-devel-2.2.2-26 and > > db4-4.0.14-20. > > > File "/usr/local/SDK/bin/../core/bin/processorlib.py", line 88 > >yield ProcessorObjectIn

Re: Strange problem ....

2008-07-23 Thread Diez B. Roggisch
karthikbalaguru wrote: > Hi, > > I am new to python, Kindly suggest to resolve a problem with a python > file. > What does the below error refer to ? > I use Redhat 9.0, python-2.2.2-26, python-devel-2.2.2-26 and > db4-4.0.14-20. > > [EMAIL PROTECTED] processor]# Analyzer processorcycle > /usr/l

Re: Strange problem ....

2008-07-23 Thread Francesco Bochicchio
Il Wed, 23 Jul 2008 01:19:48 -0700, karthikbalaguru ha scritto: > Hi, > > I am new to python, Kindly suggest to resolve a problem with a python > file. > What does the below error refer to ? > I use Redhat 9.0, python-2.2.2-26, python-devel-2.2.2-26 and > db4-4.0.14-20. > > [EMAIL PROTECTED] pro

Re: Strange problem ....

2008-07-23 Thread Simon Brunning
2008/7/23 karthikbalaguru <[EMAIL PROTECTED]>: > I use Redhat 9.0, python-2.2.2-26, python-devel-2.2.2-26 and > db4-4.0.14-20. > > File "/usr/local/SDK/bin/../core/bin/processorlib.py", line 88 >yield ProcessorObjectInfo(child, self.pt) >^ > SyntaxError: invalid syntax

Strange problem ....

2008-07-23 Thread karthikbalaguru
Hi, I am new to python, Kindly suggest to resolve a problem with a python file. What does the below error refer to ? I use Redhat 9.0, python-2.2.2-26, python-devel-2.2.2-26 and db4-4.0.14-20. [EMAIL PROTECTED] processor]# Analyzer processorcycle /usr/local/SDK/bin/../core/bin/processorlib.py:8 8

Re: Strange problem with structs Linux vs. Mac

2008-03-18 Thread Martin Blume
"Marc 'BlackJack' Rintsch" schrieb > > > I don't think this qualifies as a bug, but I am astonished > > that the struct module does not tell you whether you are > > big endian, you have to find out yourself with > >struct.unpack('@I', s)[0]==struct.unpack(">I", s)[0] > > Maybe a little more

Re: Strange problem with structs Linux vs. Mac

2008-03-17 Thread Marc 'BlackJack' Rintsch
On Sun, 16 Mar 2008 18:45:19 +0100, Martin Blume wrote: > I don't think this qualifies as a bug, but I am astonished > that the struct module does not tell you whether you are > big endian, you have to find out yourself with >struct.unpack('@I', s)[0]==struct.unpack(">I", s)[0] Maybe a little

Re: Strange problem with structs Linux vs. Mac

2008-03-16 Thread jasonwiener
Completely helped! Working as expected now. Thanks. You really got me out of a bind! J. On Mar 16, 10:23 am, "Martin Blume" <[EMAIL PROTECTED]> wrote: > "jasonwiener" schrieb > > > I am having a VERY odd problem with unpacking right now. > > I'm reading data from a binary file and then using a

Re: Strange problem with structs Linux vs. Mac

2008-03-16 Thread Martin Blume
"sturlamolden" schrieb > > > This seems to imply that the Mac, although running now > > on Intel processors, is still big-endian. > > Or maybe the struct module thinks big-endian is native > to all Macs? It could be a bug. > Dunno, I'm on thin ice here. Never used a Mac. Maybe the underlying

Re: Strange problem with structs Linux vs. Mac

2008-03-16 Thread Michael Wieher
you can specifify which encoding when you unpack the struct, so just try them till it works, or read the specs on the mac.. i find it quicker to try, there's only 4-5 2008/3/16, sturlamolden <[EMAIL PROTECTED]>: > > On 16 Mar, 18:23, "Martin Blume" <[EMAIL PROTECTED]> wrote: > > > This seems to im

Re: Strange problem with structs Linux vs. Mac

2008-03-16 Thread sturlamolden
On 16 Mar, 18:23, "Martin Blume" <[EMAIL PROTECTED]> wrote: > This seems to imply that the Mac, although running now on Intel > processors, is still big-endian. Or maybe the struct module thinks big-endian is native to all Macs? It could be a bug. -- http://mail.python.org/mailman/listinfo/p

Re: Strange problem with structs Linux vs. Mac

2008-03-16 Thread Martin Blume
"jasonwiener" schrieb > > I am having a VERY odd problem with unpacking right now. > I'm reading data from a binary file and then using a very > simple struct.unpack to get a long. Works fine on my MacBook, > but when I push it to a Linux box,it acts differently and > ends up pewking. > [...]

Re: Strange problem with structs Linux vs. Mac

2008-03-16 Thread Michael Wieher
try twiddling the unpack prefix, they're probably stored in different binary formats on the disk... on the struct helppage, is a list of prefixes, can be like unpack('=HI',data) unpack('@HI',data) etc... find out which one works on each machine 2008/3/16, jasonwiener <[EMAIL PROTECTED]>: > > H

Strange problem with structs Linux vs. Mac

2008-03-16 Thread jasonwiener
Hi- I am having a VERY odd problem with unpacking right now. I'm reading data from a binary file and then using a very simple struct.unpack to get a long. Works fine on my MacBook, but when I push it to a Linux box,it acts differently and ends up pewking. here's the code snippet:

Re: Strange problem: MySQL and python logging using two separate cursors

2008-01-11 Thread Chris Mellon
On Jan 9, 2008 11:52 AM, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Wed, 9 Jan 2008 10:11:09 +0100, Frank Aune <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > The only clue I have so far, is that the cursor in task 1 seems to be unable > > to "register" any new entri

Re: Strange problem: MySQL and python logging using two separate cursors

2008-01-11 Thread Frank Aune
On Wednesday 09 January 2008 18:52:02 Dennis Lee Bieber wrote: > On Wed, 9 Jan 2008 10:11:09 +0100, Frank Aune <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > The only clue I have so far, is that the cursor in task 1 seems to be > > unable to "register" any new entries in t

Strange problem: MySQL and python logging using two separate cursors

2008-01-09 Thread Frank Aune
Hi, Explaining this problem is quite tricky, but please bear with me. Ive got an application which uses MySQL (InnoDB) for two things: 1. Store and retrieve application data (including viewing the application log) 2. Store the application log produced by the python logging module The connectio

Re: Strange problem when using re module with threads

2007-11-01 Thread Gabriel Genellina
En Thu, 01 Nov 2007 17:01:36 -0300, Wei Lee Woon <[EMAIL PROTECTED]> escribió: > I've been getting a rather strange problem with the following > multithreaded > code (reduced to the minimum which still results in the problem): > > import threading > import re &

Strange problem when using re module with threads

2007-11-01 Thread Wei Lee Woon
Dear all I've been getting a rather strange problem with the following multithreaded code (reduced to the minimum which still results in the problem): import threading import re class hey(threading.Thread): def run(self): print re.compile("\d+").search("hey95yo

Re: strange problem using modules from my own package.

2007-02-08 Thread krishnakant Mane
On 09/02/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Friday 9/2/2007 02:10, you wrote: > > Please keep posting on the list - you'll reach a whole lot of people > there... sorry, I had just hit the reply button and did not notice that python-list was not there. >my crystal ball I can see t

Re: strange problem using modules from my own package.

2007-02-08 Thread Gabriel Genellina
At Friday 9/2/2007 02:10, you wrote: Please keep posting on the list - you'll reach a whole lot of people there... On 09/02/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: It's a bit hard to tell from your description - would be better if you had copied the exact error messages. But the over

Re: strange problem using modules from my own package.

2007-02-08 Thread Gabriel Genellina
En Thu, 08 Feb 2007 18:40:39 -0300, krishnakant Mane <[EMAIL PROTECTED]> escribió: > I found a very strange kind of behaviour in python with my own package. > I created a package in which there were 4 modules and one __init__.py > file > I created the entire project in eclipse (pydev). > it wo

strange problem using modules from my own package.

2007-02-08 Thread krishnakant Mane
hello all, I found a very strange kind of behaviour in python with my own package. I created a package in which there were 4 modules and one __init__.py file I created the entire project in eclipse (pydev). it works fine there with the ide. but now when I try running the code without eclipse, that

Re: strange problem

2006-10-24 Thread Steve Holden
ken wrote: > This file has 1,000,000+ lines in it, yet when I print the counter 'cin' > at EOF I get around 10,000 less lines. Any ideas? > > lineIn = > csv.reader(file("rits_feed\\rits_feed_US.csv",'rb'),delimiter='|') > for emp in lineIn: > cin=cin+1 > print cin My psyc

Re: strange problem

2006-10-24 Thread Bruno Desthuilliers
ken a écrit : > This file has 1,000,000+ lines in it, yet when I print the counter 'cin' > at EOF I get around 10,000 less lines. Any ideas? Not without seeing the file. But I'm not sure I want to see it !-) >lineIn = > csv.reader(file("rits_feed\\rits_feed_US.csv",'rb'),delimiter='|') >

Re: strange problem

2006-10-24 Thread Tim Chase
> This file has 1,000,000+ lines in it, yet when I print the counter 'cin' > at EOF I get around 10,000 less lines. Any ideas? > > lineIn = > csv.reader(file("rits_feed\\rits_feed_US.csv",'rb'),delimiter='|') > for emp in lineIn: > cin=cin+1 > print cin What happens if yo

strange problem

2006-10-24 Thread ken
This file has 1,000,000+ lines in it, yet when I print the counter 'cin' at EOF I get around 10,000 less lines. Any ideas? lineIn = csv.reader(file("rits_feed\\rits_feed_US.csv",'rb'),delimiter='|') for emp in lineIn: cin=cin+1 print cin -- http://mail.python.org/mailman/

Re: Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread aldonnelley
And I say once again: I can't thank you enough. YOU ROCK! cheers, al. (Just changed the code in my main program, and it WORKS! The previous thankyou was only a preliminary.) ps I really like python, too. :) [EMAIL PROTECTED] wrote: > Yup, > That's the problem. Can't thank you enough. > I'd read

Re: Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread aldonnelley
Yup, That's the problem. Can't thank you enough. I'd read about Tkinter "garbage collection", but, like car crashes and lung cancer, you never think it's going to happen to you... thanks once again. Cheers, Al. Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > Just having a weird problem with

Re: Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Just having a weird problem with tkinter. I'm trying to make a gui that > shows results from an image search, with a "forward" and "back" button > so the user can compare results from different pages. All that's > working fine... > The problem I'm having is that the imag

Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread aldonnelley
Hi all. Just having a weird problem with tkinter. I'm trying to make a gui that shows results from an image search, with a "forward" and "back" button so the user can compare results from different pages. All that's working fine... The problem I'm having is that the images don't show onscreen the

Re: very strange problem in 2.4

2006-04-10 Thread conor . robinson
Ok, so I found out that even though mylist[] and all objects in it were fine ie id(mylist[i]) != id(mylist[all others]) what was happening is that during a reproduction function a shallow copies were being made making all offspring (genetic algorithm) have different id(mylist[0..n]), however the ac

Re: very strange problem in 2.4

2006-04-10 Thread conor . robinson
Ok, so I found out that even though mylist[] and all objects in it were fine ie id(mylist[i]) != id(mylist[all others]) what was happening is that during a reproduction function a shallow copies were being made making all offspring (genetic algorithm) have different id(mylist[0..n]), however the ac

Re: very strange problem in 2.4

2006-04-10 Thread conor . robinson
Ok, so I found out that even though mylist[] and all objects in it were fine ie id(mylist[i]) != id(mylist[all others]) what was happening is that during a reproduction function a shallow copies were being made making all offspring (genetic algorithm) have different id(mylist[0..n]), however the ac

Re: very strange problem in 2.4

2006-04-10 Thread conor . robinson
Ok, so I found out that even though mylist[] and all objects in it were fine ie id(mylist[i]) != id(mylist[all others]) what was happening is that during a reproduction function a shallow copies were being made making all offspring (genetic algorithm) have different id(mylist[0..n]), however the ac

Re: very strange problem in 2.4

2006-04-10 Thread conor . robinson
Ok, so I found out that even though mylist[] and all objects in it were fine ie id(mylist[i]) != id(mylist[all others]) what was happening is that during a reproduction function a shallow copies were being made making all offspring (genetic algorithm) have different id(mylist[0..n]), however the ac

Re: very strange problem in 2.4

2006-04-08 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > The Problem (very basic, but strange): > > I have a list holding a population of objects, each object has 5 vars > and appropriate funtions to get or modify the vars. Which are probably not necessary: http://dirtsimple.org/2004/12/python-is-not-java.html (in short:

Re: very strange problem in 2.4

2006-04-07 Thread Fredrik Lundh
John Zenger wrote: > Your list probably contains several references to the same object, > instead of several different objects. This happens often when you use a > technique like: > > list = [ object ] * 100 > > ..because although this does make copies when "object" is an integer, it > just makes

Re: very strange problem in 2.4

2006-04-07 Thread Ben Cartwright
John Zenger wrote: > Your list probably contains several references to the same object, > instead of several different objects. This happens often when you use a > technique like: > > list = [ object ] * 100 This is most likely what's going on. To the OP: please post the relevant code, including

Re: very strange problem in 2.4

2006-04-07 Thread Steven D'Aprano
On Fri, 07 Apr 2006 21:18:12 -0400, John Zenger wrote: > Your list probably contains several references to the same object, > instead of several different objects. This happens often when you use a > technique like: > > list = [ object ] * 100 > > ..because although this does make copies when

Re: very strange problem in 2.4

2006-04-07 Thread John Zenger
Your list probably contains several references to the same object, instead of several different objects. This happens often when you use a technique like: list = [ object ] * 100 ..because although this does make copies when "object" is an integer, it just makes references in other cases. [E

very strange problem in 2.4

2006-04-07 Thread conor . robinson
The Problem (very basic, but strange): I have a list holding a population of objects, each object has 5 vars and appropriate funtions to get or modify the vars. When objects in the list have identical vars (like all = 5 for var "a" and all = 10 for var "b" across all vars and objects) and i chang

Re: Strange problem when running python code

2006-04-05 Thread Steve Juranich
Dennis Lee Bieber wrote: > As an occassional dabbler in the Tarot, I can assure you that cards > are NOT used for "mind-reading"; they merely offer up a possible future > which must be interpreted in light of the querant's situation... (or, > since I typically read for myself -- the allow my subco

Re: Strange problem when running python code

2006-04-05 Thread Steven D'Aprano
On Tue, 04 Apr 2006 12:01:12 -0700, ishtar2020 wrote: > I must add, when the python interpreter displays the traceback, with > the line that is producing the error, it doesn't look like the one I > got in the code. I sometimes get that problem when I'm running code, I make a change in the source

Re: Strange problem when running python code

2006-04-05 Thread Fredrik Lundh
"ishtar2020" wrote: > It's quite puzzling. And if I change some lousy thing, like inserting a > newline between the sentences, the interpreter will find another error > somewhere else, even when that part of the code was working flaw- > lessly in previous runs what Python version are you using ?

Re: Strange problem when running python code

2006-04-04 Thread sushant . sirsikar
Are U Using any IDE for Python? If yes then check out the setting and make sure that u are running same code. -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange problem when running python code

2006-04-04 Thread Christopher Weimann
On 04/04/2006-12:01PM, ishtar2020 wrote: > This is the line where the interpreter finds the error > >if text.list[i].toString() in limits:list)): <- Here is where That line has two extra close parens before the : Can you show the traceback? -- http://mail.python.org/mailman/listinfo

Re: Strange problem when running python code

2006-04-04 Thread James Stroud
ishtar2020 wrote: > Hi everybody > > I've been writing my very first application in Python and everything is > running smoothly, except for a strange problem that pops up every once > in a while. I'm sure is the kind > of newbie thing every seasoned programmer kno

Re: Strange problem when running python code

2006-04-04 Thread Steve Juranich
Roy Smith wrote: > ishtar2020 <[EMAIL PROTECTED]> wrote: >>I've been writing my very first application in Python and everything is >>running smoothly, except for a strange problem that pops up every once >>in a while. I'm sure is the kind >>of n

Re: Strange problem when running python code

2006-04-04 Thread ishtar2020
I must add, when the python interpreter displays the traceback, with the line that is producing the error, it doesn't look like the one I got in the code. This is the line where the interpreter finds the error if text.list[i].toString() in limits:list)): <- Here is where the error is foun

Re: Strange problem when running python code

2006-04-04 Thread Roy Smith
ishtar2020 <[EMAIL PROTECTED]> wrote: >I've been writing my very first application in Python and everything is >running smoothly, except for a strange problem that pops up every once >in a while. I'm sure is the kind >of newbie thing every seasoned programmer knows. No

Re: Strange problem when running python code

2006-04-04 Thread Fredrik Lundh
"ishtar2020" wrote: > Sometimes a receive strange Syntax Errors from parts of code that > worked perfectly minutes ago. What's even more puzzling is that those > errors are pointed to another part of the module when I do some random, > innofensive changes in the code (like inserting a line or dele

Re: Strange problem when running python code

2006-04-04 Thread John Salerno
ishtar2020 wrote: > Hi everybody > > I've been writing my very first application in Python and everything is > running smoothly, except for a strange problem that pops up every once > in a while. I'm sure is the kind > of newbie thing every seasoned programmer kno

Re: Strange problem when running python code

2006-04-04 Thread Brian Beck
For certain errors like Syntax Errors, you'll get a much more helpful response if you post some actual code. Strip it down if you have to, but make sure we can reproduce the errors. -- Brian Beck Adventurer of the First Order -- http://mail.python.org/mailman/listinfo/python-list

Strange problem when running python code

2006-04-04 Thread ishtar2020
Hi everybody I've been writing my very first application in Python and everything is running smoothly, except for a strange problem that pops up every once in a while. I'm sure is the kind of newbie thing every seasoned programmer knows. Sometimes a receive strange Syntax Errors fro