Ok here is the deal....
Since I sometimes need to run multiple instances of idle in the same
shell,so I use the -n switch by default:
8<------------------------------------------------------------
[removed~u...@removed~host ~]# idle --help
Error: option --help not recognized
USAGE: idle [-deins] [-t title] [file]*
idle [-dns] [-t title] (-c cmd | -r file) [arg]*
idle [-dns] [-t title] - [arg]*
-h print this help message and exit
-n run IDLE without a subprocess (see Help/IDLE Help for
details)
8<------------------------------------------------------------
So To complete Simons suggestion about idle,
Do not use the -n switch on idle when playing with SQLAlchemy.....
On Oct 15, 2009, at 6:55 PM, Martijn Moeling wrote:
>
> (in the mean time I drove home..... dinner soon)
>
>
> Indeed, running it from command line changes things,
>
> Strange since I even rebooted the machine in the process, but since I
> was messing with the code It could well have been really broken.
> Your sample works from the command line, mine still gives the error
> but needs changing.
>
> I will investigate some more, I have been using Idle with SQLA for
> more than a year now.
> but now I'm thinking about it, I use mod_python to actually run the
> code.....
>
> Any suggestions for a alternative? I do not like eclipse very mutch
> (same with Aptana)
>
> I'll keep you posted!
>
> Martijn
>
> On Oct 15, 2009, at 5:33 PM, King Simon-NFHD78 wrote:
>
>>
>>> -----Original Message-----
>>> From: [email protected]
>>> [mailto:[email protected]] On Behalf Of Martijn Moeling
>>> Sent: 15 October 2009 16:27
>>> To: [email protected]
>>> Subject: [sqlalchemy] Re: [runs one one installation not on
>>> the other] Declerative Relation trouble
>>>
>>>
>>> Mod_python has nothing to do with this project, so I run it
>>> from idle within X
>>>
>>
>> I have a feeling that Idle doesn't necessarily spawn a separate
>> process
>> to run your code, so you may have old definitions of your objects in
>> memory. Try running it directly from the command line.
>>
>>>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---