Re: Trouble importing modules in IDLE (Win32)

2008-08-25 Thread [EMAIL PROTECTED]
On Aug 22, 2:45 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: Hello, I wrote aprogram that imports odbc and dbi. Originally I used PyWin, but now I prefer IDLE for working in Windows. Anyway, when I start my program from IDLE, it can't import the odbc and

Re: Trouble importing modules in IDLE (Win32)

2008-08-25 Thread [EMAIL PROTECTED]
On Aug 22, 10:43 pm, Terry Reedy [EMAIL PROTECTED] wrote: Diez B. Roggisch wrote: By shell, he means the IDLE shell. But this is the direction to look first. In the IDLE shell (3.0) those two lines give me the Python directory, the same as the command line interpreter. When in a file that

Trouble importing modules in IDLE (Win32)

2008-08-22 Thread [EMAIL PROTECTED]
Hello, I wrote aprogram that imports odbc and dbi. Originally I used PyWin, but now I prefer IDLE for working in Windows. Anyway, when I start my program from IDLE, it can't import the odbc and dbi modules. However, when I restart the shell and type import odbc at the prompt by, I don't get an

Re: Trouble importing modules in IDLE (Win32)

2008-08-22 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: Hello, I wrote aprogram that imports odbc and dbi. Originally I used PyWin, but now I prefer IDLE for working in Windows. Anyway, when I start my program from IDLE, it can't import the odbc and dbi modules. However, when I restart the shell and type import odbc at the

Re: Trouble importing modules in IDLE (Win32)

2008-08-22 Thread Terry Reedy
Diez B. Roggisch wrote: [EMAIL PROTECTED] schrieb: Hello, In short: In a freshly (re)started shell, I can use import odbc by hand. I can't import odbc from within a script, or by hand after trying to start such a script. Screen capture follows. robert

trouble importing modules

2005-07-14 Thread Brandon Metcalf
I come from a Perl and C background and have been given an application written in Python to maintain and I know very little about Python. I'm having trouble at run time with importing modules. Specifically, in several places time.strptime() is being used and Freeze is being used to produce