-
Notifications
You must be signed in to change notification settings - Fork 268
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
not able to configure python 3.7 from python 3.6. in apache2 ubuntu #839
Comments
i have mod_wsgi for python 3.6 but not for python 3.7 even I tried to install it for python 3.7 using pip install mod_wsgi. but this command is giving me below error :- /usr/bin/ld: final link failed: Bad value I have to deploy it in production |
Not sure how you are getting an error which shows a Do note that if building mod_wsgi from source code or using Anyway, initially I would suggest you ignore the system Apache. That is, don't manually configure it. Ensure the Apache core and devel packages are installed, use |
pip install mod_wsgi is not working. /usr/bin/ld: final link failed: Bad value can you please tell what does this error mean? |
As I already indicated, you need to ensure that you have the Apache development packages installed. If you don't the files it requires for linking may be missing and strange errors like that could arise. So what system Apache packages do you have installed? To provide any more help, I need to see the complete output from running |
i have installed all mentioned packages -> apache2-dev libapr1-dev libaprutil1-dev libtcnative-1-dev maven ant libthrift-dev librdkafka-dev |
Then please provide the output from running |
(gemenvtest1) root@azgemnlpUAT-VM:/gemnlp/apache/Gem_api# pip install -v mod_wsgi WARNING: The Python installation you are using does not appear to have running egg_info WARNING: The Python installation you are using does not appear to have running bdist_wheel × python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. This is -- a caller that pip uses to run setup.py- It imports setuptools before invoking setup.py, to enable projects that directlyimport from
|
So the real error of importance is:
The prior output even has a big warning that your Python installation doesn't have a shared library.
So that error is exactly because of that. As the warning says so, you need to reinstall your custom Python installation so it has a shared library. Better still, use any system package for Python instead as they are compiled correctly with a shared library. If you are installing Python yourself from source code, go read: The post is old now and so you will have to adapt information in it for recent Python versions, but it mentions the specific problem about lack of Python shared library. The mod_wsgi docs even warn about this problem at: Are you installing Python yourself from source code or not? Or are you using a installer such as |
[Tue May 30 12:03:49.239449 2023] [wsgi:error] [pid 5670:tid 139636291550144] mod_wsgi (pid=5670): Target WSGI script '/gemnlp/apache/Gem_api/api.wsgi' cannot be loaded as Python module.
[Tue May 30 12:03:49.239521 2023] [wsgi:error] [pid 5670:tid 139636291550144] mod_wsgi (pid=5670): Exception occurred processing WSGI script '/gemnlp/apache/Gem_api/api.wsgi'.
[Tue May 30 12:03:49.241719 2023] [wsgi:error] [pid 5670:tid 139636291550144] Traceback (most recent call last):
[Tue May 30 12:03:49.241741 2023] [wsgi:error] [pid 5670:tid 139636291550144] File "/gemnlp/apache/Gem_api/api.wsgi", line 5, in
[Tue May 30 12:03:49.241743 2023] [wsgi:error] [pid 5670:tid 139636291550144] from api import app
[Tue May 30 12:03:49.241747 2023] [wsgi:error] [pid 5670:tid 139636291550144] File "/gemnlp/apache/Gem_api/api.py", line 3, in
[Tue May 30 12:03:49.241749 2023] [wsgi:error] [pid 5670:tid 139636291550144] import pandas as pd
[Tue May 30 12:03:49.241758 2023] [wsgi:error] [pid 5670:tid 139636291550144] ModuleNotFoundError: No module named 'pandas'
I am getting this error because mod_wsgi is using python 3.6 by default. i tried all the methods but nothing worked. all the tried commands were working successful but by default it was using python 3.6.
The text was updated successfully, but these errors were encountered: