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

pip install -e . not working #7

Closed
aloejhb opened this issue Apr 29, 2022 · 2 comments
Closed

pip install -e . not working #7

aloejhb opened this issue Apr 29, 2022 · 2 comments
Assignees

Comments

@aloejhb
Copy link
Contributor

aloejhb commented Apr 29, 2022

It seems I cannot install the package with pip in an editable mode.
pip install -e . results in successful installation of the package. pip install -e . output:

Details
Obtaining file:///home/hubo/Projects/em_alignment/packages/gfriedri-em-alignment
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from em-alignment==0.1.dev18+ga8d7480) (1.22.3)
Requirement already satisfied: scikit-image in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from em-alignment==0.1.dev18+ga8d7480) (0.19.2)
Requirement already satisfied: sofima in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from em-alignment==0.1.dev18+ga8d7480) (0.2.dev4+g2160f05)
Requirement already satisfied: tqdm in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from em-alignment==0.1.dev18+ga8d7480) (4.64.0)
Requirement already satisfied: pandas in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from em-alignment==0.1.dev18+ga8d7480) (1.4.2)
Requirement already satisfied: python-dateutil>=2.8.1 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from pandas->em-alignment==0.1.dev18+ga8d7480) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from pandas->em-alignment==0.1.dev18+ga8d7480) (2022.1)
Requirement already satisfied: imageio>=2.4.1 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from scikit-image->em-alignment==0.1.dev18+ga8d7480) (2.16.1)
Requirement already satisfied: pillow!=7.1.0,!=7.1.1,!=8.3.0,>=6.1.0 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from scikit-image->em-alignment==0.1.dev18+ga8d7480) (9.0.1)
Requirement already satisfied: packaging>=20.0 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from scikit-image->em-alignment==0.1.dev18+ga8d7480) (21.3)
Requirement already satisfied: PyWavelets>=1.1.1 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from scikit-image->em-alignment==0.1.dev18+ga8d7480) (1.3.0)
Requirement already satisfied: networkx>=2.2 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from scikit-image->em-alignment==0.1.dev18+ga8d7480) (2.7.1)
Requirement already satisfied: scipy>=1.4.1 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from scikit-image->em-alignment==0.1.dev18+ga8d7480) (1.8.0)
Requirement already satisfied: tifffile>=2019.7.26 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from scikit-image->em-alignment==0.1.dev18+ga8d7480) (2022.3.25)
Requirement already satisfied: opencv-python>=4.5.5.62 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from sofima->em-alignment==0.1.dev18+ga8d7480) (4.5.5.64)
Requirement already satisfied: connectomics in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from sofima->em-alignment==0.1.dev18+ga8d7480) (0.0.1.dev3)
Requirement already satisfied: absl-py>=0.9.0 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from sofima->em-alignment==0.1.dev18+ga8d7480) (1.0.0)
Requirement already satisfied: jax>=0.2.25 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from sofima->em-alignment==0.1.dev18+ga8d7480) (0.3.7)
Requirement already satisfied: dataclasses-json>=0.5.6 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from sofima->em-alignment==0.1.dev18+ga8d7480) (0.5.7)
Requirement already satisfied: six in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from absl-py>=0.9.0->sofima->em-alignment==0.1.dev18+ga8d7480) (1.16.0)
Requirement already satisfied: marshmallow-enum<2.0.0,>=1.5.1 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from dataclasses-json>=0.5.6->sofima->em-alignment==0.1.dev18+ga8d7480) (1.5.1)
Requirement already satisfied: typing-inspect>=0.4.0 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from dataclasses-json>=0.5.6->sofima->em-alignment==0.1.dev18+ga8d7480) (0.7.1)
Requirement already satisfied: marshmallow<4.0.0,>=3.3.0 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from dataclasses-json>=0.5.6->sofima->em-alignment==0.1.dev18+ga8d7480) (3.15.0)
Requirement already satisfied: typing-extensions in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from jax>=0.2.25->sofima->em-alignment==0.1.dev18+ga8d7480) (4.1.1)
Requirement already satisfied: opt-einsum in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from jax>=0.2.25->sofima->em-alignment==0.1.dev18+ga8d7480) (3.3.0)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from packaging>=20.0->scikit-image->em-alignment==0.1.dev18+ga8d7480) (3.0.7)
Requirement already satisfied: mypy-extensions>=0.3.0 in /home/hubo/Software/miniconda3/envs/sofima/lib/python3.9/site-packages (from typing-inspect>=0.4.0->dataclasses-json>=0.5.6->sofima->em-alignment==0.1.dev18+ga8d7480) (0.4.3)
Installing collected packages: em-alignment
  Running setup.py develop for em-alignment
Successfully installed em-alignment-0.1.dev18+ga8d7480

However, python could only find the sbem package but not the em_alignment package.

$ cd ..
$ python -c "import sbem"
$ python -c "import em_alignment"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'em_alignment'

Could this be related to this issue pypa/pip#7953 ?

@aloejhb aloejhb added the enhancement New feature or request label Apr 29, 2022
@aloejhb aloejhb self-assigned this Apr 29, 2022
@aloejhb aloejhb removed the enhancement New feature or request label Apr 29, 2022
@tibuch
Copy link
Collaborator

tibuch commented Jun 16, 2022

Is this still relevant?

@aloejhb
Copy link
Contributor Author

aloejhb commented Jun 16, 2022

I don't think so. Now I can use pip install -e . and the package was running correctly.

@tibuch tibuch closed this as completed Jun 16, 2022
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