Code Monkey home page Code Monkey logo

pyramid-excel's People

Contributors

chfw avatar timgates42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

timgates42

pyramid-excel's Issues

ApplicationRequest object has no attribute 'get_array'

I'm using the following versions on Ubuntu 14.04:
pyexcel-xls == 0.1.0
pyramid-excel == 0.0.2
pyramid==1.4.5

I've been following the quick start tutorial, with two exceptions. I moved the following block to my app's init.py :
if name == 'main':
[...]

I also put the view code into existing add views. (however the same error occurs if I follow the tutorial exactly).

When I hit the url, the upload form displays properly. I select an .xls file and click upload. I get an AttributeError: 'ApplicationRequest' object has no attribute 'get_array' error.

Below is the traceback:

(samples_prod) rob@ubuntu:~/development/samples_prod/samples_prod$ pserve devepment.ini
Starting server in PID 3771.
serving on http://0.0.0.0:6553
2016-03-16 10:39:05,417 ERROR [pyramid_debugtoolbar][Dummy-1] Exception at http://0.0.0.0:6553/samples/bulk_import_add
traceback url: http://0.0.0.0:6553/samples/_debug_toolbar/exception?token=[...]
Traceback (most recent call last):
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid_debugtoolbar/toolbar.py", line 172, in toolbar_tween
response = _handler(request)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid_debugtoolbar/panels/performance.py", line 55, in resource_timer_handler
result = handler(request)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid/tweens.py", line 21, in excview_tween
response = handler(request)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid_tm/init.py", line 82, in tm_tween
reraise(_exc_info)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid_tm/init.py", line 63, in tm_tween
response = handler(request)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid/router.py", line 161, in handle_request
response = view_callable(context, request)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid/config/views.py", line 237, in _secured_view
return view(context, request)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid/config/views.py", line 347, in rendered_view
result = view(context, request)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid/config/views.py", line 493, in _requestonly_view
response = view(request)
File "/home/rob/development/samples_prod/samples_prod/samples/views/bulk_imports.py", line 54, in add
data = request.get_array(field_name='file')
_AttributeError: 'ApplicationRequest' object has no attribute 'get_array'*

2016-03-16 10:39:05,418 ERROR [waitress][Dummy-1] Exception when serving /samples/bulk_import_add
Traceback (most recent call last):
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/waitress/channel.py", line 337, in service
task.service()
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/waitress/task.py", line 173, in service
self.execute()
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/waitress/task.py", line 392, in execute
app_iter = self.channel.server.application(env, start_response)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/paste/deploy/config.py", line 291, in call
return self.app(environ, start_response)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid/router.py", line 251, in call
response = self.invoke_subrequest(request, use_tweens=True)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid/router.py", line 227, in invoke_subrequest
response = handle_request(request)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid_debugtoolbar/toolbar.py", line 195, in toolbar_tween
response = request.invoke_subrequest(subrequest)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid/router.py", line 227, in invoke_subrequest
response = handle_request(request)
File "/home/rob/.virtualenvs/samples_prod/local/lib/python2.7/site-packages/pyramid/router.py", line 159, in handle_request
raise HTTPNotFound(msg)
HTTPNotFound: /samples/_debug_toolbar/exception

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.