oasys-kit / oasys1-srwlib Goto Github PK
View Code? Open in Web Editor NEWSRW compiled libraries for OASYS1
License: BSD 2-Clause "Simplified" License
SRW compiled libraries for OASYS1
License: BSD 2-Clause "Simplified" License
Ciao @lucarebuffi
I ran into trouble upgrading OASYS to version 1.1 with the OASYS1-SRW package. After installing the corresponding add-on, I get the following errors in the console:
Could not import 'orangecontrib.srw.widgets.tools.ow_srw_wavefront_file_reader'.
Traceback (most recent call last):
File "/dls_sw/apps/python/anaconda/1.7.0/64/envs/oasys1_1/lib/python3.6/site-packages/orangecanvas/registry/discovery.py", line 262, in iter_widget_descriptions
module = asmodule(name)
File "/dls_sw/apps/python/anaconda/1.7.0/64/envs/oasys1_1/lib/python3.6/site-packages/orangecanvas/registry/discovery.py", line 505, in asmodule
return __import__(module, fromlist=[""])
File "/dls_sw/apps/python/anaconda/1.7.0/64/envs/oasys1_1/lib/python3.6/site-packages/orangecontrib/srw/widgets/tools/ow_srw_wavefront_file_reader.py", line 17, in <module>
from orangecontrib.srw.util.srw_objects import SRWData
File "/dls_sw/apps/python/anaconda/1.7.0/64/envs/oasys1_1/lib/python3.6/site-packages/orangecontrib/srw/util/srw_objects.py", line 2, in <module>
from wofrysrw.beamline.srw_beamline import SRWBeamline
File "/dls_sw/apps/python/anaconda/1.7.0/64/envs/oasys1_1/lib/python3.6/site-packages/wofrysrw/beamline/srw_beamline.py", line 5, in <module>
from wofrysrw.storage_ring.srw_light_source import SRWLightSource
File "/dls_sw/apps/python/anaconda/1.7.0/64/envs/oasys1_1/lib/python3.6/site-packages/wofrysrw/storage_ring/srw_light_source.py", line 3, in <module>
from srwlib import srwl
File "/dls_sw/apps/python/anaconda/1.7.0/64/envs/oasys1_1/lib/python3.6/site-packages/srwlib.py", line 7, in <module>
import srwlpy as srwl
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /dls_sw/apps/python/anaconda/1.7.0/64/envs/oasys1_1/lib/python3.6/site-packages/srwlpy.so)
This is because at Diamond we are running RHEL 6, which is rather old, and therefore cannot run any compiled libraries that have been linked against a more modern version of GLIBC.
I am not sure what the best course of action is though:
srwlpy.so
on a sufficiently old system and making a new releasesrwlpy
from source into the setup.py file as an extension. This would also make shipping the platform dependent libraries redundant and remove the need for copying the correct binary module at compile-time. The sourcecode does not appear to be part of this repository though ๐ขBest regards,
Tom
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.