Re: module problem on windows 64bit

2011-07-07 Thread miamia
On Jul 5, 5:05 pm, Thomas Jollans wrote: > On 06/27/2011 06:59 PM, miamia wrote: > > > Hello, > > > on 32-bit windows everything works ok but on 64-bit win I am getting > > this error: > > Traceback (most recent call last): > >   File "app.py", line 1040, in do_this_now > >   File "kinterbasdb\__i

Re: module problem on windows 64bit

2011-07-05 Thread Thomas Jollans
On 06/27/2011 06:59 PM, miamia wrote: > Hello, > > on 32-bit windows everything works ok but on 64-bit win I am getting > this error: > Traceback (most recent call last): > File "app.py", line 1040, in do_this_now > File "kinterbasdb\__init__.pyc", line 119, in > File "kinterbasdb\_kinterba

Re: module problem on windows 64bit

2011-06-28 Thread Christian Heimes
Am 28.06.2011 14:59, schrieb Peter Irbizon: > yes, that's right. but I am using embedable version of fbclient.dll so I > don't need to install Firebird Sql Server package. all dlls are in my > program folder even so it does not work. fbclient.dll may depend on more DLLs. Dependency walker is a gre

Re: module problem on windows 64bit

2011-06-28 Thread Peter Irbizon
> kinterbasdb's extension module _kinterbasdb.pyd depends on the shared > library fbclient.dll. The Firebird client library is of the Firebird SQL > server. As I already explained you have to install the 32bit (!) version > of Firebird and enable the "copy client dll to system32" option during > th

Re: module problem on windows 64bit

2011-06-28 Thread Christian Heimes
Am 27.06.2011 22:03, schrieb Peter Irbizon: > well, my program exe generated from py2exe. I am running Python 2.7 on my > win xp 32bit box then I compile my application with py2exe. After that I can > use it on other computers (on 32bit everything works perfect) but on 64 bit > windows I am getting

Re: module problem on windows 64bit

2011-06-27 Thread Peter Irbizon
>> Are you running 32bit or 64bit Python on your 64bit Windows box? You >> have to install the same flavour of Python, kinterbasdb and Firebird SQL >> (all 32bit or all 64bit). You also have to check the "copy client dlls >> to system directory" check box during the installation of Firebird SQL. >>

Re: module problem on windows 64bit

2011-06-27 Thread Christian Heimes
Am 27.06.2011 19:02, schrieb Peter Irbizon: > Hello, > > on 32-bit windows everything works ok but on 64-bit win I am getting > this error: > Traceback (most recent call last): > File "app.py", line 1040, in do_this_now > File "kinterbasdb\__init__.pyc", line 119, in > File "kinterbasdb\_kinte

module problem on windows 64bit

2011-06-27 Thread miamia
Hello, on 32-bit windows everything works ok but on 64-bit win I am getting this error: Traceback (most recent call last): File "app.py", line 1040, in do_this_now File "kinterbasdb\__init__.pyc", line 119, in File "kinterbasdb\_kinterbasdb.pyc", line 12, in File "kinterbasdb\_kinterbasd

module problem on windows 64bit

2011-06-27 Thread Peter Irbizon
Hello, on 32-bit windows everything works ok but on 64-bit win I am getting this error: Traceback (most recent call last): File "app.py", line 1040, in do_this_now File "kinterbasdb\__init__.pyc", line 119, in File "kinterbasdb\_kinterbasdb.pyc", line 12, in File "kinterbasdb\_kinterbasdb.py

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-07 Thread W. eWatson
On 8/6/2010 7:18 PM, Philip Semanchuk wrote: On Aug 6, 2010, at 3:14 PM, W. eWatson wrote: I must be missing something. I tried this. (Windows, IDLE, Python 2.5) Yes, as Benjamin Kaplan pointed out and as I said in the email where I posted this code snippet, "dependencies is a list of custom

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-06 Thread Philip Semanchuk
On Aug 6, 2010, at 3:14 PM, W. eWatson wrote: I must be missing something. I tried this. (Windows, IDLE, Python 2.5) Yes, as Benjamin Kaplan pointed out and as I said in the email where I posted this code snippet, "dependencies is a list of custom classes that represent modules we need (e

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-06 Thread Tommy Grav
On Aug 6, 2010, at 3:14 PM, W. eWatson wrote: > I must be missing something. I tried this. (Windows, IDLE, Python 2.5) > # Try each module > import sys > import numpy > import scipy > import string > > dependencies = "numyp", "scipy" > for dependency in dependencies: >try: >__import_

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-06 Thread Benjamin Kaplan
On Fri, Aug 6, 2010 at 12:14 PM, W. eWatson wrote: > I must be missing something. I tried this. (Windows, IDLE, Python 2.5) > # Try each module > import sys > import numpy > import scipy > import string > > dependencies = "numyp", "scipy" > for dependency in dependencies: >    try: >        __impo

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-06 Thread W. eWatson
I must be missing something. I tried this. (Windows, IDLE, Python 2.5) # Try each module import sys import numpy import scipy import string dependencies = "numyp", "scipy" for dependency in dependencies: try: __import__(dependency.name) except ImportError: # Uh oh!

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-06 Thread W. eWatson
On 8/5/2010 6:47 PM, Philip Semanchuk wrote: On Aug 5, 2010, at 8:55 PM, W. eWatson wrote: It's been awhile since I've used python, and I recall there is a way to find the version number from the IDLE command line prompt. dir, help, __version.__? Hi Wayne, FYI it's got nothing to do with IDL

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-06 Thread Philip Semanchuk
On Aug 6, 2010, at 10:20 AM, Richard D. Moores wrote: On Thu, Aug 5, 2010 at 18:47, Philip Semanchuk wrote: it's just a question of whether or not the module in question exposes any kind of a version attribute. There's no standard, unfortunately. The most popular convention seems to be

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-06 Thread Richard D. Moores
On Thu, Aug 5, 2010 at 18:47, Philip Semanchuk wrote: > > it's just a question of whether or not > the module in question exposes any kind of a version attribute. There's no > standard, unfortunately. The most popular convention seems to be via an > attribute called __version__, but I've also seen

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-05 Thread Philip Semanchuk
On Aug 5, 2010, at 8:55 PM, W. eWatson wrote: It's been awhile since I've used python, and I recall there is a way to find the version number from the IDLE command line prompt. dir, help, __version.__? Hi Wayne, FYI it's got nothing to do with IDLE, it's just a question of whether or no

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-05 Thread W. eWatson
On 8/5/2010 6:23 PM, MRAB wrote: W. eWatson wrote: It's been awhile since I've used python, and I recall there is a way to find the version number from the IDLE command line prompt. dir, help, __version.__? I made the most minimal change to a program, and it works for me, but not my partner. He

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-05 Thread W. eWatson
On 8/5/2010 6:13 PM, Steven D'Aprano wrote: On Thu, 05 Aug 2010 17:55:30 -0700, W. eWatson wrote: I'm pretty sure he has the same version of Python, 2.5, but perhaps not the numpy or scipy modules. I need to find out his version numbers. It's only a convention, but the usual way is to check t

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-05 Thread MRAB
W. eWatson wrote: It's been awhile since I've used python, and I recall there is a way to find the version number from the IDLE command line prompt. dir, help, __version.__? I made the most minimal change to a program, and it works for me, but not my partner. He gets Traceback (most recent

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-05 Thread Steven D'Aprano
On Thu, 05 Aug 2010 17:55:30 -0700, W. eWatson wrote: > I'm pretty sure he has the same version of Python, 2.5, but perhaps not > the numpy or scipy modules. I need to find out his version numbers. It's only a convention, but the usual way is to check the __version__ attribute. It works for Nump

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-05 Thread W. eWatson
It's been awhile since I've used python, and I recall there is a way to find the version number from the IDLE command line prompt. dir, help, __version.__? I made the most minimal change to a program, and it works for me, but not my partner. He gets Traceback (most recent call last): File

Re: mechanize module problem

2010-01-04 Thread alejandro
resolved! don't know why or how but it is... just restared eclipse for the fourth time "alejandro" wrote in message news:hhu38i$h2...@ss408.t-com.hr... > When I inport it wia python command line it all looks fine but if i try to > run it from eclipse it gives me an error that there is no packag

mechanize module problem

2010-01-04 Thread alejandro
When I inport it wia python command line it all looks fine but if i try to run it from eclipse it gives me an error that there is no package mechanize. Have anybody had this situation? win XP python26 -- http://mail.python.org/mailman/listinfo/python-list

Re: platform module problem when frozen?

2009-12-16 Thread Dave Angel
Gabriel Rossetti wrote: Hello everyone, I am having problems with the platform module when being run from a frozen program (py2exe). It imports it fine, but it gives me the following error : 'module' object does not contain attribute 'platform' when I do this : platform.platfom() Does p

platform module problem when frozen?

2009-12-16 Thread Gabriel Rossetti
Hello everyone, I am having problems with the platform module when being run from a frozen program (py2exe). It imports it fine, but it gives me the following error : 'module' object does not contain attribute 'platform' when I do this : platform.platfom() Does platform have a problem with

Python module problem under QNX

2009-06-16 Thread gnapalm
Hello, I'm trying to solve an issue with custom Python module at QNX 6.4.0 and Python 2.5.2. I have simple Python module (A.so) written in c++ which is linked against some other c++ library (B.so) both build by autotools. On Linux all works fine with PYTHONPATH pointed to A.so directory when dyna

"struct" module problem w/ pyinstaller

2007-07-27 Thread Keith
Hello, I am trying to create exectuables on inux using "pyinstaller". I am using pyinstaller-1.3, RHEL 4.4, Python 2.5. The executables fail to run. The problem returned is pertaining to "struct.py" not being able to find the module "_struct". struct.py is located under /usr/local/lib/python-2.5

Re: Module problem

2007-02-06 Thread Boris Ozegovic
Matimus wrote: > Do you have more than one version of Python installed? Is > win32clipboard installed for both versions? It could be that the Yup, that was the problem. Thanx! -- "A mi smo stranci u vlastitoj zemlji zbog ljudskog sljama, lipa nasa silovana" -- http://mail.python.org/mailman/l

Re: Module problem

2007-02-06 Thread Matimus
On Feb 6, 9:29 am, Boris Ozegovic <[EMAIL PROTECTED]> wrote: > Hi > > I am writing some simple script, and when I start my script from command > line (python Imenik.py), everything works perfectly. If I double clik the > same script in my desktop I get the following error: > > "No module name impo

Module problem

2007-02-06 Thread Boris Ozegovic
Hi I am writing some simple script, and when I start my script from command line (python Imenik.py), everything works perfectly. If I double clik the same script in my desktop I get the following error: "No module name import win32clipboard" -- "A mi smo stranci u vlastitoj zemlji zbog ljudsko

Re: Logging module: problem with some mapping keys

2006-12-15 Thread Peter Otten
Tekkaman wrote: >> Putting /usr/lib64/python2.4 as the first entry into your >> >> PYTHONPATH >> >> environment variable might fix the problem (the idea is >> that /usr/lib64/python2.4 precedes /usr/lib/python2.4 in sys.path and is >> therefore used for the import of the logging package). > Thank

Re: Logging module: problem with some mapping keys

2006-12-15 Thread Tekkaman
On Dec 14, 6:41 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > Tekkaman wrote: >> lib is a symlink to lib64 > So my initial diagnosis was correct. Unfortunately I can no longer recommend > that you remove the symlink... > Yes. What I really meant in my first reply was "it's not a symlink in the scr

Re: Logging module: problem with some mapping keys

2006-12-14 Thread Peter Otten
Tekkaman wrote: > lib is a symlink to lib64 So my initial diagnosis was correct. Unfortunately I can no longer recommend that you remove the symlink... Putting /usr/lib64/python2.4 as the first entry into your PYTHONPATH environment variable might fix the problem (the idea is that /usr/lib64

Re: Logging module: problem with some mapping keys

2006-12-14 Thread Tekkaman
Peter Otten wrote: > Tekkaman wrote: > > > Peter Otten wrote: > >> Tekkaman wrote: > >> > >> > Thanks for the hint, but it's not a symlink > >> > >> What does logging._srcfile contain? Should be > >> > >> >>> import logging > >> >>> logging._srcfile > >> '/usr/lib/python2.4/logging/__init__.py' >

Re: Logging module: problem with some mapping keys

2006-12-14 Thread Tekkaman
lib is a symlink to lib64 Peter Otten wrote: > Tekkaman wrote: > > > Peter Otten wrote: > >> Tekkaman wrote: > >> > >> > Thanks for the hint, but it's not a symlink > >> > >> What does logging._srcfile contain? Should be > >> > >> >>> import logging > >> >>> logging._srcfile > >> '/usr/lib/python2

Re: Logging module: problem with some mapping keys

2006-12-14 Thread Peter Otten
Tekkaman wrote: > Peter Otten wrote: >> Tekkaman wrote: >> >> > Thanks for the hint, but it's not a symlink >> >> What does logging._srcfile contain? Should be >> >> >>> import logging >> >>> logging._srcfile >> '/usr/lib/python2.4/logging/__init__.py' >> >> on your machine, but probably isn't.

Re: Logging module: problem with some mapping keys

2006-12-14 Thread Tekkaman
'/usr/lib64/python2.4/logging/__init__.py' Peter Otten wrote: > Tekkaman wrote: > > > Thanks for the hint, but it's not a symlink > > What does logging._srcfile contain? Should be > > >>> import logging > >>> logging._srcfile > '/usr/lib/python2.4/logging/__init__.py' > > on your machine, but pro

Re: Logging module: problem with some mapping keys

2006-12-14 Thread Peter Otten
Tekkaman wrote: > Thanks for the hint, but it's not a symlink What does logging._srcfile contain? Should be >>> import logging >>> logging._srcfile '/usr/lib/python2.4/logging/__init__.py' on your machine, but probably isn't. Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Logging module: problem with some mapping keys

2006-12-14 Thread Tekkaman
Peter Otten wrote: > > An evil symlink, maybe? Thanks for the hint, but it's not a symlink > > $ ln -s /usr/local/lib/python2.4/logging > $ python > [snip] > >>> import logging > >>> logging.basicConfig(format="%(pathname)s") > >>> logging.getLogger().critical("yadda") > /usr/local/lib/python2.4/l

Re: Logging module: problem with some mapping keys

2006-12-14 Thread Tekkaman
sim.sim wrote: > Hi, i've check documentation, and found that logging.basicConfig takes > no arguments (probably we have different versions of logging package), Your Python version is < 2.4. Now basicConfig takes optional keyword args: basicConfig([**kwargs]) Does basic configuration for the log

Re: Logging module: problem with some mapping keys

2006-12-13 Thread Peter Otten
Tekkaman wrote: > I'm getting a strange behaviour from the "pathname" and "lineno" > formatter mapping keys. Instead of my file and my line number I get: > > /usr/lib/python2.4/logging/__init__.py > > as the file, and 1072 as the line number. I set up my config as > follows: > > logBaseConf = {

Re: Logging module: problem with some mapping keys

2006-12-13 Thread sim.sim
Hi, i've check documentation, and found that logging.basicConfig takes no arguments (probably we have different versions of logging package), and i've never used it. just try this: fileName = 'testlog.log' logName = 'LOG' iHandler = logging.FileHandler(fileName) iHandler.setFormatter( logging.F

Logging module: problem with some mapping keys

2006-12-13 Thread Tekkaman
I'm getting a strange behaviour from the "pathname" and "lineno" formatter mapping keys. Instead of my file and my line number I get: /usr/lib/python2.4/logging/__init__.py as the file, and 1072 as the line number. I set up my config as follows: logBaseConf = { 'level' : logging.DEBUG,

Re: Python's email module - problem with umlauts in some email clients

2006-12-08 Thread Fredrik Lundh
Nico Grubert wrote: > + On a solaris machine running thunderbird 1.5.0.8 and on a macintosh > machine running eudora umlauts are *not* displayed properly. > The email header does not contain any "Content-type". If I manually > switch the email client's character encoding to "Unicode (UTF-8)"

Python's email module - problem with umlauts in some email clients

2006-12-08 Thread Nico Grubert
Hi there, I wrote a short python script that sends an email using python's email module and I am using Python 2.3.5. The problem is, that umlauts are not displayed properly in some email clients: + On a windows machine running thunderbird 1.0.2 umlauts are displayed properly. The email he

Re: python logging module problem

2006-07-14 Thread Ritesh Raj Sarraf
Peter Otten wrote: > You can achieve the desired behaviour by adding a custom Filter: > > import sys > import logging > > logger = logging.getLogger("my_app") > logger.setLevel(logging.DEBUG) > > class LevelFilter(logging.Filter): > def __init__(self, level): > self.level = level >

Re: python logging module problem

2006-07-14 Thread Peter Otten
Ritesh Raj Sarraf wrote: > Vinay Sajip wrote: >> It's usual to rely on logger levels and to set handler levels for >> additional refinement of what goes to a particular handler's >> destination. > The problem is that for StreamHandler, logging module logs to > sys.stderr. > I want to use the lo

Re: python logging module problem

2006-07-14 Thread Ritesh Raj Sarraf
Vinay Sajip wrote: > > It's usual to rely on logger levels and to set handler levels for > additional refinement of what goes to a particular handler's > destination. > The problem is that for StreamHandler, logging module logs to sys.stderr. I want to use the logging feature for most of the mess

Re: python logging module problem

2006-07-14 Thread Vinay Sajip
Ritesh Raj Sarraf wrote: > When I execute the above code, logger.info()'s messages don't get > displayed. And logger.warning()'s messages get displayed twice. > The warning messages are displayed twice because you have two handlers which both output to the console. The reason you don't get the i

Re: python logging module problem

2006-07-13 Thread Ritesh Raj Sarraf
Ritesh Raj Sarraf wrote: > import os, sys, logging > > logger = logging.getLogger("my_app") > I tried this code: import logging, sys # set up logging to file - see previous section for more details logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(le

python logging module problem

2006-07-13 Thread Ritesh Raj Sarraf
import os, sys, logging logger = logging.getLogger("my_app") conerr = logging.StreamHandler(sys.stderr) conerr.setLevel(logging.DEBUG) conerr_formatter = logging.Formatter('%(levelname)s %(message)s') conerr.setFormatter(conerr_formatter) console = logging.StreamHandler(sys.stdout) console.setLe

Re: Mod_python psp import module problem

2005-06-10 Thread grahamd
May be related to this bug: http://issues.apache.org/jira/browse/MODPYTHON-12 Where you have: import mod_python.psp change it to: psp = apache.import_module("mod_python.psp") Access the PSP object then as: psp.PSP and not: mod_python.psp.PSP It will happen where somewhere else w

Mod_python psp import module problem

2005-06-10 Thread [EMAIL PROTECTED]
Hi folks... I'm getting a weird problem while loading psp module from mod_python. It only happen somethimes, and I just can't figure out why. I saw other threads in other lists over the net, but none of them solved the problem. My last hope is this last thread before been forced to change my proje

Re: EasyDialogs module problem with python 2.4.1

2005-04-18 Thread "Martin v. Löwis"
scott wrote: > Can I get this Pyshell behavior using python from the terminal? One application is "active" at any point in time, and this application controls the menu, has its windows displayed, and so on. So when the Terminal.app is active, Python cannot be. Now, it may be possible to programma

Re: EasyDialogs module problem with python 2.4.1

2005-04-18 Thread scott
Martin v. Löwis wrote: Try pythonw. Thanks, that was it. One more question, when I use the EasyDialogs module to, for example, display a message in a dialog box, the dialog box doesn't appear directly. I need to switch to 'python' by clicking on it on the dock or alt-tabbing to 'python' in order

Re: EasyDialogs module problem with python 2.4.1

2005-04-18 Thread "Martin v. Löwis"
scott wrote: > MacOS.Error: (-1713, 'no user interaction is allowed') Try pythonw. Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: EasyDialogs module problem with python 2.4.1

2005-04-18 Thread scott
scott wrote: First my setup: I'm using the framework build of Python 2.4.1 ( http://bob.pythonmac.org/archives/2005/03/31/macpython-241-installer/ ) on an ibook G4 running Mac OS 10.3.8. I installed wxPython 2.5.5.1 ( Unicode runtime 2.5.5.1 for the Panther version of Macpython-OSX 2.4 ) ( http:/

Re: EasyDialogs module problem with python 2.4.1

2005-04-18 Thread "Martin v. Löwis"
scott wrote: > EasyDialogs module > > ( http://www.python.org/doc/2.4.1/mac/module-EasyDialogs.html ) > > works with pyshell (interactive python program included with wxPython) > but not with python launched at the terminal: Could you be more precise what "works not" means? What do you expect t

EasyDialogs module problem with python 2.4.1

2005-04-18 Thread scott
First my setup: I'm using the framework build of Python 2.4.1 ( http://bob.pythonmac.org/archives/2005/03/31/macpython-241-installer/ ) on an ibook G4 running Mac OS 10.3.8. I installed wxPython 2.5.5.1 ( Unicode runtime 2.5.5.1 for the Panther version of Macpython-OSX 2.4 ) ( http://wxpython.org