Static files NOT FOUND using the testing standalone server

Bug #292762 reported by luca
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
turbogears (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I just updated to 8.10 (from 8.04) and my development environment fails to find static files with this traceback:
2008-11-02 17:44:13,274 cherrypy.msg INFO DEBUG: NOT FOUND file: /home/luca/sercom/serco/static/css/style.css
2008-11-02 17:44:13,278 cherrypy.msg INFO HTTP: Page handler: "The path '/static/css/style.css' was not found."
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/cherrypy/_cphttptools.py", line 121, in _run
    self.main()
  File "/var/lib/python-support/python2.5/cherrypy/_cphttptools.py", line 256, in main
    page_handler, object_path, virtual_path = self.mapPathToObject(path)
  File "/var/lib/python-support/python2.5/cherrypy/_cphttptools.py", line 326, in mapPathToObject
    raise cherrypy.NotFound(objectpath)
NotFound: 404

Note that "/home/luca/sercom/serco/static/css/style.css" should be "/home/luca/sercom/sercom/static/css/style.css" (there is a missing "m" at the end of the second "sercom")

I investigated a little and find the problem, attached is a patch that fixes it:

I don't know if it's an upstream bug, or if it's a TG or setuptools bug (it seems that setuptools's pkg_resources.resource_filename() returned the path with the trailing '/' before), so I'll just report it here.

Thank you.

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
$ apt-cache policy python-turbogears
python-turbogears:
  Installed: 1.0.4.4-1
  Candidate: 1.0.4.4-1
  Version table:
 *** 1.0.4.4-1 0
        500 http://ar.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
luca (llucax) wrote :
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :

I can confirm this issue.

I've had problems to run openerp-web-client [https://edge.launchpad.net/openobject-client-web] because of this issue.

The patch proposed by luca fixed the issue.

 uname -a && lsb_release -rd && apt-cache policy python-turbogears
Linux ulises 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux
Description: Ubuntu 8.10
Release: 8.10
python-turbogears:
  Installed: 1.0.4.4-1
  Candidate: 1.0.4.4-1
  Version table:
 *** 1.0.4.4-1 0
        500 http://archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

Changed in turbogears:
status: New → Confirmed
Revision history for this message
Amit Mendapara (cristatus) wrote :

I think, it's due to `setuptools`. Either downgrade python-setuptools or upgrade python-turbogears. See https://bugs.launchpad.net/openobject-client-web/+bug/313756/comments/2.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.