Evgeni Golov schrieb am Sonntag, dem 03. August 2014: > On 08/03/2014 01:09 PM, Jakub Wilk wrote: > > I could also reproduce it with the following sequence: > > > > 1) run "python 2.6 -S" (loads "posix", wich is a built-in module, but > > not "os") > > 2) upgrade python2.6 > > 3) import random > > This also happens when you ship an own libpython.so, but use the systems > os.py, like I've seen in OMD some years ago.
Snapshot.debian.org on sibelius ran into the issue: } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] mod_wsgi (pid=26444): Exception occurred processing WSGI script '/srv/snapshot.debian.org/bin/snapshot.wsgi'. } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] Traceback (most recent call last): } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/srv/snapshot.debian.org/bin/snapshot.wsgi", line 13, in <module> } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] application = loadapp('config:' + join(topdir, 'etc', 'web-app.ini')) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 204, in loadapp } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] return loadobj(APP, uri, name=name, **kw) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 224, in loadobj } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] global_conf=global_conf) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] global_conf=global_conf) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 278, in _loadconfig } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] return loader.get_context(object_type, name, global_conf) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 409, in get_context } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] section) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 431, in _context_from_use } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] object_type, name=use, global_conf=global_conf) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 361, in get_context } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] global_conf=global_conf) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] global_conf=global_conf) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 285, in _loadegg } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] return loader.get_context(object_type, name, global_conf) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 561, in get_context } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] object_type, name=name) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 587, in find_egg_entry_point } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] possible.append((entry.load(), protocol, entry.name)) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1954, in load } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] entry = __import__(self.module_name, globals(),globals(), ['__name__']) } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/srv/snapshot.debian.org/web-app/lib/python2.6/site-packages/snapshot/config/middleware.py", line 27, in <module> } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] from beaker.middleware import CacheMiddleware, SessionMiddleware } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/beaker/middleware.py", line 11, in <module> } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] from beaker.cache import CacheManager } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/beaker/cache.py", line 13, in <module> } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] import beaker.container as container } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/beaker/container.py", line 10, in <module> } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] from beaker.synchronization import _threading, file_synchronizer, \\ } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/pymodules/python2.6/beaker/synchronization.py", line 11, in <module> } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] import tempfile } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/python2.6/tempfile.py", line 34, in <module> } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] from random import Random as _Random } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] File "/usr/lib/python2.6/random.py", line 47, in <module> } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] from os import urandom as _urandom } [Fri Aug 01 20:11:19 2014] [error] [client 143.106.167.234] ImportError: cannot import name urandom Restarting the service seems to have helped and things appear to work now. Everything is as it should be. Cheers, -- | .''`. ** Debian ** Peter Palfrader | : :' : The universal http://www.palfrader.org/ | `. `' Operating System | `- http://www.debian.org/ -- To UNSUBSCRIBE, email to debian-lts-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140803140451.gx30...@anguilla.noreply.org