Closed BrieucD closed 3 years ago
Looks like a problem in the WhatsOpt client. Could you please provide your version number for wop ? (using pip list
).
If it is below 1.12, you should upgrade it... (and we will have to check our packaging process, because the installation of FAST-OAD should have triggered the update of wop)
Current version for wop is 1.12.1 Connecting Onera external server Ether is ok.
Hmmm... I would also check the OpenMDAO version because the error is thrown in openmdao\devtools\problem_viewer\problem_viewer.py
.
And I've just checked, it seems you are using an old version because this file does not exist any more in current master. You should update your OpenMDAO version.
Indeed, I had to update openmdao from 3.4 to 3.8, But the problem remains. (I've also updated jupyter-client, jupyter-core and setuptools)
Actually, relf is right: openmdao\devtools\problem_viewer
only exists in OpenMDAO<=2.8, so you should not get such error with a recent OpenMDAO
Having OpenMDAO 3.4 is fine (and I checked on my side that FAST-OAD clearly state this requirement to pip, and wop does the same anyway), but my guess is that the environment you installed FAST-OAD 0.6a and the environment where you run the notebook are not the same.
To check that, in the notebook where you get the error, I suggest you do:
import sys, openmdao, fastoad
print("Python ", sys.version)
print("OpenMDAO", openmdao.__version__)
print("FAST-OAD", fastoad.__version__)
I'm not sure my setup is right, but in the notebook everything seems "ok".
If you're still having problem_viewer
in the error messages, it means your Python environment is broken, you still have an OpenMDAO 2.x installation somewhere. Maybe you have to check your PATH or PYTHONPATH env variables to ensure you reference one and only one Anaconda3 installation.
I had to completely uninstall openmdao and manually remove all files remaining from anterior releases 2.6 and 2.9. in Anaconda3\Lib\site-packages. Then I reinstalled openmdao and now it works. I think that the recent upgrade of openmdao 3.8 didn't manage to correctly remove these parasite files! Thank you for your help!
Well, that was a weird problem then, but thank you for the feedback, and thanks @relf for helping !
In "01_tutorial" notebook with fast-oad0.6.0a, at the end of 1. Setting up and analyzing the initial problem, while creating the xdsm file for WhatsOpt, the following error occurs :
AttributeError Traceback (most recent call last)