bugpyFormex - Bugs: bug #41905, pyformex does not start after...

 
 

bug #41905: pyformex does not start after commit 982da9c

Submitted by:  francesco <francio>
Submitted on:  Wed 19 Mar 2014 11:14:32 AM UTC  
 
Category: CoreSeverity: 5 - Blocker
Item Group: Fatal ErrorStatus: Fixed
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

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.

francesco <francio>
Project Member
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.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
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

francesco <francio>
Project Member
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:

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
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

francesco <francio>
Project Member
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.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
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!

gianluca de santis <gianlucadesi>
Project Member
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?

francesco <francio>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by gianlucadesi (Posted a comment)
  • -unavailable- added by francio (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 13 May 2014 06:30:31 AM UTCfrancioStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Thu 27 Mar 2014 11:29:15 AM UTCbverhegStatusNone=>Ready For Test
      Assigned toNone=>bverheg
    Thu 27 Mar 2014 08:56:18 AM UTCfrancioDependencies-=>bugs #41884 is dependent
    Wed 19 Mar 2014 11:30:41 AM UTCgianlucadesiSeverity4 - Important=>5 - Blocker

    Back to the top


    Powered by Savane 3.1-cleanup1