question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No file in mesh directory

See original GitHub issue

Hi Jean, I was able to get the singularity image working and I can properly import everything however I believe that there was some type of problem with how I have gmsh setup.

These are the files in the current directory:

ls
fenics-and-more.img  
Cylinder2DFlowControlDRL-master    gmsh-3.0.6-Linux64

And this is the command I ran to setup singularity and gmsh:

singularity shell fenics-and-more.img -c "export DISPLAY=:0.0 && export PATH="gmsh-3.0.6-Linux64/bin:$PATH" && /bin/bash"

Then I ran single_runner.py in the empty_simulation folder to get this error output.

IOError                                   Traceback (most recent call last)
<ipython-input-2-6dc4ee2a2e60> in <module>()
     20 printi("resume env")
     21 
---> 22 environment = resume_env(dump=10, single_run=True)
     23 deterministic=True
     24 

/home/vagrant/vboxshare/Cylinder2DFlowControlDRL-master/Cylinder2DFlowControlWithRL/empty_simulation/env.pyc in resume_env(plot, step, dump, remesh, random_start, single_run)
    179                                     reward_function=reward_function,
    180                                     number_steps_execution=number_steps_execution,
--> 181                                     simu_name = simu_name)
    182 
    183     return(env_2d_cylinder)

/home/vagrant/vboxshare/Cylinder2DFlowControlDRL-master/Cylinder2DFlowControlWithRL/empty_simulation/../Env2DCylinder.pyc in __init__(self, path_root, geometry_params, flow_params, solver_params, output_params, optimization_params, inspection_params, n_iter_make_ready, verbose, size_history, reward_function, size_time_state, number_steps_execution, simu_name)
    130         self.initialized_visualization = False
    131 
--> 132         self.start_class(complete_reset=True)
    133 
    134         printi("--- done init ---")

/home/vagrant/vboxshare/Cylinder2DFlowControlDRL-master/Cylinder2DFlowControlWithRL/empty_simulation/../Env2DCylinder.pyc in start_class(self, complete_reset)
    203                         printi("Load buffer history")
    204 
--> 205                     with open('mesh/dict_history_parameters.pkl', 'rb') as f:
    206                         self.history_parameters = pickle.load(f)
    207 

IOError: [Errno 2] No such file or directory: 'mesh/dict_history_parameters.pkl'

It can’t find some file that is supposed to be in the mesh folder, my best guess is that gmsh isn’t generating the file that it is looking for. But I don’t know what I could have done incorrectly with gmsh. Thanks for the help

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zbear0808commented, Oct 15, 2019

Thank you I did setup gmsh incorrectly and after adding to the path variable correctly I now can run the provided training sessions. The mistake I made was when I set my path variable it did not go from the root directory to the gmsh folder and instead went from the directory I started the singularity shell .

export PATH=$PATH:"path from root to gmsh bin folder"
Read more comments on GitHub >

github_iconTop Results From Across the Web

FCS says mesh file is not in right directory? :: Kenshi Modding
... that my mesh file is not in the mod directory or game directory which isnt true. fcs has never given me this...
Read more >
Help with mesh folder location : r/Taleoftwowastelands - Reddit
Problem is between in being installed in a non programs file and associating it with ttw and mo2 I cannot find where the...
Read more >
[blockMesh] Cannot open mesh description file - CFD Online
Hello javadrasooli, the problem is, that there is no blockMeshDict file in the polyMesh folder. Have you checked it? I am not sure,...
Read more >
Poisson reconstruction: working folder not writeable
Hello,. I've cloned Meshlab 2016 from GIT for my Ubtuntu 16.04. Then I followed the instructions from the readme file: installed qt5.7.0, ...
Read more >
Butterfly cfd outdoor 3d error: cannot find file poitns in directory ...
Cannot find file points in directory polymesh in times 0 down to constant. what does this mean? The model file is from sketch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found