lingpy / pybor

A Python library for borrowing detection based on lexical language models
Apache License 2.0
3 stars 1 forks source link

BUG due to logger #30

Closed LinguList closed 4 years ago

LinguList commented 4 years ago

The logger renders pybor useless when loading it from a folder other than pybor. This NEEDS to be fixed.

Just try:

$ cd ~/
$ python
>>> from pybor import util

and the error is:

/usr/lib/python3.6/logging/__init__.py in _open(self)
   1059         Return the resulting stream.
   1060         """
-> 1061         return open(self.baseFilename, self.mode, encoding=self.encoding)
   1062 
   1063     def emit(self, record):

FileNotFoundError: [Errno 2] No such file or directory: '/home/USER/output/pybor.log'

This is very problematic. It renders the library useless and makes the whole enterprise difficult to explain.