On 8/28/10 11:56 AM, Mark Rajcok wrote:
> Note, what I describe below does not occur with Python 2.6.6, and I've
> installed that as my default Python now, so there is no rush to fix this...
>
> I used SVN to download the dabo/framework (5964), ide, and demo today. My
> SVN directories are c:\dabo, c:\dabo_demo, c:\dabo_ide. I'm using Python
> 2.7 (well, I was).
>
> I created C:\Python27\Lib\site-packages\dabo.pth and put
> C:\
> into it. Is there anything else I need to do?
> I get this error whenever I try to run a program that imports dabo:
>
> C:\dabo_demo>DaboDemo.py
> main log file = nul<<-- this is a print I added to __init__.py
> Traceback (most recent call last):
> File "C:\dabo_demo\DaboDemo.py", line 6, in<module>
> import dabo
> File "C:\dabo\__init__.py", line 167, in<module>
> encoding=defaultEncoding)
> File "C:\Python27\lib\logging\handlers.py", line 113, in __init__
> BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
> File "C:\Python27\lib\logging\handlers.py", line 65, in __init__
> logging.FileHandler.__init__(self, filename, mode, encoding, delay)
> File "C:\Python27\lib\logging\__init__.py", line 889, in __init__
> StreamHandler.__init__(self, self._open())
> File "C:\Python27\lib\logging\__init__.py", line 910, in _open
> stream = codecs.open(self.baseFilename, self.mode, self.encoding)
> File "C:\Python27\lib\codecs.py", line 881, in open
> file = __builtin__.open(filename, mode, buffering)
> IOError: [Errno 22] invalid mode ('ab') or filename: '\\\\nul'
>
>
> I took a look at dabo\__init__.py and saw it was looking for a logging.conf
> file.
> I found a logging.conf.sample in the c:\dabo directory so I copied that to
> logging.conf
> Unfortunately, I'm getting another error:
>
> C:\dabo_demo>DaboDemo.py
> _logConfFile = C:\dabo\logging.conf<--- this is another print I added
> Traceback (most recent call last):
> File "C:\dabo_demo\DaboDemo.py", line 6, in<module>
> import dabo
> File "C:\dabo\__init__.py", line 143, in<module>
> logging.config.fileConfig(_logConfFile)
> File "C:\Python27\lib\logging\config.py", line 78, in fileConfig
> handlers = _install_handlers(cp, formatters)
> File "C:\Python27\lib\logging\config.py", line 156, in _install_handlers
> h = klass(*args)
> File "C:\Python27\lib\logging\handlers.py", line 113, in __init__
> BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
> File "C:\Python27\lib\logging\handlers.py", line 65, in __init__
> logging.FileHandler.__init__(self, filename, mode, encoding, delay)
> File "C:\Python27\lib\logging\__init__.py", line 889, in __init__
> StreamHandler.__init__(self, self._open())
> File "C:\Python27\lib\logging\__init__.py", line 910, in _open
> stream = codecs.open(self.baseFilename, self.mode, self.encoding)
> File "C:\Python27\lib\codecs.py", line 881, in open
> file = __builtin__.open(filename, mode, buffering)
> IOError: [Errno 22] invalid mode ('ab') or filename: '\\\\nul'
We are aware of and are working on this problem. Interesting to know that it
goes
away in 2.6.6 though.
> Do most Dabo users and developers use Python 2.6.x? Is 2.7 supported?
I've been on 2.5.x for years, and only recently switched to 2.6.5, which I'll
stick
to for a while (I need to support my application on Win, Mac, and Lin and it is
sometimes a balancing act getting the exact versions of Python and libs on
each, so
once I standardize on a version I'll stick with it for a while).
Does wxPython work on Python 2.7?
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]