Jump to content

Bruno

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Bruno

  1. Had same problem, solved installing files from http://www.rpmfind.net/linux/RPM/dag/redha....rf.x86_64.html

    in a personalized site-package directory, added to wsgi dispatcher in this way

     

    ALLDIRS = ['/home/endeios/public_html/site-packages'] # my site-package dir
    
    # Remember original sys.path.
    prev_sys_path = list(sys.path) 
    
    # Add each new site-packages directory.
    for directory in ALLDIRS:
     site.addsitedir(directory)
    
    # Reorder sys.path so new directories at the front.
    new_sys_path = [] 
    for item in list(sys.path): 
       if item not in prev_sys_path: 
           new_sys_path.append(item) 
           sys.path.remove(item) 
    sys.path[:0] = new_sys_path
    
    

     

    hope this helps

  2. account : endeios

     

    httpref : http://15quindici.bruno-veronesi.heliohost.org/dispatch.wsgi

     

    Description: after having set the python_egg_path directory with permissions 775, exctractor still claims it can't extract package.

    i don't really know what to do :(

     

    Error reported was:

     

    Unexpected error: pkg_resources.ExtractionError

    Error was: Can't extract file(s) to egg cache

     

    The following error occurred while trying to extract file(s) to the Python egg

    cache:

     

    [Errno 13] Permission denied: '/home/endeios/public_html/15quindici/cgi-bin/.python_egg_cache/hashlib-20081119-py2.4-linux-x86_64.egg-tmp'

     

    The Python egg cache directory is currently set to:

     

    /home/endeios/public_html/15quindici/cgi-bin/.python_egg_cache

     

    Perhaps your account does not have write access to this directory? You can

    change the cache directory by setting the PYTHON_EGG_CACHE environment

    variable to point to an accessible directory.

     

    Traceback was: <traceback object at 0x434d7b90>

    PATH was: ['/usr/lib/python2.4/site-packages/hashlib-20081119-py2.4-linux-x86_64.egg', '/home/endeios/public_html/15quindici/cgi-bin/15quindicix/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg', '/home/endeios/public_html/15quindici/cgi-bin/15quindicix/lib/python2.6/site-packages/pip-0.4.1devdev-py2.6.egg', '/usr/lib64/python24.zip', '/usr/lib64/python2.4', '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', '/usr/lib64/python2.4/lib-dynload', '/usr/lib64/python2.4/site-packages', '/usr/lib64/python2.4/site-packages/gtk-2.0', '/usr/lib/python2.4/site-packages', '/home/endeios/public_html/15quindici/cgi-bin', '/home/endeios/public_html/15quindici/cgi-bin/15quindicix/lib/python2.6/site-packages', '/home/endeios/public_html/15quindici/cgi-bin/15quindiciSite/apps']

  3. whooops wrong place

     

    was meant as a replay to http://www.helionet.org/index/index.php?showtopic=6216

     

    poted on wrong window >.>

     

     

    I had the same problem, and needed some traceback

    Used this simple script, i hope it helps others to save time

    ....
    _application = django.core.handlers.wsgi.WSGIHandler()
    
    def application(environ, start_response):
       environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
    #    return [myresp,]
       try:
           return _application(environ, start_response)
       except:
           start_response("200 OK", [("Content-type", "text/plain")])
       	tb = "Unexpected error: "+ str(sys.exc_info()[0])
       	tb = tb+"\nError was: "+str(sys.exc_info()[1])
    #    	traceback.print_exc(file=sys.stdout)
       	tb = tb+"\nTraceback was: "+repr(sys.exc_info()[2])
       	tb = tb + "\n PATH was: "+str(sys.path)
       	return [tb,]
    

×
×
  • Create New...