Most voted "pycharm" questions
Use when the question involves using the Pycharm IDE.
Learn more…73 questions
Sort by count of
-
5
votes5
answers11566
viewsHow to find the type of a variable given by the user?
I would like to ask the user to type something and find out what kind of what he wrote. So far I only know the input(), but the input() only returns the type String. If I put int(input()) or…
-
4
votes2
answers1077
viewsImplement abstract method in Python inheritance
Be the following class hierarchy, where class "A" has an abstract method called "foo": # -*- coding: utf-8 -*- import abc class A: __metaclass__ = abc.ABCMeta def __init__(self): pass…
-
3
votes1
answer1155
viewsImport python C++ modules
I’m trying to import into one script python a module C++: import hector_path_follower The archive c++ defines a namespace for the class: namespace pose_follower { class HectorPathFollower { ... } }…
-
3
votes1
answer49
viewsSimplficando chained comparisons
According to pycharm (which is with the default settings for pep8) says it is possible to simplify this line. elif student['averange'] >= 5 and student['averange'] < 7: student['situation'] =…
-
2
votes1
answer71
viewsOauth v2 in Django 1.4
Friends, I am studying how to implement the Oauth v2 protocol in my application. I’ve done a lot of research here, and I haven’t found anything that could solve my problem. So far I have a database…
-
2
votes2
answers3426
viewsImporting library in python
I am unable to import any library in python using pycharm. When I type, for example, the command import time, the words turn gray and bring nothing.
-
2
votes1
answer65
viewsHow do edits count during debug?
When I am debugging a code in Pycharm (Shift+F9) and make some changes, it is not recognized during the same debug session. I am obliged to restart the debug again for the changes to be recognized.…
-
2
votes1
answer585
viewsError: "illegal target for variable Annotation" using "@Property"
Like pygame does not have a function similar to the library SFML -> View, I am developing a "camera" format to scroll the screen and preserve the positions of objects within the general…
-
1
votes2
answers776
viewsError while interpreting special characters
I’m looking for an element, and so far so good, I’ve tested it again and again, but.. by using this code driver.find_element_by_xpath('//*[@data-qtip="Configurações"]').click() gives an error, and…
-
1
votes3
answers2141
viewsPycharm with underlined code
I am using the Color appearance in pycharm the problem that my comments get with underlined lines as if it were automatic correction of word(hate it) with large codes that is mt boring. Someone…
pycharmasked 8 years, 1 month ago Bruno L. Moura 21 -
1
votes1
answer3068
views -
1
votes1
answer519
viewsIDE to the Django?
Good evening guys, I’m having big problems with some ides, and I need your advice. I’m trying to program web projects in python, so I installed pycharm to work... It’s a great IDE at first, but it…
-
1
votes1
answer2511
viewsHow to activate automatic line breaking in Pycharm?
Hello I would like to know how to activate the automatic line break in Pycharm, as we do in the notepad.
-
1
votes2
answers723
viewsAutocomplete doesn’t always work on Pycharm
I am starting the use of Pycharm, creating a test with Pygame. I realize that some Pygame methods do not appear in Pycharm Autocomplete. For example, if I want to put one pygame.mask.from_surface(),…
-
1
votes0
answers67
viewsError running setup.py on Pycharm
Hello, every time I try to run a file setup.py find the following error: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py…
-
1
votes1
answer72
viewsHow to use Pyopengl in pycharm
I did the correct installation of Pyopengl and Acellerate. I can easily use the libraries in python 3.7.2 IDLE, however when I try to import them using the Pycharm IDE I cannot use the libraries.…
-
1
votes2
answers544
viewsYellow comment on Pycharm when using the term "all"
I wonder why my comment gets the yellow color. It always happens when I use the word 'all'.…
-
1
votes1
answer2061
viewsDjango: Modulenotfounderror: No module named
I have the following problem between two apps, in which I call a model from an app (app1) in a view from another app (app2) Projeto ├ APP1 └ APP2 View from APP2: from projeto.app1.models import…
-
1
votes2
answers2094
viewsOpen Python file only works with Windows folders in English
I have a Python program that asks the user for a file path and shows the contents of the file on the screen. The problem is that the code only works when I put the names of Windows folders in…
-
1
votes1
answer58
viewsIMPORT ERROR - No module named dlib
I installed dlib, opencv and Pillow through Anaconda, creating a enviroment, but when I will import dlib the following error happens: No module named dlib. I’ve already deleted the interpreters and…
python-3.x opencv dll artificial-intelligence pycharmasked 5 years, 6 months ago Marcos Paulo S. Rezende 351 -
1
votes0
answers278
viewsDJANGO error: Django.core.exceptions.Improperlyconfigured in the initial tutorial!
I’m a beginner in Python and I’m doing the Django tutorial and using Pycharm as IDE. When I run the command from the internal Pycharm console: from polls.models import Question it returns me the…
-
1
votes5
answers2318
views -
1
votes1
answer43
views'End of statement expected' pyCharm error
I have a very simple method, which takes a Boolean parameter and changes a global one to the negated value of the parameter. However, using the Pycharm IDE, it returns an error in the snippet global…
-
0
votes1
answer1500
viewsUnused import statement - Pycharm
When trying to import using Pycharm: from selenium.webdriver.common.alert import Alert it leaves the text in gray, and shows unused import statemnet. tried to use the: # noinspection…
-
0
votes1
answer594
viewsHow do I print the location (row and column) of the highest value within an array?
Good morning, I’m not able to complete my code, I’ve already used For i in range and for j in range, but I can’t complete the code because I need to store the result in another variable and then see…
-
0
votes2
answers3540
viewsFactor factor in python,
Guys, I’m new to programming, and doing exercises I came across the following question: Make a program that calculates the factorial of an integer number provided by the user. Ex.: 5!=5.4.3.2.1=120…
-
0
votes0
answers47
viewsCall error of a Python application (+Opencv) in Visual Studio 17 (C#)
I’m trying to make a "control panel" that each button will call a Python application(+Opencv) but when I run it through the Pycharm IDE, or straight from the folder, it runs perfectly, but when I…
-
0
votes0
answers45
viewsIDE Pycharm on Windows
I already have a habit of using Pycharm over GNU/Linux, and by force majeure I will have to use it over Windows. The problem is this: When running the python script from the IDE, a python Crawler,…
-
0
votes1
answer152
viewsHow can I create a dynamic database in Pyhton
Could someone help me on how to create a dynamic database, where I can add and remove items? In Python, if possible with Sqlite
-
0
votes1
answer375
viewsWhy doesn’t Pycharm show the methods of a class?
I want to know why Pycharm doesn’t show the methods of a class by pressing control + space. Normally IDE’S show all methods present in the class. In the image below I show what the IDE suggests of…
-
0
votes1
answer310
viewsOutput print is not showing
I typed exactly that: import math num = float(input('Digite um numero: ')) print('A parte inteira do numero {} é {}.'.format(num, math.trunc(num))) However, when executing, only this appears: Digite…
-
0
votes2
answers111
viewsList in HTML table separated by category
I am in a development using Python and Django and as IDE pycharm. I have a list coming via Rest by mobile, with the name 'Athletes', and comes with the columns "name", "category", "time". I would…
-
0
votes1
answer741
viewsError in pycharm
Good morning, everyone, In "file>Settings>project: ... > project interpreter" the environment has been configured: "/home/Brito/projetos/venv/saj_projects/bin/python" And I’m experiencing…
-
0
votes1
answer311
viewsHow to reverse the association of one file to open with another in Pycharm
I picked up a song I copied and glued to the pycharm. The song was not recognized, appearing the option Associate with file type, when I clicked associated the program to youtrack query , as I do to…
-
0
votes0
answers37
viewsRead CSV file using as delimiter the character "?"
When I download a CSV file in Windows (Pycharm) from the school, it works, but when I download it in Macos at home (Pycharm), it comes out with characters below:…
-
0
votes1
answer103
viewsVariable declaration in Python
I have a question regarding the creation of variables in Python using Pycharm, always when I declare a variable a green underscore is displayed and the message that appears is: Type: In Word…
-
0
votes1
answer486
viewsDjango.contrib.auth import views || Login Authentication and url redirection
I’m trying to use Django’s libraries to check if the user is logged in, and only then can he log into the pages of my website. I’m coding according to some Internet classes, in his example was…
-
0
votes2
answers322
viewsSwitch from insertion mode to typing cursor mode?
When I open a new file in Pycharm the cursor is as if I had clicked on the Insert key, someone knows how to solve?
-
0
votes0
answers82
viewsPycharm Error Special Character Tremble
I’m having a problem with my Mac’s ABNT keyboard when using Pycharm (only with it). When typing simple quotes (') it presents a special character (square and not recognized), which disturbs at the…
-
0
votes1
answer62
viewsHow to place the value of an input inside a "cell" of a SQLITE3 table, with Python?
Hello, I’m a beginner in programming and, learning about the SQLITE3 library, in Python, I came across a problem and even after a lot of research I did not find the solution. I would like to be able…
-
0
votes2
answers341
viewsProblem with pandas in pycharm
I am using pandas to import an excel file, however, the following error appears: Cannot find Reference 'read_excel' in 'pandas.py' import pandas as pd dados =…
-
0
votes0
answers35
viewsProblem deleting Discord.py positions
I was taking a test and the next thing I knew, I was creating a lot of positions to do tests, only I tried to do it to erase and I couldn’t. Does anyone have any idea how to help me? @client.event…
-
0
votes1
answer53
viewsScript created in Pycharm closes by pressing the "enter" key inside the terminal
Here’s the thing. I’m new in the middle of programming. I use Pycharm to study python. When I try to run a script created in Pycharm by IDLE, just after I hit the "enter" key the window closes.…
-
0
votes0
answers14
viewsPermision Dennied Pycharm Docker
I am trying to run Docker from inside Pycharm and get the following error: Permissionerror: [Errno 13] Permission denied:…
-
0
votes1
answer443
viewsDiscord.py error in on_message
I was programming and came across the following error, if I have only @client.command(), codes work, but if you already have a @client.event with on_message, it works only the event. I already tried…
-
0
votes1
answer142
viewsPycharm displays object class instead of the object itself
Hello, I am training the use of some packages in Python 3.x, and use Pycharm Community 2020.3.3. When I try to customize graphs and tables using packages like pandas and Seaborn Pycharm does not…
-
0
votes1
answer70
viewsI’m having trouble with the smtplib
The code only works when the subject and message(body) of the email are written in a few letters, I have no idea what it might be. import smtplib import config def send_email(subject, msg): try:…
-
0
votes0
answers55
viewsI’m failing to change the display of the impact field from numerical to a special character
from bs4 import BeautifulSoup import requests import time headers = requests.utils.default_headers() headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:79.0) Gecko/20100101…
-
0
votes0
answers44
viewsHow do you solve the problem when plotting the image in Pycharm using Matplotlib?
I am having trouble displaying the image/graph using pycharm community, when I run the code I get the following error message: UserWarning: Matplotlib is currently using agg, which is a non-GUI…
-
0
votes0
answers30
viewsI cannot install Packages because my Pip is outdated and my Pycharm does not have enough permissions to perform the upgrade
I was trying to install the core but when I typed the following command pip install core I came across the following mistake ERROR: Could not find a version that satisfies the requirement core (from…