gem / oq-engine

OpenQuake Engine: a software for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
378 stars 273 forks source link

test failed due to permission error #4941

Closed dynaryu closed 5 years ago

dynaryu commented 5 years ago

python -m unittest openquake.calculators.tests.classical_damage_test.ClassicalDamageTestCase failed as below:

======================================================================
ERROR: test_case_1a (openquake.calculators.tests.classical_damage_test.ClassicalDamageTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/apps/openquake/3.6/src/oq-engine/openquake/calculators/tests/classical_damage_test.py", line 100, in test_case_1a
    self.check(case_1a)
  File "/apps/openquake/3.6/src/oq-engine/openquake/calculators/tests/classical_damage_test.py", line 88, in check
    self.run_calc(case.__file__, 'job_haz.ini')
  File "/apps/openquake/3.6/src/oq-engine/openquake/calculators/tests/__init__.py", line 113, in run_calc
    self.calc = self.get_calc(testfile, inis[0], **kw)
  File "/apps/openquake/3.6/src/oq-engine/openquake/calculators/tests/__init__.py", line 103, in get_calc
    oq.validate()
  File "/apps/openquake/3.6/src/oq-engine/openquake/hazardlib/valid.py", line 1237, in validate
    raise ValueError(doc)
ValueError:
export_dir=/apps/openquake/3.6/src/oq-engine/openquake/qa_tests_data/classical_damage/case_1a must refer to a directory,
and the user must have the permission to write on it.
micheles commented 5 years ago

It looks like you are not using a development installation with a virtualenv. Again, this is an installation problem. GitHub should be used for bugs.