Questions tagged [pycharm]

1

votes
0

answer
95

Views

Pycharm debugger skips breakpoints after specific line of code - why?

I'm new to pycharm and so far my impression of the debugger is that it's marverlous! However, it behaves weird in my code and I cannot figure out what is going wrong. If I set a breakpoint to these lines of code and then press 'step over' or 'step into my code' it runs until the end ignoring all ot...
Svenno Nito
1

votes
0

answer
87

Views

docker orchestration - connect to remote interpreter using pycharm

i'm trying to connect pycharm to docker remote interpreter, but the container is part of a cluster (specifically using AWS ECS cluster) i can not access the container directly i have to go through the bastion machine (the instance that is running the container do not have public IP) i.e to access th...
gCoh
1

votes
1

answer
236

Views

PyCharm Community DB console does not output table' content

My PyCharm IDE is something wrong. Select SQL statement does not output table's content in SQLite DB. It is outputed like '[STRING]' Of course table has contents. Is it because of Community Edition (2017.3)? If it is I don't know why JetBrains made DB console menu in community edition.
user2078626
1

votes
0

answer
173

Views

PyCharm | git pre-commit hook for inserting last change date causes that the file will be flagged as edited (which is the case). Workaround?

I tried to use a git pre-commit hook for inserting informationen about the datetime of the last change to each commited file. The script works fine, but... It seems that PyCharm resets the 'file-has-been-changed-flag' before the git hook executes. Therefore the inserting of the last-checkin-timestam...
sfx2k
1

votes
1

answer
29

Views

Intellij Pycharm: Display Plugins by Installation Time

In Intellij Pycharm: how can I sort the installed plugins by installation time? Background: since the installation of some plugins, the CPU consumption of Pycharm is significantly higher. Before I begin to dig into the analysis of the threaddump feature of the CPU plugin, I simply want to uninstall...
1

votes
0

answer
13

Views

Differenciate never-passed tests with regressions?

What's the best way to highlight failed tests that are regressions in the middle of a lot of never-passed (yet) tests? I'm using pycharm with python3.
Vincent J
1

votes
4

answer
1.4k

Views

PyCharm shows no output from pandas

Please go easy on me, its my first days trying to use python and I already have problem with setting up enviroment. When I use IDLE with code: import pandas as pd column_names = ['a,b'] dataset = pd.read_csv('abdataset', names = column_names, index_col = False) dataset shows the whole dataset in qui...
Mithrand1r
1

votes
0

answer
51

Views

PyCharm: Configuring Run command to execute python script having jupyter magic commands

Currently in PyCharm, using the Run command (shift + F10) to execute a script with jupyter magic commands fails giving a syntax error. Is there a way of editing the Run Configuration to execute such scripts with an error? I use the ipython console and execute selection to console (Alt + Shift + E)...
hrishi
1

votes
0

answer
51

Views

Pycharm type hinting window covers typed code

I have an annoyance with Pycharm. When I start typing anything in the window a little window appears (i'm pretty sure it's a type hinting window) and it covers up what I have typed: Under this window I have simply typed print() Anyone know how to move this so it does not block what I've typed? I d...
Shawn
1

votes
1

answer
3k

Views

Clearing user-created variables in Python

I am an absolute beginner in Python. I have been using R and Matlab for data analysis for quite some time. One of the great things about these languages (or tools) is that I could run clear all in Matlab or rm(list=ls()) in R to clear the variables I created. I could then continue to experiment with...
watchtower
1

votes
0

answer
51

Views

How to show pyspark docstrings in pycharm

Environment pycharm 2016.3.2 python 2.7 pip install pyspark in venv Some documents works well, But others are not work It is very wired, how to fix this?
okwap
1

votes
0

answer
87

Views

pyCharm: append(int) flagged correctly or not?

I've recently switchedfrom using a text editor to the PyCharm IDE, and while a minimal example is fine: def temp(): a_list = [[], []] value = int(5) a_list[1].append(value) print(a_list) However for this function: # replays is parsed json data. cache is a caching class for player stats def team_aver...
Baldrickk
1

votes
1

answer
98

Views

How to run a PyCharm project while passing environment variables from command line

I have an automation test framework built using Jython intertpreter in Pycharm. I'm using Sikuli and Selenium in this framework and I want to eventually start running this project from Jenkins. In order to do that, I want to get this running via command line first. But when I try running this via co...
anish
1

votes
0

answer
170

Views

how to contain error situation in pytest fixture (scope = “module”)

I recently started coding using pytest fixtures and have setup function which bring up and configures various nodes in the network. For writing automation test cases, creating setup is one time activity and is error prone as well. As this is one time hence, scope is set to 'module' or 'session' Whi...
Chirag Dhyani
1

votes
1

answer
810

Views

can't install numpy package in pycharm with latest pycharm and python 2.7

I installed Python 2.7, Pycharm 2017.3 and in pycharm in settings > project interpreter > add package I searched for numpy and installed the package but I get this error: Error occured: _configtest.c(7): error C2143: syntax error: missing ';' before 'volatile' Proposed solution: Try to run this com...
Meet Hadvani
1

votes
1

answer
546

Views

IntelliJ/PyCharm: Connection to localhost MySQL failed

I am using PyCharm to connect to my local MySQL database running at localhost port 3306. Here's my JDBC url in the 'Data Sources and Drivers' window as shown by PyCharm: jdbc:mysql://localhost:3306/mydb When I try to connect or click 'Test Connection' I am getting this error in IntelliJ: Error: Conn...
Babken Vardanyan
1

votes
1

answer
175

Views

Is it possible to use Karate with pycharm?

Is it possible to use Karate with pycharm? If not, what is the best alternative to Karate for python tornado REST APIs? https://github.com/intuit/karate
ehsan shirzadi
1

votes
0

answer
172

Views

Pycharm permanently blinking “Updating indices…” in statusbar and html file

I pasted a video link. These flashes only occur when HTML files are present. In Python only case, it did not happen when anaconda only project. It happens when django's project. Deleting HTML files stops them. Video Link: pycharm blinking OS: Windows 10 Softwares: pycharm version:2017.31build numb...
Jun Takahashi
1

votes
0

answer
56

Views

How to “Introduce local variable” in PyCharm

I am coming from IntelliJ IDEA background and used the 'Introduce local variable' feature a lot by clicking Alt+Enter on a non-declared-yet identifier. Now when I am using PyCharm I can't find that functionality in Alt+Enter menu. How can I enable this feature in in PyCharm? I know that Python isn't...
Babken Vardanyan
1

votes
0

answer
789

Views

'Error: Install jupyter notebook to the interpreter of the current project' in pycharm

I am trying to setup Pycharm IDE in my local machine using Anaconda3 environment. When I am running a jupyter notebook with some code its showing below error in the project configuration window: The red light Fix button even no luck. I have checked Jupyter notbook and its already installed. Here is...
0xalihn
1

votes
0

answer
264

Views

python 3.6.3 kivy error when runing the code

I just installed Kivy on ubuntu 17.10 with python3 version 3.6.3, when I tried to check if kivy works fine by running this code: import kivy from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self): # return a Button() as a root widget return Button(text='hello...
Blal swass
1

votes
1

answer
361

Views

ImportError: DLL load failed: The specified module could not be found. when importing cv2 in pycharm

I have installed opencv 3.4.0 and python 3.6.4 and pycharm. In pycharm I installed the numpy package. To add the python to pycharm, I copied the cv2.pyd file from the opencv to the python directory (in the DLLs folder and the site-packages folder). I get this error for the import cv2 line when I run...
prog
1

votes
0

answer
79

Views

How can I make PyCharm recognize Dockerfiles that are not called exactly Dockerfile?

In my project, there are several Dockerfiles. As they are in the same folder they can't all be named Dockerfile. PyCharm only styles the one named Dockerfile as Dockerfile. Dockerfile_1, for example, gets no styling and no inspections.
Anna Ira Hurnaus
1

votes
0

answer
82

Views

PEP8 inspection in PyCharm not working with Docker remote python interpreter

I use local python interpreter, pep8 work well and I see all warnings in my files. Then I switch to remote python interpreter from Docker, all warnings disappeared. Python on local and Docker: 2.7.12 Pycharm: PyCharm 2017.3.3 (Professional Edition) Build #PY-173.4301.16, built on January 11, 2018
Vân Phong Nguyễn
1

votes
2

answer
730

Views

load MIT-BIH Normal Sinus Rhythm Database in python

I am trying to load MIT-BIH Normal Sinus Rhythm Database (nsrdb) in python. I checked this tutorial: https://medium.com/@roszcz/machine-learning-for-medicine-qrs-detection-in-a-single-channel-ecg-signal-part-1-data-set-be36f70bbd38 However it is for loading MIT-BIH Arrhythmia database. The following...
Ahmad K Mostafa
1

votes
0

answer
22

Views

See last modification of variables in Pycharm Debugging session

I am using Pycharm to debug my python code. Is there any way, when stopped at a breakpoint, to see not just the values of the variables, but also what instruction/function set that value?
Nereida
1

votes
0

answer
63

Views

Pycharm says unresolved error when import but the code execute

I have a issue with Pycharm, that shows an error on importing local modules, even though it works. The working code for import is from response_generator import core Pycharm suggests from .response_generator import core When executing what pycharm suggest. Error received is: ModuleNotFoundError: No...
Christian Moen
1

votes
0

answer
192

Views

Use a single iPython console to run files and parts of code in PyCharm

I started using Pycharm and managed to have the python prompt running after a file is run (link) and I found how to run pieces of code in the current iPython console (link). For data science, however, it is very convenient to have a single iPython console/Python kernel where I can run files and code...
rpicatoste
1

votes
0

answer
77

Views

Force Python in Pycharm, Mac, to use Discrete AMD GPU

Does anyone know how(e.g. libraries) to force Pycharm(Python) to use a discrete AMD GPU in a mac? I'm using a 2016 Macbook Pro with Radeon 460, and I am in need to prime factorise this number, and I thought using the GPU would be faster: 8347879453436694939854738058201715370889272649572324043195256...
Ethan Shin
1

votes
4

answer
921

Views

Trouble importing python packages using PyCharm

I've been trying to install simple packages for python such as numpy and pandas, and while I am able to install the package manually from the command line using pip as soon as I try to import it PyCharm can't find it. I have manually configured the path, with no luck. PyCharm can also not find the p...
Jkind9
1

votes
1

answer
471

Views

PyQt5 Error in PyCharm IDE

I have PyQt5 Installed and I created a GUI and edited it using Sublime Text, Now I want to use PyCharm and I saw posts that you don't have to configure PyQt5, it is automatically detected by PyCharm. import sys from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import * from PyQt5.QtGu...
eibersji
1

votes
0

answer
125

Views

Show horizontal line separator between cell blocks in PyCharm

I am using the cell mode plugin in PyCharm to separate new cells at #%%. How can I make the PyCharm editor to show a horizontal line between adjacent cell blocks akin Spyder? #%% first cell def foo(): print('bar') ------------------ #this is what I want to see #%% second cell print('foo')
Abegaz
1

votes
1

answer
321

Views

Error installing PyQt5 library: unresolved reference

I'm trying to create a browser using Python and the library PyQt5 I installed correctly the library but i don't know why components can't be found. Is there a reason why the components can't be found? Thank you in advance This is my code import PyQt5 from PyQt5.QtCore import QUrl from PyQt5.QtWidget...
Filippo Momentè
1

votes
0

answer
39

Views

Find which PyCharm projects use a conda environment

For a directory /path/to/dir/, which contains multiple PyCharm projects in an arbitrary directory hierarchy, how can I which (if any) PyCharm projects are using a specific conda environment, without opening them all, but doing it programmatically? A sub-question would be, how to find out programmati...
Make42
1

votes
2

answer
40

Views

Cannot run my code for a chatbot application

Getting this error my input file is def get_data_from_file(file_path=os.path.('C:/Users/anees/chatbot_data.txt')): with open(file_path) as infile: cleaned_lines = [line.strip() for line in infile if not line.startswith(('$$$', '###', '==='))] return cleaned_lines Error C:\Users\anees\Anaconda3\envs...
aneesh kulkarni
1

votes
0

answer
114

Views

How to continue when Python in Pycharm executes a command line process waiting on pause

I am using PyCharm to debug a piece of python code. The python code executes a command line exe file which we wrote. The exe program initially paused because it waits on a keypress, so we can attach the process for debug purpose. When we run in cmd window, we can see the message and press any key...
Splash
1

votes
0

answer
26

Views

In pycharm, how do you insert documentation comments for the whole file

In phpstorm you just press cmd + N and there is an option to Generate PHPDoc blocks for all methods in the file and it automatically takes into account type hinting. so: function(param1:str): array { will automatically have in docstring @param1:str @return:array I cannot find how to do this in pycha...
Claudiu Creanga
1

votes
1

answer
402

Views

How to run bash files in IDE like pycharm on OS “Bash on Ubuntu on Windows10”

My OS is win10 X64, and I have installed Bash on Ubuntu on Windows. My IDE is Pycharm2017, and I have installed bash-plugins like BashSupport, Shell Process. My test file helloworld.sh has codes like this: #!/usr/bin/env bash echo 'Hello, World!' When I run this script in Pycharm, the result like...
Allis Gao
1

votes
0

answer
47

Views

How can I import a module from a parent directory?

I have the following directory structure for my Python project: lib __init__.py tasks.py api(directory) __init__.py app.py Now, I want to import the tasks module into app.py. If I just type import tasks it magically works in Pycharm, but when executed via bash I get an error message saying 'No modu...
Gasp0de
0

votes
0

answer
5

Views

Program exits at import statement with code -1073741819

I have created a small python project in pycharm with 3 files. The main file which I try to run exits with code -1073741819 (0xC0000005). After some investigation, it turns out the lines which cause problem are the following import statements import numpy as np from FileA import ClassA from fileB im...
zineb filali

View additional questions