Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Use pkgutil to load video_reqs.json #55

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Use pkgutil to load video_reqs.json #55

wants to merge 3 commits into from

Conversation

redapple
Copy link

This is to fix these errors I'm having while using steve-cmd webedit and clicking on a file to edit.
(I'm not running the command from steve repo clone)

----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 52774)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__
    self.handle()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "build/bdist.linux-x86_64/egg/steve/webedit.py", line 80, in do_GET
    return self.route_edit(path)
  File "build/bdist.linux-x86_64/egg/steve/webedit.py", line 105, in route_edit
    reqs = get_video_requirements()
  File "build/bdist.linux-x86_64/egg/steve/util.py", line 305, in get_video_requirements
    fp = open(fn)
IOError: [Errno 20] Not a directory: '/home/paul/.virtualenvs/pyvideo/local/lib/python2.7/site-packages/steve-0.5.dev0-py2.7.egg/steve/video_reqs.json'
----------------------------------------

@willkg
Copy link
Member

willkg commented Nov 24, 2015

Can you add a test for this?

@redapple
Copy link
Author

@willkg , is that ok?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants