VScode intellisense doesn't work on Raspberry Pi OS 64bit! (Python)

Nice to meet you. This article is the first post. This time, pylint was annoying, and when I set it by looking at a certain site, VScode intellisense did not work with Raspberry Pi, so I will write the cause and remedy, and the remedy for the fundamental error.

environment

--Raspberry Pi 4 --Raspberry OS 64bit

Directory structure

workspace/
    ┣ utils/
        ┣ __init__.py
        ┣ sub.py
    ┣ __init__.py
    ┣ main.py

I wonder if it looks like this for the time being In main.py

from utils import sub

When I entered Unable to import utils pylint(import-error) Is displayed. what's this! annoying! Come out! It doesn't make sense to say that, so I looked it up. Then create a pylintrc init-hook="./utils" I was told to fill in. I tried it. Is gone! Hooray! For a while I thought. When I restarted, the intellisense wasn't working. I think it was because I created pylintrc now, but I didn't have that head at all at this time. Reinstalling code-oss didn't change it, so I pushed git to pylintrc and re-installed the OS. And after cloning and rebooting, it doesn't work again. why? Why? After a lot of research, I found that pylintrc was the cause. I quickly erased it. (I forgot which site it was) And the root ʻUnable to import utils pylint (import-error)reappears. When I looked it up again, it said that puttinginit.pywould fix it. But I leave. I thought maybe, I deletedinit.py in the same layer as main.py`. No longer an error. Solution.

Conclusion

--Delete pylintrc --Don't waste __init __.py.

that's all! !! I'm not used to writing, so I'd appreciate it if you could make an edit request or comment, such as this is better!

Recommended Posts

VScode intellisense doesn't work on Raspberry Pi OS 64bit! (Python)
Install 64-bit OS (bate) on Raspberry Pi
Install docker-compose on 64-bit Raspberry Pi OS
Intellisense doesn't work with tensorflow2.0 + VScode
Detect "brightness" using python on Raspberry Pi 3!
Adafruit Python BluefruitLE works on Raspberry Pi.
Run servomotor on Raspberry Pi 3 using python
Detect temperature using python on Raspberry Pi 3!
Working with GPS on Raspberry Pi 3 Python
Detect slide switches using python on Raspberry Pi 3!
Detect magnet switches using python on Raspberry Pi 3!
Enjoy electronic work with GPIO on Raspberry Pi
Make DHT11 available on Raspberry Pi + python (memo)
Sound the buzzer using python on Raspberry Pi 3!
Connect to MySQL with Python on Raspberry Pi
Build a Python development environment on Raspberry Pi
pigpio on Raspberry pi
vscode doesn't recognize python
Cython on Raspberry Pi
Try debugging Python on Raspberry Pi with Visual Studio.
Ubuntu 20.04 on raspberry pi 4 with OpenCV and use with python
Install pyenv on Raspberry Pi and version control Python
Output to "7-segment LED" using python on Raspberry Pi 3!
What to do when python3 type venv does not work well on Raspberry Pi
Run AWS IoT Device SDK for Python on Raspberry Pi
Install Raspberry Pi OS (Raspbian)
[Python] Why pserve doesn't work
Detect "temperature (using A / D converter)" using python on Raspberry Pi 3!
Access google spreadsheet using python on raspberry pi (for myself)
Raspberry Pi + Python + OpenGL memo
Fcitx doesn't work on Flatpak
raspberry pi 1 model b, python
Introduced pyenv on Raspberry Pi
Use NeoPixel on Raspberry Pi
Install OpenCV4 on Raspberry Pi 3
Install TensorFlow 1.15.0 on Raspberry Pi
Control the motor with a motor driver using python on Raspberry Pi 3!
Resolved an error when putting pygame in python3 on raspberry pi
What to do if Python doesn't work on Git for Windows
What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1
Use python on Raspberry Pi 3 to illuminate the LED (Hello World)
How to play music (wav / mp3) files on Raspberry Pi python
SSD swap operation check for Raspberry Pi OS 64bit β version
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Testing uart communication on Raspberry Pi
Use vl53l0x with Raspberry Pi (python)
Installing Kivy on Windows10 64bit Python3.5
MQTT on Raspberry Pi and Mac
raspberry pi 4 centos7 install on docker
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install python2.7 on windows 32bit environment
Preparing python using vscode on ubuntu
Install ghoto2 on Raspberry Pi (memo)
OS setup with Raspberry Pi Imager
Try using ArUco on Raspberry Pi
Installing Kivy-Designer on Windows10 64bit Python3.5
OpenCV installation procedure on Raspberry Pi
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
pygame doesn't work on macOS Mojave
Power on / off Raspberry pi on Arduino
Install Python 2.7 on Ubuntu 20.04 (OS standard?)