Skip to content
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

Installation in Git Bash #81

Open
ColinMoldenhauer opened this issue Feb 13, 2024 · 2 comments
Open

Installation in Git Bash #81

ColinMoldenhauer opened this issue Feb 13, 2024 · 2 comments

Comments

@ColinMoldenhauer
Copy link

ColinMoldenhauer commented Feb 13, 2024

After battling with the installation of the dependencies, I finally managed to build everything without errors. However, when trying to use the python bindings, I receive the following error in exactextract/__init__.py in the this line: from ._exactextract import __version__

ImportError: DLL load failed while importing _exactextract: The specified module could not be found.

Any idea what could have gone wrong? I also can't call exactextract from the command line.


For installation, I used the following command, switching the make command to cmake --build . as the make command failed for me (if anyone has an idea why no makefile is present, let me know). I also had to add the flag -DCMAKE_INSTALL_PREFIX:PATH=$HOME in order to avoid permission issues while installing. Could any of these changes be the culprit?

git clone git@github.com:isciences/exactextract.git dependencies/exactextract
cd dependencies/exactextract
mkdir cmake-build-release
cd cmake-build-release
cmake -DBUILD_CLI:=OFF -DBUILD_DOC:=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$HOME ..
# make    # gives error   'make: *** No targets specified and no makefile found.  Stop.'
cmake --build .

cd project_root/dependencies/exactextract
pip install .
@dbaston
Copy link
Member

dbaston commented Feb 13, 2024

Are you installing the package? It should work to run pip install . from the root of the repository.

@ColinMoldenhauer
Copy link
Author

Sorry, forgot to mention it, I am installing it. It also appears in my environment, but all imports from _exactextract are failing due to above error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants