ratt-ru / pyxis

Python Extensions for Interferometry Scripting
3 stars 5 forks source link

'Pyxis.Commands' has no attribute 'loadconf' #98

Closed matthieutrs closed 4 years ago

matthieutrs commented 4 years ago

Hello,

We managed to build Pyxis from source just fine. Yet, when launching some pyxis command, we keep getting this error message:

Traceback (most recent call last):
  File ".../pyxis/1.7.0/bin/pyxis", line 45, in <module>
    from Pyxis.Commands import _info as info
  File ".../pyxis/1.7.0/lib/python3.6/site-packages/Pyxis/__init__.py", line 68, in <module>
    Pyxis.Internals.initconf();
  File ".../pyxis/1.7.0/lib/python3.6/site-packages/Pyxis/Internals.py", line 776, in initconf
    Pyxis.Commands.loadconf(filename,inspect.currentframe().f_back,chdir=True);
AttributeError: module 'Pyxis.Commands' has no attribute 'loadconf'

Would have any clue on how to solve this?

o-smirnov commented 4 years ago

Strange how this bug slipped through all this time! Could you try changing the offending line to plain:

loadconf(filename,inspect.currentframe().f_back,chdir=True)

and see if that solves the problem?

matthieutrs commented 4 years ago

That solved the issue, thanks a lot!!