SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] Error with BioMesh3D


Chronological Thread 
  • From: Jess <jess@sci.utah.edu>
  • To: Trevor Aguirre <aguirretrevor@gmail.com>
  • Cc: scirun-users@sci.utah.edu
  • Subject: Re: [SCIRUN-USERS] Error with BioMesh3D
  • Date: Thu, 4 Jan 2018 12:55:51 -0700

Hi Trevor,

It looks like the problem is that you are trying to write the data in a place you do not have permissions to do so.  You should be able to fix this by changing the model_output_path in the model_config.py file to a location with the correct permissions.  Something like:
model_output_path="C:\Users\username\Desktop\tooth_example”
Also, the format for the input file might be incorrect too. It should probably be:
model_input_file="~/C:/ProgramFiles/SCIRun4.7/bin/FEMesher/Tooth/tooth-seg-unorient.nrrd"
Hope that helps

cheers,
Jess





On Dec 23, 2017, at 1:42 PM, Trevor Aguirre <aguirretrevor@gmail.com> wrote:

Hello,

I have a question about using BioMesh3D

I am trying to run through the tutorial for the tooth. I have modified the model_config.py file to reflect the correct directory for the tooth-seg-unorient.nrrd file as well as modified the model_config.py for the correct output directory. The tooth-seg-unorient.nrrd and the model_config.py are in the same folder on my desktop. When trying to run this from cmd.exe I encounter the errors below and in the attached image. 

The first steps are me changing my working directory to reflect the directory where the BuildMesh.py file is on my computer and then me entering the file path to where tooth-seg-unorient.nrrd and the model_config.py files are located on my PC. 

It says invalid syntax was encountered in the BuildMesh.py file at line 262. Do you have any insight on this issue? I am not sure what I have done incorrectly so any insight would be much appreciated. I have attached my model_config.py file if it is need. 

Begin error message

U:\>C:
C:\>cd Program Files\SCIRun 4.7\bin\FEMesher
C:\Program Files\SCIRun 4.7\bin\FEMesher>BuildMesh.py
default binary_dir = C:\Program Files\SCIRun 4.7\bin
Model configuration file is needed to run meshing pipeline.
Which model configuration file to use?  C:\Users\aguirret\Desktop\Tooth\model_config.py
Traceback (most recent call last):
  File "C:\Program Files\SCIRun 4.7\bin\FEMesher\BuildMesh.py", line 262, in <module>
    exec(open(model_config).read())
  File "<string>", line 77
    ags available in this option are the same as the previous variable. It
                ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\SCIRun 4.7\bin\FEMesher\BuildMesh.py", line 265, in <module>
    Utils.write_error(err_message)
  File "C:\Program Files\SCIRun 4.7\bin\FEMesher\Utils.py", line 87, in write_error
    txt_file = open(stage_path, 'w')
PermissionError: [Errno 13] Permission denied: '.\\mesh_state.txt'

End error message



Best regards and looking forward to your reply,


Trevor G. Aguirre
PhD Student, Mechanical Engineering, Colorado State University
Graduate Research Assistant, Orthopaedic Bioengineering Research Laboratory
National Graduate Representative, Society of Hispanic Professional Engineers

<model_config.py><BioMesh3d_cmddotexe_error.PNG>
________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.




Archive powered by MHonArc 2.6.18.

Top of page