-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error with setuptools_scm during install.sh #608
Comments
Hi, |
nope !!!!! |
Hi, sorry for not getting back to you earlier! I've just released a new version which changes the build system and should resolve the issue: https://github.com/ARTFL-Project/PhiloLogic4/releases/tag/v4.7.5.0 Let me know if you still have issues! Thanks! |
thanks for your work In the Dockerfile, we should add python3.10-venv in the line RUN apt-get update && apt-get upgrade -y && and i don't find philoload4 after the installation. |
Thanks for looking into this further! After some digging, it appears that the python package was not being built correctly (and therefore not installed) due to an Ubuntu related issue (see pypa/setuptools#3269). The fix involves removing the python3-pip package (alongn with its dependencies, in particular python-setuptools), and then reinstalling pip manually: |
ok
|
You should not have to edit any code at this point to make things work. Did you build a PhiloLogic database? If so, could you paste the terminal output? Thanks! |
/usr/local/bin/philoload4 -D -d epigraphie /media/epigraphie/*; `### Storing in database ### Finishing upwrote database info to /var/www/html/epigraphie/data/db.locals.py. |
You are running this in a Docker container? I see that you have https enabled. Did you propagate the SSL config to the Apache instance inside the container? I'm thinking you may have a SSL handshake issue. My setup to run PhiloLogic in Docker behind SSL is to share the certificate between host and container and point to that certificate in the container Apache config. |
I tried on a local configuration in a docker instance. root@2dda399120f5:/# curl http://localhost/philologic/epigraphie/ Same Error: <script type="module" src="./philologic/epigraphie/app/src/main.js"></script> <title>PhiloLogic4</title> We're sorry but PhiloLogic4 doesn't work without JavaScript enabled. Please enable it to continue. docker build -t philologic . , docker run -d philologic, etc... It should be something obvious. Is there something i could test ? |
Using curl won't work since you need client side (e.g. the browser) javascript. What does it show when you try in the browser? |
same thing |
Do you have a browser extension blocking Javascript by any chance? Have you tried different browsers? |
Thanks! So you should not need to edit any paths. it just occurred to me that you may have an issue with the global config file located in /etc/philologic/philologic4. Assuming you are running this on localhost, did you set url_root to "http://localhost/philologic/"? |
yes # Set the filesytem path to the root web directory for your PhiloLogic install. # Set the URL path to the same root directory for your philologic install. ## This should be set to the location of the PhiloLogic4 www directory |
OK, so the only other potential issue I can think of is with the Apache config. Did you enable mod_cgi and did you set AllowOverride to All for the /var/www directory. Something like this:
|
mod_cgi a2enmod rewrite && a2enmod cgi && a2enmod brotli |
apache2.conf <Directory /var/www/> |
Sorry to ask, but did you by any chance restart apache after setting up the config? If yes, then I admit I do not know what else could be wrong... |
the image artfl/philologic works !!! the investigation continues |
Good to hear! I'm very curious to find out what the cause of the issue is... |
my test docker inside the docker --> http://localhost/philologic/epigraphie KO inside the docker |
Thank you for the detailed message! So I was indeed able to replicate the issue, and it was related to the web application not building properly due to the default nodejs on Ubuntu 22.04 which is getting a bit old. The fix involves using a more recent version of node. I was able to run your corpus without issue once I built the image from the updated Dockerfile. Thanks again! |
problem solved too |
in a docker container
root@366ed453f862:/PhiloLogic4# ./install.sh
`./install.sh: 8: [[: not found
INSTALLING PYTHON LIBRARY
Processing /PhiloLogic4/python
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [43 lines of output]
/usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
/PhiloLogic4/python/.eggs/setuptools_scm-8.0.4-py3.10.egg/setuptools_scm/_integration/setuptools.py:30: RuntimeWarning:
ERROR: setuptools==59.6.0 is used in combination with setuptools_scm>=8.x
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
`
pip list
Package Version
gyp 0.1
packaging 23.2
pip 22.0.2
setuptools 59.6.0
setuptools-scm 8.0.4
tomli 2.0.1
typing_extensions 4.9.0
wheel 0.37.1
Perhaps there is a problem with the version of setuptools_scm.
Which version is recommended ?
The text was updated successfully, but these errors were encountered: