LionelDarras / PySimpleBGC

PySimpleBGC is a python project which aims to allow communication with Basecam Simple-BGC coontroller board
GNU General Public License v3.0
7 stars 8 forks source link

Error while import module #1

Closed ejalaa12 closed 8 years ago

ejalaa12 commented 8 years ago

Hello, I just downloaded your module. But when I tried to import it, I have the following error:

>>> import pysimplebgc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pysimplebgc/__init__.py", line 13, in <module>
    from .logger import LOGGER, active_logger
  File "pysimplebgc/logger.py", line 14, in <module>
    from .compat import NullHandler
ImportError: cannot import name NullHandler

I'm using python 2.7.6.

Thank you for your help.

ejalaa12 commented 8 years ago

I was able to make it work by changing the compat.py module so that it also import NullHandler if we are using python 2.x