-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
Cannot install using script on Debian 12 #8495
Comments
@matmair we have seen this "regex" error pop up a few times now. This post seems to be related - mrabarnett/mrab-regex#413 |
Not really sure why this is happening but it seems to happen across python projects; maybe we can try to remove regex? |
I would suggest: a) Don't run this as root I suspect that your python packages are getting some conflicts due to a) and b) above. Start a clean install with a non-root venv and report back |
Hi, I ran it under a non-root user and inside a Virtual Environment and had the same results. Mike |
Hmmm ok thanks for the information. Can you see what happens if you run python from the command line and try: import regex |
Here is the result from the 'import regex' (env) schaffner@invtest:~/inventree$ python
Python 3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import regex
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'regex'
>>> |
Can you please also run (in the same venv): which python and then python
>>> import sys
>>> print(sys.executable) |
Hi Sorry for the delay, here is the information
|
That all looks as expected. Deeper into the rabbit hole. Can you please run: which invoke And invoke version |
|
Sorry, invoke version Not invoke --version |
Sorry about that
|
@mschaffner9239 ok, that all looks in order. We need to find out why your python installation seems to think it has Can you please run the following commands in order and see what the output is: pip show regex
pip uninstall regex
pip install -U regex
pip show regex |
@SchrodingersGat , here are the results:
|
Thanks, and does the installer run now? |
The install had already run so it won't run again, here is what I get:
|
I just did an uninstall and then re-install and it appears to have removed the newer version of regex:
|
Does the server run now then? |
Nope the server is not running, I think because the database has not been initialized, which is where it is failing during the Install script when it is first run. |
@mschaffner9239 ok, then can you try running the following command? inventree run invoke update --skip-backup |
Here is the results:
|
Ok, that's super frustrating... To determine if the old version of regex is the issue, try: pip install -U regex
inventree run invoke migrate |
The Regex update was successful, but when trying to run the migrate, it failed:
|
@SchrodingersGat we are using regex only in InvenTree/helpers.py - maybe we can replace it? |
Potentially - although I do not think that gets us closer to understanding what is happening here. |
I also get the same import error on attempting to install (same issue as #8494 ) -
|
This install log may be helpful too - #8494 (comment) |
All, I have just release |
Just bringing over the attempted install on Debian 12 with version 0.16.9
|
Here are the results from the following commands: pip show pillow
|
@mschaffner9239 can you please try the following (from this link) Operating within your venv: pip install --force-reinstall pillow And then try to run the installer? |
Hi Oliver, I don't think it is possible to run the installer while in the venv, I updated pillow and then when running the installer script I get:
|
Hmmm.. @matmair any thoughts on how to test this? It appears to be a compatibility issues with pillow, maybe from debian 12 in particular? |
This looks like it could be a problem with uv as we are resolving for 3.9 but running on 3.11 when installing on debain 12. |
Just for context, I got the same error when setting up my dev env a few days ago and was able to resolve it by uninstalling and installing pillow. As 3.9 will be EOL next October, shouldn't we bump the min version sometime soon? |
Deployment Method
Steps to Reproduce
Describe the problem*
Created a new Debian 12 VM and then run the installer script. Script fails at the point where it runs through the database creation.
Steps to Reproduce
Believe the issue has to do with Debian 12 default installing Python 3.11.2
Relevant log output
The text was updated successfully, but these errors were encountered: