question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

from graphene_file_upload.flask import FileUploadGraphQLView fails with this error:

See original GitHub issue
Traceback (most recent call last):
  File "server.py", line 4, in <module>
    import graphene_file_upload.flask
  File "~/.local/share/virtualenvs/backend-JODmqDQ7/lib/python2.7/site-packages/graphene_file_upload/flask.py", line 1, in <module>
    from flask import request
ImportError: cannot import name request

Potentially I am just using this incorrectly?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
davidroecacommented, Nov 8, 2018

@mfix22 I created a PR for this precise issue in #22 I think it was just an honest oversight.

On a completely different note, I’d recommend checking out poetry when you have the chance.

0reactions
davidroecacommented, Nov 9, 2018

Opened #23, which should likely fix it. Confirmed that distribution breaks the package on python2 without a specific distribution fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flask GraphQL import fails - python - Stack Overflow
I have the package versions ... Flask 2.0.2 Flask-GraphQL 2.0.0 Flask-Script 2.0.6 ... graphene 3.0 graphql-core 3.1.6 graphql-relay 3.1.0 ...
Read more >
Chapter 7. Django Image Uploads - Michael Stromer
Create, upload images to Amazon S3 and boto3; Accept uploaded file images using graphene-file-upload. Introduction. Having the ability to upload book cover ...
Read more >
Python Examples of flask.request.files - ProgramCreek.com
The following are 30 code examples of flask.request.files(). ... return Response('Connection error : %s' % APP.config['CASSH_URL']) if 'Error' in req.text: ...
Read more >
Uploading Files — Flask Documentation (2.2.x)
Ah yes, the good old problem of file uploads. ... import os from flask import Flask, flash, request, redirect, url_for from werkzeug.utils import...
Read more >
Enhances Graphene Django GraphQL Server for intuitive file
Implement graphene-file-upload with how-to, Q&A, fixes, code snippets. kandi ratings - Low ... from graphene_file_upload.flask import FileUploadGraphQLView ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found