Tue 13 May 2014 06:30:32 AM UTC, comment #7:
This was fixed in later commits, not sure which one.
Now the problem is disappeared. Closing the bug.
|
Thu 27 Mar 2014 04:39:19 PM UTC, comment #6:
This is bizarre. Do you have any custom sys.path settings?
Any other people suffering from this bug?
I suggest you remove 'canvas' from the line 31 in prefMenu.py, and add a line
in the 'settings' function.
Also, add a 'print(canvas)' at the end of gui/__init__.py, to check that gui initialization indeed imports canvas.
|
Thu 27 Mar 2014 04:19:04 PM UTC, comment #5:
tried both, removed the files and run the default config
nothing helps
the version is the last one
wouter@ir15c007-U:~/pyformexlast/pyformex/pyformex$ ./pyformex --version
pyFormex 1.0.0~a1 (release-0.9.1-595-g982da9c)
I heve the same error
wouter@ir15c007-U:~/pyformexlast/pyformex/pyformex$ ./pyformex --nodefaultconfig --config=test.conf
Traceback (most recent call last):
File "./pyformex", line 67, in <module>
sys.exit(main.run(sys.argv[1:]))
File "/home/wouter/pyformexlast/pyformex/pyformex/main.py", line 665, in run
from pyformex.gui import guimain
File "/home/wouter/pyformexlast/pyformex/pyformex/gui/guimain.py", line 39, in <module>
from pyformex.gui import (
File "/home/wouter/pyformexlast/pyformex/pyformex/gui/menu.py", line 35, in <module>
from pyformex.gui import (
File "/home/wouter/pyformexlast/pyformex/pyformex/gui/fileMenu.py", line 35, in <module>
from pyformex.gui.prefMenu import updateSettings
File "/home/wouter/pyformexlast/pyformex/pyformex/gui/prefMenu.py", line 31, in <module>
from pyformex.gui import widgets, toolbar, draw, canvas
ImportError: cannot import name canvas
|
Thu 27 Mar 2014 02:27:21 PM UTC, comment #4:
Try to erase all *.pyc. In pyformex/pyformex do
Make sure have the last version.
If that does not help, try to use the default config:
|
Thu 27 Mar 2014 02:09:40 PM UTC, comment #3:
still get this error
wouter@ir15c007-U:~/pyformexlast/pyformex/pyformex$ ./pyformex --gl2
Traceback (most recent call last):
File "./pyformex", line 67, in <module>
sys.exit(main.run(sys.argv[1:]))
File "/home/wouter/pyformexlast/pyformex/pyformex/main.py", line 665, in run
from pyformex.gui import guimain
File "/home/wouter/pyformexlast/pyformex/pyformex/gui/guimain.py", line 39, in <module>
from pyformex.gui import (
File "/home/wouter/pyformexlast/pyformex/pyformex/gui/menu.py", line 35, in <module>
from pyformex.gui import (
File "/home/wouter/pyformexlast/pyformex/pyformex/gui/fileMenu.py", line 35, in <module>
from pyformex.gui.prefMenu import updateSettings
File "/home/wouter/pyformexlast/pyformex/pyformex/gui/prefMenu.py", line 31, in <module>
from pyformex.gui import widgets, toolbar, draw, canvas
ImportError: cannot import name canvas
|
Thu 27 Mar 2014 11:29:15 AM UTC, comment #2:
I think this is fixed in 7c8ae97a8.
gui/__init__.py imports the proper canvas.py, gl1 modules are moved to legacy/ (in progress!) and import paths have been
adapted.
|
Wed 19 Mar 2014 11:30:41 AM UTC, comment #1:
Indeed it is a problem:
gui/canvas.py does not exist anymore.
But on my pyformex there is still a gui/canvas.pyc
pyFormex starts correctly but if I remove the gui/canvas.pyc it does not start!
|
Wed 19 Mar 2014 11:14:32 AM UTC, original submission:
teh following libraries appear to be missing
gui/canvas.py
gui/decors.py
gui/marks.py
Is anyone else experiencing this problem or did I mess up with something?
|