Giter Club home page Giter Club logo

Comments (2)

Quentin62 avatar Quentin62 commented on August 26, 2024

It's because, you have a mac. I have not tested the python version on a mac.

Have you try copying the .dylib file instead of the .so file in the build.sh script?
https://github.com/modal-inria/MixtComp/blob/staging/pyMixtComp/python/build.sh

If it's working, I will update the build.sh script

from mixtcomp.

MostafaAbdelrashied avatar MostafaAbdelrashied commented on August 26, 2024

copying the file didn't do anything. Reading a .dylib file in python is not possible in python.
https://stackoverflow.com/questions/2488016/how-to-make-python-load-dylib-on-osx

Here are my trials to solve the issue: (None has worked)

  1. I tried compiling on a Mac, copying the .dylib and running the script, but it didn't work.
    ImportError: cannot import name 'pyMixtCompBridge' from partially initialized module 'pyMixtComp' (most likely due to a circular import) (/Users/56946/workspace/MixtComp/pyMixtComp/python/pyMixtComp/__init__.py)

  2. I tried compiling on a Mac, copying the .dylib and renaming it to .so file. but it didn't work as well.
    ImportError: dlopen(/Users/56946/workspace/MixtComp/pyMixtComp/python/pyMixtComp/pyMixtCompBridge.so, 0x0002): symbol not found in flat namespace (_PyCMethod_New)

  3. I tried compiling on Ubuntu to get a .so file directly as you described In the documentation. Then I tried to use the .so file on my Mac, but it didn't work either.
    ImportError: dlopen(/Users/56946/workspace/MixtComp/pyMixtComp/python/pyMixtComp/pyMixtCompBridge.so, 0x0002): tried: '/Users/56946/workspace/MixtComp/pyMixtComp/python/pyMixtComp/pyMixtCompBridge.so' (not a mach-o file)

Do you know a way to compile the c++ cross-platform?

from mixtcomp.

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.