uniwix / casioplot

Python module that allows to use the casioplot module in your computer.
MIT License
9 stars 2 forks source link

Error when importing `configs.py` and `caracters.py` #5

Closed uniwix closed 6 months ago

uniwix commented 6 months ago

While testing the module I got this error:

Traceback (most recent call last):
  File "example.py", line 4, in <module>
    from drawing_functions import *
  File "drawing_functions.py", line 2, in <module>
    from casioplot import *
  File "venv/lib/python3.11/site-packages/casioplot/__init__.py", line 6, in <module>
    from casioplot.casioplot import show_screen, set_pixel, draw_string, get_pixel, clear_screen, casioplot_settings
  File "venv/lib/python3.11/site-packages/casioplot/casioplot.py", line 16, in <module>
    from configs import _get_config
ModuleNotFoundError: No module named 'configs'

Replacing

from configs import _get_config

by

from casioplot.configs import _get_config

seems to work. However, it breaks code testing in the example folder.