Comments (4)
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.
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.
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.
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)
- Flat vs. uniform geometrical source HOT 2
- Unexpected behavior of CRL + crystal HOT 2
- compound lens problem for zero lenses
- fatal error LNK1136: invalid or corrupt file HOT 8
- Installation from source not working HOT 30
- License for this repo HOT 2
- SI100 produces unrealistic intensity HOT 1
- simulation of paraboloid mirror HOT 1
- BRAGG standalone use HOT 1
- Parabolic mirror with small distances HOT 2
- choosing the torus pole location HOT 3
- reflectivity with graphite 002 HOT 10
- improve plot range (get_good_range) HOT 1
- Storing the output data HOT 4
- Support NumPy 1.24+
- Syntax error in ShadowLibExtensions.py HOT 1
- How to change the propagation direction of source in shadow3 of OASYS Software ? HOT 2
- ellipsoid mirror setup HOT 3
- link to Shadow user guide is broken HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadow3.