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

 
 

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

Submitter:  francesco <francio>
Submitted:  Wed 19 Mar 2014 11:14:32 AM UTC
   
 
Category:  Core Severity:  5 - Blocker
Item Group:  Fatal Error Status:  Fixed
Privacy:  Public Assigned to:  bverheg
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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

    from pyformex.gui import canvas


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>
Group administrator
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>
Group Member
Thu 27 Mar 2014 02:27:21 PM UTC, comment #4: 

Try to erase all *.pyc. In pyformex/pyformex do

  find . -name '*.pyc' -delete


Make sure have the last version.

If that does not help, try to use the default config:

  pyformex --nodefaultconfig --config=test.conf



Benedict Verhegghe <bverheg>
Group administrator
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>
Group 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>
Group administrator
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>
Group 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>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-13 francio StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2014-03-27 bverheg StatusNone Ready For Test
        Assigned toNone bverheg
    2014-03-27 francio Dependencies- bugs #41884 is dependent
    2014-03-19 gianlucadesi Severity4 - Important 5 - Blocker

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code