pydev

Python/Flask: Application is running after closing

折月煮酒 提交于 2021-02-19 08:06:11
问题 I'm working on a simple Flask web application. I use Eclipse/Pydev. When I'm working on the app, I have to restart this app very often because of code changes. And that's the problem. When I run the app, I can see the frame on my localhost, which is good. But when I want to close this app, just click on the red square which should stop applications in Eclipse, sometimes (often), the old version of application keeps running so I can't test the new version. In this case the only thing which

Python/Flask: Application is running after closing

♀尐吖头ヾ 提交于 2021-02-19 08:06:06
问题 I'm working on a simple Flask web application. I use Eclipse/Pydev. When I'm working on the app, I have to restart this app very often because of code changes. And that's the problem. When I run the app, I can see the frame on my localhost, which is good. But when I want to close this app, just click on the red square which should stop applications in Eclipse, sometimes (often), the old version of application keeps running so I can't test the new version. In this case the only thing which

How to reset python interpreters in PyDev?

半腔热情 提交于 2021-02-11 12:33:34
问题 I saved two python interpreters in PyDev a year ago or so. Since then I've uninstalled those interpreters from my system (they were python 2.7) and installed a new one python 3.6. Every time I restarts eclipse, PyDev loads my old interpreters. Then I have to go into the settings, remove then, apply and save, then add the new interpreter. Adding a new interpreter takes around 10 minutes because it needs to update the PYTHONPATH and load all modules. During this 10 minutes, I'm unable to use

pylint not recognizing some of the standard library

为君一笑 提交于 2021-02-06 15:15:52
问题 I'm using pylint + pydev, with python 2.6. I have a module with just this line of code from email import Message Now when I try to run this module it runs fine. But pylint reports an error: ID: E0611 No name 'Message' in module 'email' Although it exists... Any idea why? 回答1: I like pylint, but I do find I have to use a lot of # pylint: disable-msg=E0611 and the like to make it shut up in cases that are perfectly correct but confuse it (for example, like in this case, due to email 's playing

pep8 warning on regex string in Python, Eclipse

雨燕双飞 提交于 2021-02-04 09:23:29
问题 Why is pep8 complaining on the next string in the code? import re re.compile("\d{3}") The warning I receive: ID:W1401 Anomalous backslash in string: '\d'. String constant might be missing an r prefix. Can you explain what is the meaning of the message? What do I need to change in the code so that the warning W1401 is passed? The code passes the tests and runs as expected. Moreover \d{3} is a valid regex. 回答1: "\d" is same as "\\d" because there's no escape sequence for d . But it is not clear

Error: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试

巧了我就是萌 提交于 2021-01-31 00:31:12
创建了一个Django项目,但是运行时报错 "D:\Program Files (x86)\JetBrains\PyCharm 2016.2.1\bin\runnerw.exe" D:\Python35-32\python.exe "D:\Program Files (x86)\JetBrains\PyCharm 2016.2.1\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 52288 --file D:/PycharmProjects/MyDjangoProject/manage.py runserver 8000 pydev debugger: process 4888 is connecting Connected to pydev debugger (build 162.1628.8) pydev debugger: process 5360 is connecting Performing system checks... System check identified no issues (0 silenced). You have 13 unapplied migration(s). Your project may not work properly

pydev coverage: pytest and local pytest plugin running in two separate processes, talking over http

坚强是说给别人听的谎言 提交于 2021-01-29 17:40:40
问题 All started here: https://github.com/pytest-dev/pytest-cov/issues/425 I can say by now that I have a working solution on my terminal, so when I run: pytest --cov views --cov db --cov-report term-missing:skip-covered -sv ==================== test session starts ==================== platform darwin -- Python 3.7.6, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- /usr/local/Caskroom/miniconda/base/bin/python cachedir: .pytest_cache rootdir: /Users/alan/myproject plugins: xdist-1.33.0, forked-1.2.0, cov

“Go to definition” from PyDev not work in External Library files

放肆的年华 提交于 2021-01-28 16:44:58
问题 When I am in certain files, for example, External Library files, I am getting this behavior where the Go To Definition command jumps me to the import statement at the top of the file instead of opening the file with the real definition. For example, I'm in an external library, (jumped here using Go To Definition), and from here, I again want to jump, so I put the cursor on the return statement on the Something token and hit "Go To Definition"... from external.library.mod import Something ...

“Go to definition” from PyDev not work in External Library files

北城余情 提交于 2021-01-28 16:43:28
问题 When I am in certain files, for example, External Library files, I am getting this behavior where the Go To Definition command jumps me to the import statement at the top of the file instead of opening the file with the real definition. For example, I'm in an external library, (jumped here using Go To Definition), and from here, I again want to jump, so I put the cursor on the return statement on the Something token and hit "Go To Definition"... from external.library.mod import Something ...

PyDev doesn't recognise PyQt5

眉间皱痕 提交于 2021-01-27 16:15:46
问题 I am following a tutorial on pyqt, and got this code: import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class Example(QWidget): def __init__(self): super(Example, self).__init__() self.initUI() def initUI(self): cb = QCheckBox('Show title', self) cb.move(20, 20) cb.toggle() cb.stateChanged.connect(self.changeTitle) self.setGeometry(300, 300, 250, 150) self.setWindowTitle('Checkbox') self.show() def changeTitle(self, state): if state == Qt.Checked: