Redis and Flask Pylint Import Error
See original GitHub issueI have a body of python code that tries to import Flask and Redis.
import redis
from flask import Flask
But I am getting Pylint import errors that say they were unable to import them, despite the fact that I ran necessary install and download codes in order to make sure they are on my computer. What’s going on?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
PyLint "Unable to import" error - how to set PYTHONPATH?
There are two options I'm aware of. One, change the PYTHONPATH environment variable to include the directory above your module.
Read more >unable to import flask pylint error Code Example - Code Grepper
Go to Command Palette using Ctrl + Shift + P. select python:select interpreter and then choose your appropriate virtualenv.
Read more >Flask by Example – Implementing a Redis Task Queue
Here, we listened for a queue called default and established a connection to the Redis server on localhost:6379 . Fire this up in...
Read more >How To Handle Errors in a Flask Application - DigitalOcean
In the code above, you import the abort() function, which you use to abort the request and respond with an error. In the...
Read more >flask-redis - PyPI
The flask-redis project is written and maintained by Bence Nagy (underyx). The project was originally created by Rhys Elsmore, who maintained it until...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The program corrected itself and recognized that I downloaded the necessary software. Thank you anyways.
@LightningRpper Meanwhile, please provide the logs as mentioned in the issue template and ensure you’re on the latest version of the extension.
Logs
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)You’ll see the commands extension runs for pylint. Try running those commands in terminal and see if you get the same errors.