openalea / WALTer

WALTer is a 3D FSPM Wheat model
Other
4 stars 8 forks source link

WALTer and PyCharm #53

Closed bilalderouich closed 6 years ago

bilalderouich commented 6 years ago

From python or terminal, walter.lpy works but launched from pycharm, there are errors.

christian34 commented 6 years ago

Can you be a bit more specific (which commands do you try )?

bilalderouich commented 6 years ago

when we try to execute all the tests (together or in parts), we can see 2 error message : "Canestra was not found" and "global name error : exit". But only when we do that with Pycharm, when we execute that in terminal there is no problems

christian34 commented 6 years ago

I do not have this problem (done on master just now, with a fresh conda install). May be you can try:

image

christian34 commented 6 years ago

After a new run of python setup.py develop for walter, I loose my working configuration: I have now Pycharm in the same state as yours. The problem is that the path to envs\my_env\Scripts is not passed to the process launching the python console, wheareas for example the path to envs\my_env\Library\bin is passed. May be a regular conda install of walter will solve this ?

bilalderouich commented 6 years ago

Last time, to solve my problems, I had to restart the system, and the whole configuration was updated. So, I don't know but you can try and check if the openalea environnement is activate

christian34 commented 6 years ago

The problem for me was because I forget to pass CONDA_PREFIX while running setup.py. with: python setup.py develop --prefix=%CONDA_PREFIX% everything goes fine