oslocyclotronlab / ompy_Archive_Sept2019

Archived version om ompy as of 27. Sept 2019 -- Please use this instead:
https://github.com/oslocyclotronlab/ompy/
GNU General Public License v3.0
0 stars 1 forks source link

"Build" broken in current rhosig branch #31

Open fzeiser opened 5 years ago

fzeiser commented 5 years ago

Issue by fzeiser Thursday Aug 29, 2019 at 17:41 GMT Originally opened as https://github.com/oslocyclotronlab/ompy/issues/31


In the current rhosig branch I'm able to build ompy and install it, but when importing I get following error:

>>> import ompy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/fabiobz/Desktop/Masterthesis/misc/ompy_pub/ompy/__init__.py", line 6, in <module>
    from .fit_rho_T import *
  File "/home/fabiobz/Desktop/Masterthesis/misc/ompy_pub/ompy/fit_rho_T.py", line 37, in <module>
    from .matrix import Matrix
  File "/home/fabiobz/Desktop/Masterthesis/misc/ompy_pub/ompy/matrix.py", line 47, in <module>
    from .decomposition import index
ModuleNotFoundError: No module named 'ompy.decomposition'

@Caronthir Could you check whether you forgot to upload some files?

fzeiser commented 5 years ago

Comment by fzeiser Thursday Aug 29, 2019 at 17:53 GMT


So it was again the directory of the files that are build from cython. I can fix it manually by mv *.so ompy/

It can be solved by: https://stackoverflow.com/questions/31043774/customize-location-of-so-file-generated-by-cython

fzeiser commented 5 years ago

Comment by Caronthir Friday Aug 30, 2019 at 13:54 GMT


This highlights an issue not earlier considered, namely that the build process has not been tested on different platforms. This should be fixed before the code is released.