darafferty / losito

LOFAR Simulation Tool
https://losito.readthedocs.io/en/latest/
GNU General Public License v3.0
8 stars 2 forks source link

importerror with RMextract #5

Closed Stefanie-B closed 3 years ago

Stefanie-B commented 3 years ago

Hi!

I have installed LoSiTo v1.1 and am trying to run it, but I get an error about importing RMextract:

Traceback (most recent call last):
  File "<envpath>/bin/losito", line 4, in <module>
    __import__('pkg_resources').run_script('LoSiTo==1.1', 'losito')
  File "<envpath>/lib/python3.7/site-packages/pkg_resources/__init__.py", line 651, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "<envpath>/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1448, in run_script
    exec(code, namespace, namespace)
  File "<envpath>/lib/python3.7/site-packages/LoSiTo-1.1-py3.7.egg/EGG-INFO/scripts/losito", line 70, in <module>
    import losito.operations as operations
  File "<envpath>/lib/python3.7/site-packages/LoSiTo-1.1-py3.7.egg/losito/operations/__init__.py", line 6, in <module>
    __import__(x, locals(), globals(), level=1)
  File "<envpath>/lib/python3.7/site-packages/LoSiTo-1.1-py3.7.egg/losito/operations/tec.py", line 9, in <module>
    import RMextract.RMextract.PosTools as post
ModuleNotFoundError: No module named 'RMextract.RMextract'

I have RMextract v0.4.4.

henedler commented 3 years ago

Hi Stefanie, thanks for your report!

Indeed, it looks like this import does not work with an up-to-date version of RMextract. It should be fixed now. Please let me know if you encounter any more problems.

Stefanie-B commented 3 years ago

Hi Henrik,

Thanks for your quick reply! The issue is resolved now.