bugpyFormex - Bugs: bug #40841, Cannot open pyformex due to...

 
 

bug #40841: Cannot open pyformex due to configuration issues

Submitted by:  francesco <francio>
Submitted on:  Sun 08 Dec 2013 09:15:59 PM UTC  
 
Category: CoreSeverity: 4 - Important
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.

 

Mon 09 Dec 2013 12:16:25 PM UTC, comment #2:

It worked by directly modifying the /.config/pyformex.conf file.
Before I was trying to change the local pyformex/pyformex.conf, that is why I could not get how to fix the problem. Closing the post

francesco <francio>
Project Member
Sun 08 Dec 2013 09:42:16 PM UTC, comment #1:

This is caused by a faulty user configuration file. There has been a bug in writing the user configuration lately, and while it is fixed now (as far as we know), you probably had a buggy version running as last before your update.

To solve the problem, you can do one of the following:

- edit and correct the user config file (~/.config/pyformex/pyformex.conf). The file is Python, and you can probably detect was is wrong. From the error message, it looks like the 'filters' item under the section [warnings]. Just remove that part from your configuration, if it is not clear how to fix it.

- (re)move you faulty configuration file. Moving is better than removing: after having created a new one, you may copy over important sections from the saved file.

- run pyFormex with another config file and afterwards copy the new config file to the default location:

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Sun 08 Dec 2013 09:15:59 PM UTC, original submission:

After updating to the latest pyformex version I get this error which prevent to run pyformex, I could identify the source

Traceback (most recent call last):
File "/home/francio/pyformex/pyformex/pyformex", line 102, in <module>
sys.exit(run(sys.argv[1:]))
File "/home/francio/pyformex/pyformex/main.py", line 602, in run
pf.prefcfg.read(pf.preffile)
File "/home/francio/pyformex/pyformex/config.py", line 247, in read
contents[key] = eval(s[i+1:].strip())
File "<string>", line 1
[('.return_index.', 'numpy'), ('print_function', '', 'U'), ('warn_mesh_reverse', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('depr_mesh_getlowerentities_unique', '', 'U'), ('BEWARE! Mesh.extrude has changed. The step parameter has been removed and there is now a (total) length parameter.', '', 'U'), ('BEWARE! Mesh.extrude has changed. The step parameter has been removed and there is now a (total) length parameter.', '', 'U'), ('BEWARE! Mesh.extrude has changed. The step parameter has been removed and there is now a (total) length parameter.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('BEWARE! Mesh.extrude has changed. The step parameter has been removed and there is now a (total) length parameter.', '', 'U'), ('BEWARE! Mesh.extrude has changed. The step parameter has been removed and there is now a (total) length parameter.', '', 'U'), ('BEWARE! Mesh.extrude has changed. The step parameter has been removed and there is now a (total) length parameter.', '', 'U'), ('BEWARE! Mesh.extrude has changed. The step parameter has been removed and there is now a (total) length parameter.', '', 'U'), ('mesh_removed_eltype', '', 'U'), ("The partitioning may be incorrect due to nonplanar 'quad4' elements", '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('readVTP is deprecated. Use readVTKObject instead.', '', 'U'), ('readVTP is deprecated. Use readVTKObject instead.', '', 'U'), ('readVTP is deprecated. Use readVTKObject instead.', '', 'U'), ('readVTP is deprecated. Use readVTKObject instead.', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('import * only allowed at module level', '', 'U'), ('warn_writevtp_notclean', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', '', 'U'), ('Mesh.withProp is deprecated. Use selectProp instead.', ^
SyntaxError: unexpected EOF while parsing

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

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 09 Dec 2013 12:16:25 PM UTCfrancioStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun 08 Dec 2013 09:42:16 PM UTCbverhegItem GroupNone=>Fatal Error
      StatusNone=>Ready For Test
      Assigned toNone=>bverheg

    Back to the top


    Powered by Savane 3.1-cleanup1