On 5/24/2012 4:15 PM, John Anderson wrote:


On Thu, May 24, 2012 at 3:12 PM, clemensherschel <[email protected] <mailto:[email protected]>> wrote:

    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




 virtualenv -p /usr/bin/<whatever python version ubuntu has now>
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 [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to