entity-neural-network / incubator

Collection of in-progress libraries for entity neural networks.
Apache License 2.0
29 stars 10 forks source link

Rename griddly module to griddly_env #202

Closed cswinter closed 2 years ago

cswinter commented 2 years ago

This prevents the following circular import error which appears to be cause by enn_zoo/griddly/__init__.py importing itself rather than the griddly package:

Traceback (most recent call last):
  File "enn_zoo/enn_zoo/train.py", line 8, in <module>
    from enn_zoo import griddly
  File "/root/enn-incubator/enn_zoo/enn_zoo/griddly/__init__.py", line 17, in <module>
    from griddly import GymWrapper, gd
  File "/root/enn-incubator/enn_zoo/enn_zoo/griddly/__init__.py", line 17, in <module>
    from griddly import GymWrapper, gd
ImportError: cannot import name 'GymWrapper' from partially initialized module 'griddly' (most likely due to a circular import) (/root/enn-incubator/enn_zoo/enn_zoo/griddly/__init__.py)