Macport safety run_tests.py bug
Using sfepy with python 2.7, MacPorts installation on Yosemite.
Tried to run python run_tests.py but most tests failed.
ran in debug mode and found that there was a problem finding certain dependent files:
IOError: [Errno 2] No such file or directory: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/meshes/elements/2_3_2.mesh'
Had a look at the directory structure and I think the correct directory it should have is:
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ sfepy/meshes/elements/2_3_2.mesh'
When I modified one test case (test_cmesh.py) accordingly this seemed to solve the issue. Hope this is helpful.
Dave
Hi Dave,
thanks for the report. What is the output of the following?
import sfepy
print sfepy.top_dir print sfepy.data_dir print sfepy.in_source_tree print sfepy.base_dir
It looks like sfepy.data_dir points to a wrong location.
r.
On 02/01/2015 02:40 PM, davidamb...@gmail.com wrote:
Using sfepy with python 2.7, MacPorts installation on Yosemite.
Tried to run python run_tests.py but most tests failed.
ran in debug mode and found that there was a problem finding certain dependent files:
IOError: [Errno 2] No such file or directory: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/meshes/elements/2_3_2.mesh'
Had a look at the directory structure and I think the correct directory it should have is:
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ sfepy/meshes/elements/2_3_2.mesh'
When I modified one test case (test_cmesh.py) accordingly this seemed to solve the issue. Hope this is helpful.
Dave
participants (2)
-
davidamb...@gmail.com
-
Robert Cimrman