Giter Club home page Giter Club logo

Comments (4)

srio avatar srio commented on July 28, 2024

Hello,

We do not use yet xraylib4. You can try this:
install xraylib: conda install -c conda-forge xraylib=3.3.0
install shadow3: pip install shadow3

I remember there are interferences when installing xraylib before compiling shadow3. I think they are related to the gfortran libraries. I never understood well that.

The safest solution is to install oasys following:
https://github.com/oasys-kit/oasys-installation-scripts/wiki

After that you can use the python of the miniconda that oasys installed, and you have shadow3 and xraylib working (hopefully).

We always recommend to use shadow under the Oasys environment: it is complicated to use it without user-interface.

from shadow3.

hk80s avatar hk80s commented on July 28, 2024

Hello,

I can not install shadow3 using internet as my server admin do not allow internet access on the server
I am installing everything as user.
I have installed shadow3 using pip wheel shadow3-18.5.30-cp36-cp36m-linux_x86_64.whl
It was not working and showing missing modules then I installed xraylib 4.0 via conda install xraylib-4.0.0-py37h539c4ae_1.tar.bz2
Then xraylib ask another package and i install pyhamcrest using pip install PyHamcrest-2.0.2.tar.gz
Later all the modules got imported correctly but i got above error
Now i have uninstalled xraylib 4.0 and installed 3.3
conda install xraylib-3.3.0-py37hf476568_1004_1.tar.bz2
version of xraylib is showing 3.3.0 in python console but still same problem

At line 416 of file src/fortran/stringio.f90
Internal Error: get_unit(): Bad internal unit KIND

from shadow3.

srio avatar srio commented on July 28, 2024

I am pretty sure that this is the result of xraylib interference. The effect of installing xraylib 4 does not disappear when uninstalling it.

Could you in a new miniconda installation install pip wheel shadow3-18.5.30-cp36-cp36m-linux_x86_64.whl
then in the test example, edit test_lens.py, and remove "import xraylib" (in fact it does not use it).
try now python test_lens.py
Does it work?

What happens if you install Oasys (in a fresh conda) and use the oasys python to do "python test_lens.py". For us it works in all platforms.

Cheers, M

from shadow3.

lucarebuffi avatar lucarebuffi commented on July 28, 2024

The version of xraylib in use of OASYS is 3.3.0, please do not install a more recent one.

from shadow3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.