Re: [Trac] Random "Target WSGI script cannot be loaded as Python module" after Python upgrade
On Thursday, August 31, 2017 at 10:32:39 AM UTC-7, Matt wrote: > > I do not use virtualenvs, and I saw that post you linked, not the same > situation. He is showing an old python version with a new hmac file. I am > showing a new python version with a new hmac file and it is only > randomly(1/50) not finding the dependency. > I would: 1. Upgrade Trac to 1.2.2. Make sure to read TracUpgrade. http://trac.edgewall.org/wiki/TracUpgrade 2. Review your Apache configuration against the recommendations on the TracModWSGI page. https://trac.edgewall.org/wiki/TracModWSGI - Ryan -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Random "Target WSGI script cannot be loaded as Python module" after Python upgrade
I do not use virtualenvs, and I saw that post you linked, not the same situation. He is showing an old python version with a new hmac file. I am showing a new python version with a new hmac file and it is only randomly(1/50) not finding the dependency. On Thursday, August 31, 2017 at 12:06:38 PM UTC-5, Peter Suter wrote: > > On 31.08.2017 17:49, Matt wrote: > > Here is stacktrace: > > mod_wsgi (pid=31659): Target WSGI script '/var/trac/apache/trac.wsgi' > cannot be loaded as Python module. > mod_wsgi (pid=31659): Exception occurred processing WSGI script > '/var/trac/apache/trac.wsgi'. > Traceback (most recent call last): > File "/var/trac/apache/trac.wsgi", line 8, in > import trac.web.main > File > "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/main.py" > , line 49, in > from trac.web.chrome import Chrome > File > "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/chrome.py" > , line 53, in > from trac.wiki import IWikiSyntaxProvider > File > "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/__init__.py" > , line 1, in > from trac.wiki.api import * > File > "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/api.py" > , line 36, in > from trac.wiki.parser import WikiParser > File > "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/parser.py" > , line 24, in > from trac.notification import EMAIL_LOOKALIKE_PATTERN > File > "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/notification.py" > , line 17, in > import smtplib > File "/usr/lib/python2.7/smtplib.py", line 48, in > import hmac > File "/usr/lib/python2.7/hmac.py", line 8, in > from operator import _compare_digest as compare_digest > ImportError: cannot import name _compare_digest > > Search the web for "_compare_digest". It seems you might have an old > virtualenv or a second old Python installation somewhere or something like > that. For example: > https://stackoverflow.com/questions/26535043/python-flask-error-importerror-cannot-import-name-compare-digest > > > On Thursday, August 31, 2017 at 10:37:42 AM UTC-5, Matt wrote: >> >> 0.11.7 - What do you need from the config? >> > 0.11.7 is very, very old. It's unlikely this is the cause of this problem, > but you should still upgrade. > > On Thursday, August 31, 2017 at 10:30:59 AM UTC-5, RjOllos wrote: >>> >>> >>> >>> On Thu, Aug 31, 2017 at 8:25 AM, Mattwrote: >>> Updated Python from 2.7.6 to 2.7.12 on Ubuntu and as soon as upgrade finished, I started getting these errors bout 2-3% of link clicks in Trac. >>> >>> We will probably need to see your Apache configuration file. Which Trac >>> version are you running? >>> >>> > > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Random "Target WSGI script cannot be loaded as Python module" after Python upgrade
On 31.08.2017 17:49, Matt wrote: Here is stacktrace: | mod_wsgi (pid=31659):TargetWSGI script '/var/trac/apache/trac.wsgi'cannot be loaded asPythonmodule. mod_wsgi (pid=31659):Exceptionoccurred processing WSGI script '/var/trac/apache/trac.wsgi'. Traceback(most recent call last): File"/var/trac/apache/trac.wsgi",line 8,in importtrac.web.main File"/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/main.py",line 49,in fromtrac.web.chrome importChrome File"/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/chrome.py",line 53,in fromtrac.wiki importIWikiSyntaxProvider File"/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/__init__.py",line 1,in fromtrac.wiki.api import* File"/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/api.py",line 36,in fromtrac.wiki.parser importWikiParser File"/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/parser.py",line 24,in fromtrac.notification importEMAIL_LOOKALIKE_PATTERN File"/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/notification.py",line 17,in importsmtplib File"/usr/lib/python2.7/smtplib.py",line 48,in importhmac File"/usr/lib/python2.7/hmac.py",line 8,in fromoperatorimport_compare_digest ascompare_digest ImportError:cannot importname _compare_digest | Search the web for "_compare_digest". It seems you might have an old virtualenv or a second old Python installation somewhere or something like that. For example: https://stackoverflow.com/questions/26535043/python-flask-error-importerror-cannot-import-name-compare-digest On Thursday, August 31, 2017 at 10:37:42 AM UTC-5, Matt wrote: 0.11.7 - What do you need from the config? 0.11.7 is very, very old. It's unlikely this is the cause of this problem, but you should still upgrade. On Thursday, August 31, 2017 at 10:30:59 AM UTC-5, RjOllos wrote: On Thu, Aug 31, 2017 at 8:25 AM, Mattwrote: Updated Python from 2.7.6 to 2.7.12 on Ubuntu and as soon as upgrade finished, I started getting these errors bout 2-3% of link clicks in Trac. We will probably need to see your Apache configuration file. Which Trac version are you running? -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Random "Target WSGI script cannot be loaded as Python module" after Python upgrade
Here is stacktrace: mod_wsgi (pid=31659): Target WSGI script '/var/trac/apache/trac.wsgi' cannot be loaded as Python module. mod_wsgi (pid=31659): Exception occurred processing WSGI script '/var/trac/apache/trac.wsgi'. Traceback (most recent call last): File "/var/trac/apache/trac.wsgi", line 8, in import trac.web.main File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/main.py" , line 49, in from trac.web.chrome import Chrome File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/chrome.py" , line 53, in from trac.wiki import IWikiSyntaxProvider File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/__init__.py" , line 1, in from trac.wiki.api import * File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/api.py" , line 36, in from trac.wiki.parser import WikiParser File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/parser.py" , line 24, in from trac.notification import EMAIL_LOOKALIKE_PATTERN File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/notification.py" , line 17, in import smtplib File "/usr/lib/python2.7/smtplib.py", line 48, in import hmac File "/usr/lib/python2.7/hmac.py", line 8, in from operator import _compare_digest as compare_digest ImportError: cannot import name _compare_digest On Thursday, August 31, 2017 at 10:37:42 AM UTC-5, Matt wrote: > > 0.11.7 - What do you need from the config? > > On Thursday, August 31, 2017 at 10:30:59 AM UTC-5, RjOllos wrote: >> >> >> >> On Thu, Aug 31, 2017 at 8:25 AM, Mattwrote: >> >>> Updated Python from 2.7.6 to 2.7.12 on Ubuntu and as soon as upgrade >>> finished, I started getting these errors bout 2-3% of link clicks in Trac. >>> >> >> We will probably need to see your Apache configuration file. Which Trac >> version are you running? >> >> -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Random "Target WSGI script cannot be loaded as Python module" after Python upgrade
0.11.7 - What do you need from the config? On Thursday, August 31, 2017 at 10:30:59 AM UTC-5, RjOllos wrote: > > > > On Thu, Aug 31, 2017 at 8:25 AM, Matt> wrote: > >> Updated Python from 2.7.6 to 2.7.12 on Ubuntu and as soon as upgrade >> finished, I started getting these errors bout 2-3% of link clicks in Trac. >> > > We will probably need to see your Apache configuration file. Which Trac > version are you running? > > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Random "Target WSGI script cannot be loaded as Python module" after Python upgrade
On Thu, Aug 31, 2017 at 8:25 AM, Mattwrote: > Updated Python from 2.7.6 to 2.7.12 on Ubuntu and as soon as upgrade > finished, I started getting these errors bout 2-3% of link clicks in Trac. > We will probably need to see your Apache configuration file. Which Trac version are you running? -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
[Trac] Random "Target WSGI script cannot be loaded as Python module" after Python upgrade
Updated Python from 2.7.6 to 2.7.12 on Ubuntu and as soon as upgrade finished, I started getting these errors bout 2-3% of link clicks in Trac. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.