Closed RubelMozumder closed 7 months ago
Thanks for your report. I can not reproduce this since in the xrayutilities code there is no direct import of numpy.core.multiarray
which seems to cause your issue. Also Python 3.8 is covered by the CI tests on azure where it works just fine.
So it must be a problem in one of the dependencies or your installation. I think it could be the latter one.
Few questions: 1) What xrayutilities version do you use? It's not listed in the package list you sent. 2) How did you install xrayutilities?
My feeling is that it could be a problem of the binary blob in xrayutilities being linked to a different numpy version as compared to the one you are using. This could mean the binary blobs which are distributed via pypi do not work for you. Maybe installing xrayutilities from sources would fix the issue in this case.
Thank you for your response. Sorry, for missing xrayutilities version.
pyproject
later installed with pip package manager.
While creating dev-requirments.txt from pyproject I did not get any version conflict with numpy lib.One important note: The error ImportError: numpy.core.multiarray failed to import
can not be even reproduced in my local Python installation. The error I sheared in this issue comes from GitHub ci/cd workflow though the same workflow in passing without any issue in local installation.
As you describe it, this sounds to me is unlikely to be causes by a code problem inside xrayutilities. It could potentially be related to the binary package on PyPI. But since as you yourself write it's difficult to reproduce this problem, I am not sure how to tackle it.
I would certainly need you to debug this more to identify the problem. Also is the problem limited to Python 3.8?
One more hint: On PyPI I see that the numpy-1.21.6 version for python 3.8 is distributed only as manylinux 2010 version whereas xrayutilities-1.7.4 is distributed as manylinux 2014 variant. not sure if this can cause an issue. In your local pipeline do you use the very same package versions? I also do not fully get why the numpy version used by your pipeline is more than a year old.
Getting import error as follows,
The pyhton env has been given bellow: python 3.8 and python packages