steve icon indicating copy to clipboard operation
steve copied to clipboard

Use pkgutil to load video_reqs.json

Open redapple opened this issue 8 years ago • 2 comments

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'
----------------------------------------

redapple avatar Nov 24 '15 16:11 redapple

Can you add a test for this?

willkg avatar Nov 24 '15 16:11 willkg

@willkg , is that ok?

redapple avatar Nov 24 '15 17:11 redapple