oeg-upm / mapeathor

Translator of spreadsheet mappings into R2RML, RML or YARRRML
https://morph.oeg.fi.upm.es/tool/mapeathor
Apache License 2.0
30 stars 10 forks source link

Import error still exists #32

Closed RichDijk closed 2 years ago

RichDijk commented 2 years ago

The import error still exists. from .global_config import * might work but import * is no good practice and maybe not supported anymore.

Changing all local imports into the following seems to work better:

from . import global_config

anaigmo commented 2 years ago

Hi! yeah, I though I've solved that and then a bunch more complications came up with the whole package. I also tried what you propose, and still doesn't work. I have to fix the imports and the arrangement of the package, what will take me some time.

In the meantime, the docker version and the web demo (https://morph.oeg.fi.upm.es/demo/mapeathor) are still stable

RichDijk commented 2 years ago

When I change the relevant imports in several files my Mapeathor looks stable using Windows 10 and Python 3.9

anaigmo commented 2 years ago

I've change the import to the way you mention, plus a bunch of other things, and it should be working now without any changes, let me know if something else comes up. Thanks for the suggestion!