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

Problem after installation #22

Closed
stichou opened this issue Oct 19, 2023 · 6 comments
Closed

Problem after installation #22

stichou opened this issue Oct 19, 2023 · 6 comments

Comments

@stichou
Copy link

stichou commented Oct 19, 2023

I installed disgrid thanks to the command:

pip3 install git+https://github.com/rometsch/disgrid --user

(I used --user because I have not sudo rights)

However it seems that something went wrong during the installation because python3 is not able to find the package:

ModuleNotFoundError: No module named 'disgrid'

Do you know how to solve this issue ?

Thanks in advance :)

@stichou
Copy link
Author

stichou commented Oct 19, 2023

Just figured out that disgrid is installed as UNKNOWN:

pip3 install git+https://github.com/rometsch/disgrid --user
Collecting git+https://github.com/rometsch/disgrid
  Cloning https://github.com/rometsch/disgrid to /tmp/pip-req-build-jnzquqbe
  Running command git clone --filter=blob:none -q https://github.com/rometsch/disgrid /tmp/pip-req-build-jnzquqbe
  Resolved https://github.com/rometsch/disgrid to commit 7c158c57e15058ba5ff11d58d4c01e6ac85a10f9
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: UNKNOWN
  Building wheel for UNKNOWN (pyproject.toml) ... done
  Created wheel for UNKNOWN: filename=UNKNOWN-0.0.0-py3-none-any.whl size=12923sha256=0c6cfdb08d5b1caef9ada399c234914665d8bf4eccb4fa887871bd22e1bbbef8
  Stored in directory: /tmp/pip-ephem-wheel-cache-gg35or24/wheels/87/d/fc/f1f82f54a74bf77d7c3029f9e18f7582a4f90a5e62e7fb82b1
Successfully built UNKNOWN
Installing collected packages: UNKNOWN
Successfully installed UNKNOWN-0.0.0

However it is not possible to load the module.

At the end of the day copy-paste of src/disgrid/* in /.local/lib/python3.6/site-packages solves the problem.

@stichou stichou closed this as completed Oct 19, 2023
@rometsch
Copy link
Owner

Which python distribution did you use?
I tested it for various system using pip.

@stichou
Copy link
Author

stichou commented Oct 20, 2023

I use Python 3.6.8

@rometsch
Copy link
Owner

This might cause the issue.
I will look into how the new pyproject.toml file interacts with older version of python.

@rometsch
Copy link
Owner

Interestingly, the pyproject.toml file includes a requirement for python version >= 3.7

requires-python = ">=3.7"

@rometsch
Copy link
Owner

I just encountered the same same problem within a docker container running on top of the ubuntu:22.04 container with pip install via the apt package python3-pip.

Running
pip install --upgrade pip
solved the issue for me.

A comment in this thread of the setuptools repo issues refers to some patches done to python by debian interfering.
This might cause the issue.

However, since we have a solution, this should not matter anymore.

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