I need to use the hyperion package for python (http://docs.hyperion-rt.org/en/stable/index.html, the three-dimensional dust continuum Monte-Carlo radiative transfer code, not the hyperion by Oracle!).
I installed it and already solved the known error of the wrong import in some of the files (the import six
line).
I also created the dust file and have a script for the model.
So now it should be running successfully. Unfortunately, it does not run and gives me the following error:
/home/astro/anaconda3/bin/python3 /home/astro/
/yso_code_alpha.py
WARNING: Spectrum is being re-sorted in order of increasing frequency [hyperion.sources.source]
/home/astro/anaconda3/lib/python3.9/site-packages/hyperion/densities/ulrich_envelope.py:435: RuntimeWarning: invalid value encountered in log
* (np.log((np.sqrt(gamma_1) + 1) / (1. - np.sqrt(gamma_1)))
WARNING: Spacing of inner radial cells is too small, resetting to 1e-08 [hyperion.model.analytical_yso_model]
Traceback (most recent call last):
File "/home/astro/yso_code_alpha.py", line 95, in <module>
m.write('alpha_9.rtin') #mass star 8
File "/home/astro/anaconda3/lib/python3.9/site-packages/hyperion/model/analytical_yso_model.py", line 862, in write
m = self.to_model(merge_if_possible=merge_if_possible)
File "/home/astro/anaconda3/lib/python3.9/site-packages/hyperion/model/analytical_yso_model.py", line 729, in to_model
g = virtual_file()
File "/home/astro/anaconda3/lib/python3.9/site-packages/hyperion/util/functions.py", line 24, in virtual_file
return h5py.File(random_id(), driver='core', backing_store=False)
File "/home/astro/anaconda3/lib/python3.9/site-packages/h5py/_hl/files.py", line 444, in __init__
fid = make_fid(name, mode, userblock_size,
File "/home/astro/anaconda3/lib/python3.9/site-packages/h5py/_hl/files.py", line 199, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 100, in h5py.h5f.open
OSError: Unable to open file (unable to open file)
Process finished with exit code 1
I tried to search for solutions online and asked some coworkers, but unfortunately can not find any solution. I also can not even find the path in the last mentioned part (the .../_hl/... path) in my computer.
If that is important: I use Ubuntu.
Anyone any idea or hint on how I could solve it?
Thank you in advance!