GithubHelp home page GithubHelp logo

oasys1-srwlib's People

Contributors

lucarebuffi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

oasys1-srwlib's Issues

Linux library built against a too recent GLIBC version

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:

  1. Recompiling srwlpy.so on a sufficiently old system and making a new release
  2. Integrate compilation of srwlpy 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

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.