GithubHelp home page GithubHelp logo

Comments (6)

lucarebuffi avatar lucarebuffi commented on June 17, 2024

It is useful, indeed. Thanks for publishing this note.

The new version of SRW libraries has been compiled with Ubuntu 18.04 LTS, recently downloaded. I compiled them for both miniconda and python.org distributions. Probably something changed in the meantime, since the default python 3 installed does not show some compatibility issues we found in the past, asking us to use miniconda3.

I suggest to remove the folder miniconda3 and install from scratch Oasys by using the VirtualEnvironment scripts, that let you use the Python.org python.

from oasys-installation-scripts.

wcgrizolli avatar wcgrizolli commented on June 17, 2024

@SergioLordano said:

The solution was to uninstall all of them and install numpy by conda, only.

I noted something that may be related to the same problem. The line:

$HOME/miniconda3/bin/python3 -m pip install numpy

would better be

$HOME/miniconda3/bin/conda install numpy=XXX

where XXX is the desired version for numpy.

This may solve the conflicts of different versions of numpy.

from oasys-installation-scripts.

lucarebuffi avatar lucarebuffi commented on June 17, 2024

I will do it. Anyway, there is not a desired version of numpy. It should be the last. I repeat: use the virtual environment with standard python.org python!

from oasys-installation-scripts.

lucarebuffi avatar lucarebuffi commented on June 17, 2024

Fixed

from oasys-installation-scripts.

SergioLordano avatar SergioLordano commented on June 17, 2024

Hello Luca,
I am sorry to bother you again about this, but there is also a small problem with the Virtual Environment installation. It can be easily fixed, but beginners may spend a lot of time on it. When we call the script start_oasys_VE.sh, it starts OASYS but does not load ShadowOui widgets, because it fails to import xraylib. If you look the code:

#!/bin/bash
source ~/oasys1env/bin/activate
#source `find /home -name "start_oasys.sh" -printf "%h"`/oasys1env/bin/activate
export LD_LIBRARY_PATH=/home/oasys/oasys1env/lib/xraylib 
export DYLD_LIBRARY_PATH=/home/oasys1env/lib/xraylib
python -m oasys.canvas -l4 --force-discovery

it is easy to see why it does not find xraylib library: in many computers, the home path is not simply /home. So It could be fixed by using:

export LD_LIBRARY_PATH=~/oasys1env/lib/xraylib 
export DYLD_LIBRARY_PATH=~/oasys1env/lib/xraylib

from oasys-installation-scripts.

lucarebuffi avatar lucarebuffi commented on June 17, 2024

That was just a (outrageous) BUG. Thank you for your precious feedback!

from oasys-installation-scripts.

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.