psychoinformatics-de / datalad-debian

DataLad extension for working with Debian packages and package repositories
Other
2 stars 5 forks source link

Installation illusion in python environment #141

Closed Manukapp closed 1 year ago

Manukapp commented 2 years ago

While working in activated python virtual environment, i.e. python -m venv my_env, followed by: source ./my_env/bin/activate

Checking that no datalad debian extension has been installed pip show datalad-debian WARNING: Package(s) not found: datalad-debian

Installation python -m pip install datalad-debian

Alternative installation is to datalad clone https://github.com/psychoinformatics-de/datalad-debian.git & pip install -e .

These then do the downloading. However, once finished, when trying a command, e.g. datalad deb-bootstrap-builder , to see whether the datalad-debian extension is downloaded

Get the following error. [WARNING] Failed to load entrypoint datalad_debian from datalad.extensions: ModuleNotFoundError(No module named 'datalad_debian') datalad: Unknown command 'deb-bootstrap-builder'. See 'datalad --help'.

Importantly, it works once you deactivate (exiting the python environment) and reactivate it, i.e. source ./my_env/bin/activate

Manukapp commented 2 years ago

Just rehash

adswa commented 1 year ago

thanks for providing the solution to your issue :) closing