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.

Redis and Flask Pylint Import Error

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
LightningRppercommented, Apr 14, 2021

The program corrected itself and recognized that I downloaded the necessary software. Thank you anyways.

0reactions
karrtikrcommented, Apr 14, 2021

@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 Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

You’ll see the commands extension runs for pylint. Try running those commands in terminal and see if you get the same errors.

Read more comments on GitHub >

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

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