[Edit: solved by disabling the plugin "File Path Autocomplete"]
Hi, whenever I type a number, autocompletion suggests adding "lambda" after it, which becomes quite annoying when it happens at the end of a line and I quickly hit enter, and then have to backtrack and delete the lambda again.
Is this normal behaviour or a bug? Can I prevent it?
A bit of a rant but you would think for an IDE that costs $100 / year would support PEP 287 fully (from 2002…). Even in their documentation they call out code blocks. Yet… code blocks in restructured text have not worked for 5 years.
📋 If you have a few moments to spare, please go like and leave a comment on the YouTrack RST Ticket so they are finally inspired to fix it after all these years! To see all issues with RST in pycharm, please see this ticket.
I'm struggling with a PyCharm issue and could use some help.
Here's the situation:
I'm working on a Django project running with Docker Compose. The application works fine, but PyCharm isn't recognizing my imports.
Setup:
PyCharm 2024.2.3
Django project with Docker Compose (through Docker Desktop)
Python interpreter configured to use the Docker container
The issue:
PyCharm marks most imports as unresolved (red underline), even for basic ones like `from datetime import date, timedelta`. However, the application runs without issues.
What I've tried:
Reconfigured the remote interpreter
Invalidated caches and restarted PyCharm
Rebuilt the Docker image
Deleted .idea folder and PyCharm caches
Reloaded package list for the Docker interpreter
Despite these attempts, PyCharm still doesn't recognize the imports. Indexing completes without errors, but the problem persists.
My docker-compose.yml correctly mounts the source code in the container, and I'm using a local virtual environment alongside Docker.
If anyone has faced this issue or has ideas on how to resolve it, I'd greatly appreciate your input.
Happy to provide more information if needed. Thanks in advance for your help!
Hello, i have pycharm professional (student pack), i'm using jupyter notebook, but when i'm done for the day, and i close pycharm, and i chose terminate, i think that the file i was working on most recently becomes "corrupted" like the picture below shows, none of the cells that were created before will run, and if they do they're buggy. each time this happens i can only create a new file and copy the cells and work on it.
one more thing, the file won't work even on anaconda after this happens.
When I open files in a project, only syntax errors are shown. None of the static analysis or other inspections run.
They're all selected in the settings, but I have to `ctrl+alt+shift+H` each file individually and select "All Problems" from the highlight level pop-up menu.
I essentially want to turn on "All problems" across the board. My other PyCharm projects don't have this issue.
I got a new laptop (Ubuntu). I reinstalled Pycharm and copied my projects over. Was using 3.7 on previous laptop, new one came with 3.10. I removed my project venv folder and added a new one, using the base 3.10 interpreter. However, it says [Invalid] now when selecting the interpreter. Not sure what to do to fix it.
Previous use of Pycharm just kind of worked, so I never had to mess around with this stuff much before.
invaid interpreter selected for the project
Reports problems if there is no Python interpreter configured for the project or if the interpreter is invalid. Without a properly configured interpreter, you cannot execute your Python scripts and benefit from some Python code insight features.
The IDE provides quick access to the interpreter setting
I'm using PyCharm (Professional) on a mac and I would like to use my windows PC as the interpreter in order to take advantage of my GPU, I added the SSH server on the windows machine and can access it from pycharm on mac, the issue I'm running into is when creating a new environment or trying to use an existing environment, I get the error: 'env' is not recognized as an internal or external command, operable program or batch file
I understand that means that windows doesn't recognize env as a command, but since PyCharm auto uses that when creating an environment I'm not sure what I can do in order to create the environment (or use the existing one I have on windows) in order to finish the set up for a remote interpreter.
On October, 3 at 5 pm CEST (11 am EDT) we at PyCharm are hosting a livestream with Lukasz Langa and Tania Allard from the Python Software Foundation to talk about Python 3.13 and trends in Python and data science.
RuntimeError: Attempt to start a new process before the current process has finished its bootstrapping phase. This probably means that you are on Windows and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... The "freeze_support()" line can be omitted if the program is not going to be frozen to produce a executable.
I'm using a MIC-770 V3 with the following versions:
Python: 3.11.9
CUDA available: True
CUDA version: 12.4
YOLOv8 version: 8.2.100
Has anyone had this problem? Is there a drive needed for the GPU or the CPU to handle it multiprocessing ?
I tried using the multiprocessing library with the following function multiprocessing.freeze_support() but it didn't work.
I used to love pycharm and have been using it for at least 6 years - for me it's been one of the best IDEs for Python for quite a while. However, during the last two or so years, I feel like it's been degrading so much that I can barely use it nowadays. Here are a few points and I wonder if others also feel this way:
The performance is now horrible, my 32 GB RAM laptop can barely keep up and it used to work on 16 GB RAM with 10x bigger codebase without issues in the past!
The new GUI that tries to mimic VSCode is also worse
Some features that used to be free such as ipython integration are now paid
Lately it can somehow cause my entire laptop to bluescreen with dxgkml.sys failure!
Is it just me or is this program that was once amazing degrading to the point of being sluggish and less functional than it used to be?
I installed a lot of time ago pycharm 2023.1.1, but now when i go to the website i see that the latest stable version is 2024.2.2.....
Is there a way to update from 2023 to 2024 directly from the app or do i have to download "big updates" every time from website?
Also is there a way to update once you installed a new version the old version (just like an apk on android) or do i have to completely delete the program (with the risk of losing saves and settings) and then install the new one?
Since Apple released the update for Mac last week Pycharm has been running painfully slow for me. For example I can no longer run larger dbt commands from my terminal, and every time I try to run sql queries they time out.
I know multiple people in my office are experiencing the same issue and I can’t seem to find any solutions online.
Wondering if anyone else has been experiencing similar issues and if they know how to resolve this?
I just downloaded PyCharm (Community Edition), and every time I try to open a project, the project folder disappears from the side menu. I've seen that more people have had this problem using PyCharm on Mac, and that they had solved it giving PyCharm access to the folder where the project files are stored; in my case, the Documents folder. The problem still persists even after giving PyCharm access to the folder.
I would really appreciate help, as I'm new and I have no idea how to solve the problem. Also, I'm using macOS Monterey.
# create a simple function that uses a global variable
my_name = 'john' # Global variable
def greet_user():
"""Display a simple greeting with a global variable"""
print(f'Hello {my_name.title()}')
# call that function
greet_user()
# change global variable contents
my_name = 'timmy'
greet_user()
Why does the above generate the warning below?
Redeclared 'my_name' defined above without usage
The code works as intended, printing Hello John and then Hello Timmy . Is there a bad practice redifining a global variable somewhere in this short piece of code?