-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install results in an import error when used #94
Comments
ok. Something is off, we build pySTARE built against the static library. Where does your libSTARE.a live? I build STARE e.g. with cd STARE
mkdir build
cd build/
cmake -DSTARE_INSTALL_LIBDIR=lib -DBUILD_SHARED_LIBS=NO -DCMAKE_INSTALL_PREFIX:PATH=~/stare ..
make -j4
make install Now I set the the environment vars: export STARE_INCLUDE_DIR="/home/griessbaum/stare/include/STARE/"
export STARE_LIB_DIR="/home/griessbaum/stare/lib/" (curious, that I cannot use the ~ shortcut. I should add an expanduser() to the setup.py to enable that) Those two env variables should get picked up by the setup.py I can then install pystare with mkvirtualenv stare
pip3 install numpy
cd pystare/
python setup.py build_ext --inplace
pip3 install -e . And import and use it etc. |
Thank you, I worked it out completely. I found a couple of probably out-of-date API examples/tests (search for ## NEEDS FIX?), but otherwise everything seems to work. OS : Ubuntu 22.04 LTS CPU : Intel i7-9700K @ 3.60GHz x 8 cores Step 1: Install STARE (https://github.com/SpatioTemporal/STARE)
Step 2: Install PySTARE (https://github.com/SpatioTemporal/pystare)
|
OS : Ubuntu 22.04 LTS
Codename: jammy
Kernel : 5.15.0-41-generic
Python : 3.10.5
Attempt to install manually. No obvious errors until I import pystare, at which point it can't find libSTARE
I needed to add a few things first to get here.
I installed STARE (also manually) into a local directory and it seems to have worked fine.
The install procedure seems to work fine.
However, the tests fail.
As does a simple import.
Mike
The text was updated successfully, but these errors were encountered: