Questions tagged [pycharm]

PyCharm is an integrated development environment (IDE) for Python. It is developed by JetBrains for Windows, Mac OS X and Linux. DO NOT use this tag on questions regarding code which merely happens to be written using PyCharm, use the appropriate language tag [python] instead.

PyCharm is an integrated development environment (IDE) for Python, developed by JetBrains. It is available on Windows, OS X and Linux.

It provides support for common Python frameworks such as Django, Flask, Pyramid and others.

Starting with version 3, a free and open-source edition of PyCharm was released; along with a professional (paid) edition.

If you have found a bug, it is usually better to report it at the public bug tracker.

For more information, browse the following:

  1. The official product page.
  2. The public bugtracker.
  3. Product blog.
  4. Support page.
16686 questions
6
votes
2 answers

PyCharm error - Error loading project: Cannot load facet Python

I have fresh installed Python and PyCharm and am unable to run some Python files in PyCharm as this error is displayed immediately when loading up the project. I have no idea what the problem could be as the only other times this seems to appear is…
James
  • 749
  • 1
  • 9
  • 22
6
votes
0 answers

Process finished with exit code 137 (interrupted by signal 9: SIGKILL) : Retrieving image data

I am extracting features from face images and then comparing features with other image using different similarity metrics. Previously, the list of images name is small and it works fine. The whole list which represented each image i put those list…
Khawar Islam
  • 2,556
  • 2
  • 34
  • 56
6
votes
0 answers

PyCharm cannot find reference to OpenCV

Okay, so after installing OpenCV and Numpy both on my machine, and also enabling and installing them again in Pycharm, I still get the error when writing the OpenCV code (no autocomplete). This is the erro: Cannot find reference 'imshow' in…
arbiter
  • 421
  • 7
  • 29
6
votes
1 answer

How to skip lines in Pycharm debug mode with Python?

Let's say I put a breakpoint in the first line. I see no option to simply skip the 2nd line and jump straight to the print statement. Is there any hidden option? If not, what is the most non-intrusive way? Commenting out the lines I don't wanna run…
Chris
  • 951
  • 10
  • 26
6
votes
3 answers

Convert .py to .ipynb file in pycharm

As Jupyter Notebook integration is available in PyCharm professional, is there a GUI option to convert a .py to a .ipynb file? I tried to edit the file extension, e.g. from test.py to test.ipynb, but then I can't open the .ipynb file.
mouwsy
  • 1,457
  • 12
  • 20
6
votes
1 answer

Exclude file names with pattern from PyCharm search

I have a large number of auto generated code files that are identifiable by the having _pb2 in the file name. When I search using PyCharm CTRL+Shift+F I can use a file mask. I would like for instance to find all Python files *.py that do not have…
Epic
  • 572
  • 2
  • 18
6
votes
1 answer

ModuleNotFoundError: No module named 'sksurv' in python

I am trying to run survival analysis in python (pycharm) in linux, here is a part of the code import numpy as np import matplotlib.pyplot as plt #matplotlib inline import pandas as pd from sklearn.impute import SimpleImputer from sklearn.pipeline…
user12035904
6
votes
0 answers

Profiling module in PyCharm

Following up on this question: Create a PyCharm configuration that runs a module a la "python -m foo" Running and debugging modules works great for me with the new option from 2018.1, for which you can now specify a module to run. However, profiling…
The_Fallen
  • 257
  • 1
  • 3
  • 10
6
votes
2 answers

Upgrading pycharm venv python version

I have python 3.6 in my venv on PyCharm. However, I want to change that to Python 3.8. I have already installed 3.8, so how do I change my venv python version? I am on windows 10. Changing the version on the project intepreter settings seems to run…
weasel
  • 534
  • 1
  • 5
  • 18
6
votes
0 answers

Python list of Literal type check error (same for dict with Literal keys) in PyCharm

I'd like to use advantages of Literal type hints in Python, but it seems that Literal is not recognized correctly as dict keys or in lists: from typing import Literal, Dict, List T = Literal['foo', 'bar'] L = List[T] D = Dict[T, int] q: T = 'foo' …
Anton Ovsyannikov
  • 1,010
  • 1
  • 12
  • 30
6
votes
1 answer

Conda uses .local packages

I feel like this is a basic question, so feel free to direct me to any resources: My conda environment uses .local ahead of the package version specified in the yaml file for any package that exists in local. How do I get it to ignore .local, if…
Python Developer
  • 551
  • 1
  • 8
  • 18
6
votes
1 answer

PyCharm Debugger Stuck on "Collecting Data"

So I installed the free version of PyCharm professional last week and have been encountering the problem where I am debugging code on a remote server and when I try to display variables, it simply says "collecting data" and then if I try to continue…
6
votes
0 answers

How to debug Odoo application in docker with PyCharm

DockerFile FROM odoo:12.0 # Setup with root USER root # Set default user when running the container USER odoo # Copy source code to image COPY ./addons/ /mnt/extra-addons/ EXPOSE 8069 docker-compose.yml version: '3.2' services: odoo: …
tom10271
  • 4,222
  • 5
  • 33
  • 62
6
votes
1 answer

PyCharm fails to connect to SQLite: SQLITE_BUSY, (database is locked)

I'm trying to use PyCharm's database tools to connect to a SQLite db. When I test the connection, it is successful, but when I try to sync to the db, I get: [5] org.sqlite.SQLiteException: [SQLITE_BUSY] The database file is locked (database is…
Eric Wilson
  • 57,719
  • 77
  • 200
  • 270
6
votes
1 answer

AttributeError: partially initialized module 'boto3' has no attribute 'resource' (most likely due to a circular import)

Im using Pycharm and installed boto3 package and tried to import boto3 and got attribute error. Python.exe file path is given in project interpreter import boto3 s3 = boto3.resource('s3') AttributeError: partially initialized module 'boto3' has no…
harsha kazama
  • 159
  • 2
  • 4
  • 18