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'

Do most Dabo users and developers use Python 2.6.x?  Is 2.7 supported?
-- Mark


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
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]

Reply via email to