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
7
votes
1 answer

How can I fix my pyCharm installation?

When I start pyCharm I get this error msg: Load Settings Cannot load settings from file 'C:\Users\cleanup\.PyCharm40\config\options\editor.codeinsight.xml': content truncated File content will be recreated What can I do about it?
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
7
votes
1 answer

How to use PyCharm and WebStorm in the same editor

I'm working on a project involving python and javascript (react). I would like to know if someone knows a way to use pycharm and webstorm in the same editor or if there is a plugin to add react support to PyCharm. Thanks for your help.
Alexis Benoist
  • 2,400
  • 2
  • 17
  • 23
7
votes
3 answers

Cannot import cv2 in PyCharm

I am working on a project that requires OpenCV and I am doing it in PyCharm on a Mac. I have managed to successfully install OpenCV using Homebrew, and I am able to import cv2 when I run Python (version 2.7.6) in Terminal and I get no errors. The…
7
votes
2 answers

How can I get pycharm to NOT auto-insert a closing docstring?

I hate anything in any IDE that inserts anything that I haven't explicitly told it to. Accordingly, I've turned off all of the auto-complete and auto-insert I can find, but I cannot find out how to kill this for docstrings. I type """ and press…
Jack Aidley
  • 19,439
  • 7
  • 43
  • 70
7
votes
1 answer

Pycharm 3.4.1 - "AppRegistryNotReady: Models aren't loaded yet". Django Rest framewrok

I'm using DRF and Pycharm 3.4.1 and Django 1.7. When I try to test my serializer class via Pycharm django console, it gives me the following error: Code from items_app.serializers import ItemSerializer s = ItemSerializer() print(repr(s)) then cause…
Hadi
  • 5,328
  • 11
  • 46
  • 67
7
votes
4 answers

PyCharm can't find a reference yet it definitely exists

I'm trying to use a thing in numpy.random which I import using from numpy.random import normal. PyCharm tells me this is an unresolved reference despite being able to find other things in numpy.random such as numpy.random.random. Whenever I open up…
Nanor
  • 2,400
  • 6
  • 35
  • 66
7
votes
2 answers

Adding external libraries in PyCharm Professional 4

I'm trying to add external libraries to my project, but there seems no way to do so in PyCharm 4 (Professional). I found several similar questions with accepted answers, however those seem only work on older PyCharm versions. This is one example:…
tamasgal
  • 24,826
  • 18
  • 96
  • 135
7
votes
3 answers

python module not working in PyCharm with virtualenv

Currently i have a virtualenv created with the virtualenvwrapper. In that virtualenv i installed the cx_Oracle extension with pip install cx_Oracle. I have a python script using several commands from cx_Oracle like connect and such. When running…
7
votes
3 answers

Pycharm, PyQt5, and Python 2.7 -- No code completion

I've got: Python 2.7 (Anaconda x64), which works great PyQt5 (installed using pip install python-qt5) PyCharm 4.04 Professional (recently upgraded from 3.4.1) A small Qt application After much hair-pulling (since Riverbank doesn't provide a PyQt5…
Matt Merrifield
  • 417
  • 6
  • 14
7
votes
2 answers

Are Mixin classes abstract base classes

Are Mixin classes abstract base classes? In the example below, the calls to test_base would fail because python wouldn't be able to resolve self.assertEqual for example. Also, is PyCharm incorrect as flagging Mixin classes like the one below has…
smithy
  • 417
  • 1
  • 7
  • 14
7
votes
0 answers

PyCharm: Debug Django Forms clean() override

I overrode clean() in a derived forms class: def clean(self): self.user = None cleaned_data = super(LoginForm, self).clean() username = cleaned_data["user_id"].lower() But the debugger isn't stopping on breakpoints that I set within…
Mark Olbert
  • 6,584
  • 9
  • 35
  • 69
7
votes
1 answer

How to document kwargs using epytext for the auto completion hinting in PyCharm?

Is is possible to get an additional hint for kwargs, which will give you examples of predefined possible keyword arguments? Maybe epytext is not supporting it? class Person(): def __init__(self, **kwargs): """ @param name: Name …
MagSec
  • 346
  • 4
  • 17
7
votes
2 answers

Unresolved attribute reference 'objects' for class 'Foo' in PyCharm

Why am I seeing this warning for a class which is a subclass of models.Model (Foo is defined as class Foo(models.Model))? This is wherever I use Foo.objects.filter(...). Responding to request for more detail with a simplified example: # ------…
Mitch
  • 2,350
  • 7
  • 29
  • 48
7
votes
1 answer

pyCharm Debugging: skip framework code

Is there a way to tell pyCharm that it should skip framework code? The debugger should skip all lines which are not from me. In my case it is very easy to tell which code I want to debug and which not: Code in virtualenv lib should be skipped Code…
guettli
  • 25,042
  • 81
  • 346
  • 663
7
votes
4 answers

Pycharm 3.4 won't run on Yosemite

Pycharm 3.4 (fresh install) will not run on Yosemite with Apple JDK 1.6: Crashed Thread: 32 Java: AWT-EventQueue-0 Dyld Error Message: Symbol not found: _CGContextSetAllowsAcceleration Referenced from:…
abolotnov
  • 4,282
  • 9
  • 56
  • 88