Comments (5)
Thank you for pointing out the issues. Looks like in Mac the issue was caused by the older boost library being confused between multiple compilers. I could solve the issue on my Mac by changing the version of the installed boost library. Please pull the latest repo update and check again.
If you get an error with not finding boost/python.hpp
you can try installing the boost-python
module globally. If you still have issues after those steps please let us know.
We will update the repo in 1-2 days with fixes to the other issues we found for alfa-python, including the issues in Windows and Ubuntu.
About the pip, we do have it in our to-do list, but I am not sure if that will happen soon.
from alfa-dataset-tools.
So, I pulled the newest code from the repository and it solved the error on MacOS, thank you for the update.
Now I have the same error on both operating systems:
Scanning dependencies of target alfa_python
[ 90%] Building CXX object CMakeFiles/alfa_python.dir/alfa_python.cpp.o
/Users/angi/Uni/alfa-dataset-tools/alfa-python/alfa_python.cpp:24:10: fatal error:
'boost/python.hpp' file not found
#include <boost/python.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/alfa_python.dir/alfa_python.cpp.o] Error 1
make[1]: *** [CMakeFiles/alfa_python.dir/all] Error 2
make: *** [all] Error 2
I already installed the boost-python
(for Python 2 and 3) package via brew and also installed if from source and added the paths, but no change. I also used Python 2 as well as Python 3.
from alfa-dataset-tools.
Any idea? :)
from alfa-dataset-tools.
I pushed a fix for the issue and was able to compile it on my Linux system without any issues. If you still experience issues on Mac and Windows after the new fixes, please let us know so we can help you with solving the new problems.
The current alfa-python version is basically a wrapper for the alfa-cpp module. We are most probably going to rewrite the whole module in a few weeks (the second half of October) directly in python to avoid the issues
from alfa-dataset-tools.
Thank you for the support. The last commit solved the problem with the boost/python.hpp
file.
But I had to edit two things in BuildBoost.cmake
to make it work:
I had to add "27" to both linked packages otherwise I got an error (ld: library not found for -lboost_python
) that these packages could not be found.
else()
message(STATUS "Using Python2")
set(Boost_LIBRARIES -lboost_python27 -lboost_numpy27)
endif()
Now after I got 100% progress from the make process, I have trouble importing the "alfa_python.so": It always says that there is no module name "alfa_python" even though it is in the same directory.
from alfa-dataset-tools.
Related Issues (4)
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 alfa-dataset-tools.