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

Robot example crash #11

Closed
svpcom opened this issue Oct 3, 2019 · 2 comments

Comments

@svpcom
Copy link

commented Oct 3, 2019

When loading robot example from "File->Examples->robot" zencad crash with the following stack trace:

GUI: open: file:/home/svpcom/work/zencad/lib/python3.6/site-packages/zencad/gui/../examples/helloworld.py
GUI: window bind success

GUI: open: file:/home/svpcom/work/zencad/lib/python3.6/site-packages/zencad/gui/../examples/robot.py
  File "/home/svpcom/work/zencad/lib/python3.6/site-packages/zencad/__main__.py", line 146, in main
    runpy.run_path(path, run_name="__main__")
  File "/usr/lib/python3.6/runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
  File "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/svpcom/work/zencad/lib/python3.6/site-packages/zencad/gui/../examples/robot.py", line 61, in <module>
    robot0 = Robot()
  File "/home/svpcom/work/zencad/lib/python3.6/site-packages/zencad/gui/../examples/robot.py", line 30, in __init__
    super().__init__()
  File "/home/svpcom/work/zencad/lib/python3.6/site-packages/zencad/assemble.py", line 29, in __init__
    self.location = evalcache.unlazy_if_need(location)
Error: module 'evalcache' has no attribute 'unlazy_if_need'

Ubuntu 18.04 with pip packages in virtualenv:

evalcache==1.10.1
numpy==1.17.2
Pillow==6.2.0
pkg-resources==0.0.0
PyQt5==5.13.1
PyQt5-sip==4.19.19
pyservoce==1.10.1
setproctitle==1.1.10
zencad==0.17.6
@mirmik

This comment has been minimized.

Copy link
Owner

commented Oct 3, 2019

Please, update your evalcache library.
python -m pip install evalcache --upgrade

@svpcom

This comment has been minimized.

Copy link
Author

commented Oct 3, 2019

fixed. Thanks!

@mirmik mirmik closed this Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.