Comments (2)
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.
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)
-
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)
-
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)
-
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)
- CI fails on jenkins HOT 2
- basic_mode modifies the user's data set
- Add hierarchical mode for functional data in pyMixtComp
- trigger github actions on path events
- Issue with new Eigen version HOT 1
- warning: use of bitwise with boolean operands
- boost version warning HOT 1
- Create docker image for universal usage
- Enforce minum python version and packages' versions
- clang16 warnings HOT 3
- Use c++17 as default instead of c++
- Use std distribution instead of boost ones HOT 1
- std::iterator is deprecated in c++17
- add a github action with clang17
- RMixtCompIO tests fail on windows with R < 4.3
- One test fails on 32-bit: Error: cannot allocate vector of size 381.5 Mb HOT 1
- c++ warnings ignoring return value
- RMixtComp does not work on windows 11
- RMixtCompIO does not compile on clang 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mixtcomp.