fccoelho / fccoelho/bayesian-inference

Error importing BIP.Bayes under Windows - trying to open log file in a non existent directory

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
HTML
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

```
Just downloaded and installed version 0.5.7 on Windows 7 Pro 32-bit with Python
2.6.5 installed (from the Enthought EPD 6.2-2).
I am aiming to test the lhs capability so in a Python session I tried...

import BIP.Bayes

resulting in...

Traceback (most recent call last):
File "", line 1, in
File "C:\Python26\lib\site-packages\bip-0.5.7-py2.6.egg\BIP\__init__.py", line 28, in
fh = RotatingFileHandler("/tmp/BIP.log", maxBytes=500000, backupCount=2)
File "C:\Python26\lib\logging\handlers.py", line 107, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "C:\Python26\lib\logging\handlers.py", line 59, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "C:\Python26\lib\logging\__init__.py", line 819, in __init__
StreamHandler.__init__(self, self._open())
File "C:\Python26\lib\logging\__init__.py", line 838, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: 'H:\\tmp\\BIP.log'

I did this in a cmd window in directory h:\
If I create a tmp directory on h: then the problem goes away but that really
isn't a solution.

```

Original issue reported on code.google.com by `geovis...@gmail.com` on 8 Nov 2011 at 10:23

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.