Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name Ensure_dir when trying to run the code in lpy #10

Open
werner291 opened this issue Aug 5, 2021 · 3 comments

Comments

@werner291
Copy link

Hello,

so as a follow-up from #9, I've now got LPy and MappleT installed, but I get the following error when I click "Run" or "Animate":

Traceback (most recent call last):
  File "/home/werner/miniconda3/envs/MappleT/lib/python2.7/site-packages/OpenAlea.Lpy-2.7.1-py2.7-linux-x86_64.egg/openalea/lpy/gui/lpystudio.py", line 684, in run
    simu.updateLsystemCode()
  File "/home/werner/miniconda3/envs/MappleT/lib/python2.7/site-packages/OpenAlea.Lpy-2.7.1-py2.7-linux-x86_64.egg/openalea/lpy/gui/simulation.py", line 538, in updateLsystemCode
    res = self.lsystem.set(lpycode,{},self.lpywidget.showPyCode)
  File "/home/werner/miniconda3/envs/MappleT/lib/python2.7/site-packages/OpenAlea.PlantGL-2.23.2-py2.7-linux-x86_64.egg/openalea/plantgl/scenegraph/__init__.py", line 20, in newFunc
    return func(*args, **kwargs)
  File "/home/werner/miniconda3/envs/MappleT/lib/python2.7/site-packages/OpenAlea.Lpy-2.7.1-py2.7-linux-x86_64.egg/openalea/lpy/__init__.py", line 140, in lsystem_set
    return self.setCode(code,parameters,debug)
  File "<string>", line 37, in <module>
ImportError: cannot import name Ensure_dir
@werner291
Copy link
Author

werner291 commented Aug 5, 2021

Oh hold on, I'm getting a new PlantGL window... But nothing seems to be happening in it.

@werner291
Copy link
Author

@werner291
Copy link
Author

Indeed, I don't see the function being referred to in here: https://github.com/openalea-incubator/MAppleT/blob/master/src/stocatree/rw_tools.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant