GithubHelp home page GithubHelp logo

Comments (5)

albarji avatar albarji commented on July 17, 2024

Thanks for reporting this. I thought I had everything covered here... but actually I only tried this under Ubuntu, as this is the distro Travis supports.

I was aware of the auditwheel message complaining about "missing" shared library dependencies, but this works perfectly well anyhow, so I guess those "libblas-2d5b9174.so.3.0.3" are some renaming of library references made by cffi, which manages to resolve at running time to the actual bundled libblas.

However I'm a bit confused about the ELF address misalignment. Any ideas on this?

from proxtv.

anntzer avatar anntzer commented on July 17, 2024

Not sure what's exactly happening in this case (especially, I don't know how cffi does its thing), but for https://github.com/anntzer/mplcairo where I have an extension that needs to load symbols from libcairo, my solution is to explicitly not link the .so against libcairo, but rather globally load the symbols at runtime via pycairo vu doing ctypes.CDLL("/path/to/pycairo.so", ctypes.RTLD_GLOBAL). This ensures that all the symbols in libcairo.so are globally available to the process, and thus in particular to the extension module. Perhaps a similar strategy can work in your case?

In any case, it would also be nice if you could also publish sdists to PyPI, this was at least everyone can build their own packages locally.

from proxtv.

albarji avatar albarji commented on July 17, 2024

I have been running some tests on an ArchLinux container, and everything seems to work ok. In particular, you can run

docker run --rm -it base/archlinux bash -c "pacman -Sy --noconfirm python; pacman -Sy --noconfirm python-pip; pip install prox_tv; python -c 'import prox_tv; print(\"OK\")'"

and this works in my 64 bit laptop. Maybe you are having an issue because of different hardware architecture?

from proxtv.

albarji avatar albarji commented on July 17, 2024

Also, publishing also sdists might be a good idea. Will take a look at that.

from proxtv.

anntzer avatar anntzer commented on July 17, 2024

This is what uname -a gives me:

Linux antony1 4.18.16-1-ck-haswell #1 SMP PREEMPT Sat Oct 20 08:21:44 EDT 2018 x86_64 GNU/Linux

Admittedly the situation is a bit confusing...

from proxtv.

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.