ubuntu os ugrade effect on pyramid

71 views
Skip to first unread message

clemensherschel

unread,
May 24, 2012, 4:12:59 PM5/24/12
to pylons-...@googlegroups.com
I dont know what group can help me with this question in my pyramid
application.
I upgraded ubuntu os from 11. xx to 12.04. I thought my virtualenv would
be immune to any OS changes.

now when I run :
../bin/pserve development.ini

I get the following errors:

Traceback (most recent call last):
File "../bin/pserve", line 9, in <module>
load_entry_point('pyramid==1.3a4', 'console_scripts', 'pserve')()
File
"/home/cherschel/env_ch/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py",
line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File
"/home/cherschel/env_ch/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py",
line 2281, in load_entry_point
return ep.load()
File
"/home/cherschel/env_ch/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py",
line 1991, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File
"/home/cherschel/env_ch/local/lib/python2.7/site-packages/pyramid-1.3a4-py2.7.egg/pyramid/__init__.py",
line 1, in <module>
from pyramid.request import Request
File
"/home/cherschel/env_ch/local/lib/python2.7/site-packages/pyramid-1.3a4-py2.7.egg/pyramid/request.py",
line 8, in <module>
from webob import BaseRequest
File
"/home/cherschel/env_ch/local/lib/python2.7/site-packages/WebOb-1.2b2-py2.7.egg/webob/__init__.py",
line 1, in <module>
from webob.datetime_utils import *
File
"/home/cherschel/env_ch/local/lib/python2.7/site-packages/WebOb-1.2b2-py2.7.egg/webob/datetime_utils.py",
line 10, in <module>
from email.utils import (
File "/usr/lib/python2.7/email/utils.py", line 27, in <module>
import random
File "/usr/lib/python2.7/random.py", line 47, in <module>
from os import urandom as _urandom
ImportError: cannot import name urandom

From ubuntu 12.04 python(2.7.3) , I can import urandom from os but not
from the virtualenv python(2.7.2+)

I dont want to mess around with the virtualenv python as that is the
point of virtualenv

thanks for any help,

Clemens Herschel




John Anderson

unread,
May 24, 2012, 4:15:37 PM5/24/12
to pylons-...@googlegroups.com
 virtualenv -p /usr/bin/<whatever python version ubuntu has now>

clemensherschel

unread,
May 24, 2012, 5:03:20 PM5/24/12
to pylons-...@googlegroups.com
so you are saying  to  create a new virtualenv with the current OS python version and install the pyramid egg in the new virtualenv?
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.

John Anderson

unread,
May 24, 2012, 5:48:29 PM5/24/12
to pylons-...@googlegroups.com
You can use this on an existing virtualenv.


virtualenv -p /usr/bin/python2.7 ~/.virtualenvs/test_env/   for instance 

clemensherschel

unread,
May 24, 2012, 6:54:01 PM5/24/12
to pylons-...@googlegroups.com
Thanks. That got app running.
Reply all
Reply to author
Forward
0 new messages