Django 1.10.3 Apache wsgi - ImportError: cannot import name signalsDjango WSGI segfaults when importing...
How to find the largest number(s) in a list of elements, possibly non-unique?
Weird lines in Microsoft Word
Could any one tell what PN is this Chip? Thanks~
What are the rules for concealing thieves' tools (or items in general)?
Are hand made posters acceptable in Academia?
PTIJ: Which Dr. Seuss books should one obtain?
Error in master's thesis, I do not know what to do
Should a narrator ever describe things based on a characters view instead of fact?
Justification failure in beamer enumerate list
Exit shell with shortcut (not typing exit) that closes session properly
PTIJ: At the Passover Seder, is one allowed to speak more than once during Maggid?
Can other pieces capture a threatening piece and prevent a checkmate?
How are passwords stolen from companies if they only store hashes?
What are the consequences of changing the number of hours in a day?
Isn't the word "experience" wrongly used in this context?
Emojional cryptic crossword
What kind of footwear is suitable for walking in micro gravity environment?
Why is indicated airspeed rather than ground speed used during the takeoff roll?
CLI: Get information Ubuntu releases
Help with identifying unique aircraft over NE Pennsylvania
Did Nintendo change its mind about 68000 SNES?
Recursively updating the MLE as new observations stream in
Friend wants my recommendation but I don't want to
Turning a hard to access nut?
Django 1.10.3 Apache wsgi - ImportError: cannot import name signals
Django WSGI segfaults when importing setproctitle moduleRe: How can Django/WSGI and PHP share / on Apache?How do I get Apache to run Python 2.7 rather than 2.5?Make mod_wsgi use python2.7.2 instead of python2.6?Python/Django/WSGI/Apache - “ImportError: No module named site”Python eggs are not imported for Apache2 mod_wsgiRecompiling python with SSL support on ubuntuWSGI/APACHE - “ImportError: No module named site”Django site running in Apache 2.4.6 on Centos giving 503 server errorError when trying install mod_wsgi using pip
Overnight django stopped working, possibly because of an automatic package upgrade on the server. Its wsgi script now fails to load in production, but running the development server works fine. What might cause the following error?
mod_wsgi (pid=27634): Target WSGI script '/var/www/.../wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=27634): Exception occurred processing WSGI script '/var/www/.../wsgi.py'.
Traceback (most recent call last):
File "/var/www/.../wsgi.py", line 13, in <module>
from django.core.wsgi import get_wsgi_application
File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 2, in <module>
from django.core.handlers.wsgi import WSGIHandler
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 10, in <module>
from django import http
File "/usr/local/lib/python2.7/dist-packages/django/http/__init__.py", line 5, in <module>
from django.http.response import (
File "/usr/local/lib/python2.7/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/base.py", line 4, in <module>
from django.db import models
File "/usr/local/lib/python2.7/dist-packages/django/db/models/__init__.py", line 4, in <module>
from django.db.models import signals # NOQA
ImportError: cannot import name signals
The wsgi.py file is as follows:
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "....settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
This worked 24 hours ago and has stopped working - I've tried django 1.10 and 1.10.3 but both exhibit the same symptoms. apache 2.4.18, python 2.7.12.
The file /usr/local/lib/python2.7/dist-packages/django/db/models/signals.py exists, so in principle there shouldn't be anything stopping the import.
apache-2.4 python django mod-wsgi wsgi
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Overnight django stopped working, possibly because of an automatic package upgrade on the server. Its wsgi script now fails to load in production, but running the development server works fine. What might cause the following error?
mod_wsgi (pid=27634): Target WSGI script '/var/www/.../wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=27634): Exception occurred processing WSGI script '/var/www/.../wsgi.py'.
Traceback (most recent call last):
File "/var/www/.../wsgi.py", line 13, in <module>
from django.core.wsgi import get_wsgi_application
File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 2, in <module>
from django.core.handlers.wsgi import WSGIHandler
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 10, in <module>
from django import http
File "/usr/local/lib/python2.7/dist-packages/django/http/__init__.py", line 5, in <module>
from django.http.response import (
File "/usr/local/lib/python2.7/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/base.py", line 4, in <module>
from django.db import models
File "/usr/local/lib/python2.7/dist-packages/django/db/models/__init__.py", line 4, in <module>
from django.db.models import signals # NOQA
ImportError: cannot import name signals
The wsgi.py file is as follows:
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "....settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
This worked 24 hours ago and has stopped working - I've tried django 1.10 and 1.10.3 but both exhibit the same symptoms. apache 2.4.18, python 2.7.12.
The file /usr/local/lib/python2.7/dist-packages/django/db/models/signals.py exists, so in principle there shouldn't be anything stopping the import.
apache-2.4 python django mod-wsgi wsgi
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Overnight django stopped working, possibly because of an automatic package upgrade on the server. Its wsgi script now fails to load in production, but running the development server works fine. What might cause the following error?
mod_wsgi (pid=27634): Target WSGI script '/var/www/.../wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=27634): Exception occurred processing WSGI script '/var/www/.../wsgi.py'.
Traceback (most recent call last):
File "/var/www/.../wsgi.py", line 13, in <module>
from django.core.wsgi import get_wsgi_application
File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 2, in <module>
from django.core.handlers.wsgi import WSGIHandler
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 10, in <module>
from django import http
File "/usr/local/lib/python2.7/dist-packages/django/http/__init__.py", line 5, in <module>
from django.http.response import (
File "/usr/local/lib/python2.7/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/base.py", line 4, in <module>
from django.db import models
File "/usr/local/lib/python2.7/dist-packages/django/db/models/__init__.py", line 4, in <module>
from django.db.models import signals # NOQA
ImportError: cannot import name signals
The wsgi.py file is as follows:
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "....settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
This worked 24 hours ago and has stopped working - I've tried django 1.10 and 1.10.3 but both exhibit the same symptoms. apache 2.4.18, python 2.7.12.
The file /usr/local/lib/python2.7/dist-packages/django/db/models/signals.py exists, so in principle there shouldn't be anything stopping the import.
apache-2.4 python django mod-wsgi wsgi
Overnight django stopped working, possibly because of an automatic package upgrade on the server. Its wsgi script now fails to load in production, but running the development server works fine. What might cause the following error?
mod_wsgi (pid=27634): Target WSGI script '/var/www/.../wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=27634): Exception occurred processing WSGI script '/var/www/.../wsgi.py'.
Traceback (most recent call last):
File "/var/www/.../wsgi.py", line 13, in <module>
from django.core.wsgi import get_wsgi_application
File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 2, in <module>
from django.core.handlers.wsgi import WSGIHandler
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 10, in <module>
from django import http
File "/usr/local/lib/python2.7/dist-packages/django/http/__init__.py", line 5, in <module>
from django.http.response import (
File "/usr/local/lib/python2.7/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/base.py", line 4, in <module>
from django.db import models
File "/usr/local/lib/python2.7/dist-packages/django/db/models/__init__.py", line 4, in <module>
from django.db.models import signals # NOQA
ImportError: cannot import name signals
The wsgi.py file is as follows:
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "....settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
This worked 24 hours ago and has stopped working - I've tried django 1.10 and 1.10.3 but both exhibit the same symptoms. apache 2.4.18, python 2.7.12.
The file /usr/local/lib/python2.7/dist-packages/django/db/models/signals.py exists, so in principle there shouldn't be anything stopping the import.
apache-2.4 python django mod-wsgi wsgi
apache-2.4 python django mod-wsgi wsgi
asked Nov 29 '16 at 18:03
franksterfrankster
1113
1113
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
It turns out that there was a file that was not readable by the webserver, and an earlier line in the error log identified this file.
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.1.0.post1-py2.7.egg/EGG-INFO/namespace_packages.txt'
I solved the problem with:
chmod -R o+r /usr/local/lib/python2.7/dist-packages
Leaving this question up in case anyone runs into the same issue.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f817729%2fdjango-1-10-3-apache-wsgi-importerror-cannot-import-name-signals%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It turns out that there was a file that was not readable by the webserver, and an earlier line in the error log identified this file.
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.1.0.post1-py2.7.egg/EGG-INFO/namespace_packages.txt'
I solved the problem with:
chmod -R o+r /usr/local/lib/python2.7/dist-packages
Leaving this question up in case anyone runs into the same issue.
add a comment |
It turns out that there was a file that was not readable by the webserver, and an earlier line in the error log identified this file.
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.1.0.post1-py2.7.egg/EGG-INFO/namespace_packages.txt'
I solved the problem with:
chmod -R o+r /usr/local/lib/python2.7/dist-packages
Leaving this question up in case anyone runs into the same issue.
add a comment |
It turns out that there was a file that was not readable by the webserver, and an earlier line in the error log identified this file.
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.1.0.post1-py2.7.egg/EGG-INFO/namespace_packages.txt'
I solved the problem with:
chmod -R o+r /usr/local/lib/python2.7/dist-packages
Leaving this question up in case anyone runs into the same issue.
It turns out that there was a file that was not readable by the webserver, and an earlier line in the error log identified this file.
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.1.0.post1-py2.7.egg/EGG-INFO/namespace_packages.txt'
I solved the problem with:
chmod -R o+r /usr/local/lib/python2.7/dist-packages
Leaving this question up in case anyone runs into the same issue.
answered Nov 29 '16 at 22:46
franksterfrankster
1113
1113
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f817729%2fdjango-1-10-3-apache-wsgi-importerror-cannot-import-name-signals%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown