pydev

After upgrading eclipse, aptana, pydev, Debugger not working

雨燕双飞 提交于 2019-12-18 09:15:18
问题 I upgraded eclipse from 3.6 to 4.2 and Aptana from 2 to 3 with pydev Now I cannot get the debugger to work. I get the following errors: Traceback (most recent call last): File "C:\Google\eclipse\plugins\org.python.pydev_2.6.0.2012062121\pysrc\pydevd.py", line 4, in <module> from pydevd_comm import CMD_CHANGE_VARIABLE, \ File "C:\Google\eclipse\plugins\org.python.pydev_2.6.0.2012062121\pysrc\pydevd_comm.py", line 78, in <module> import pydevd_console File "C:\Google\eclipse\plugins\org.python

Configuring App Engine path for PyDev on Mac

拟墨画扇 提交于 2019-12-18 05:51:13
问题 I've just installed Eclipse and the Pydev plug-in on my Mac (OS X 10.6.6) and I'm having trouble using the Google App Engine project 'template'. I'm really stuck here so your help would be really appreciated. I can get as far as adding a New Project > Pydev > Pydev Google App Engine Project and setup the project name, directory and type etc no problem. It then asks for the Google App Engine directory "Select the Google App Engine root directory (dir containing dev_appserver.py, appcfg.py, lib

How To Make Eclipse Pydev Plugin Recognize Newly Installed Python Modules?

淺唱寂寞╮ 提交于 2019-12-18 04:34:30
问题 So I just installed SubnetTree (http://www.icir.org/robin/pysubnettree/) and if I open the Python interactive interpreter I can successfully import it without any error messages. I use it in one of my programs and can successfully run it without a hitch. However, Eclipse marks the import as an error, and this is a problem as I use Eclipse for debugging. I have gone to preferences and have restored the Python interpreter I am using to no avail. I was able to merely restore the Python

Not working python breakpoints in C thread in pycharm or eclipse+pydev

此生再无相见时 提交于 2019-12-18 04:17:19
问题 I have a django application using a C++ library (imported via swig). The C++ library launches own thread which calls callbacks in Python code. I cannot setup a breakpoint in python code, neither in PyDev nor PyCharm. Tried also 'gevent compatibility' option too with no luck. I verified the callbacks are properly called as logging.info dumps what expected. Breakpoints set in other threads work fine. So it seems that python debuggers cannot manage breakpoints in python code called by threads

How can I bind a specific key to different launch configurations in Eclipse?

老子叫甜甜 提交于 2019-12-18 02:46:09
问题 I have several launch configurations for the code I work on. One configuration (#1) means "run the unit tests for the file in the frontmost editor (i.e. selected resource)". I would really like to be able to always make this be bound to a key. Another configuration (#2) means "run the server that I am working on (in the frontmost project) so I can test it interactively". Yet another (#3) means "run some automated acceptance tests against the server". I always want to have #1 close at hand,

Enable pep8 in Eclipse

只愿长相守 提交于 2019-12-17 21:06:26
问题 I enabled PEP8 in my Eclipse Luna for a pydev project and it works if I create a new file but it doesn't work for an existing project/file. I enabled PEP8 in window> preferences > pydev > editor > codeAnalysis > pep8.py > warning and I tried to click right onto my project folder > pydev > code analysis But unfortunately it doesn't work. 回答1: PyDev will only analyze valid packages in the PYTHONPATH (i.e.: under a source folder). So, Are your sources in the existing project under a source

PyDev: How to invoke debugging specific command from console (with breakpoints)?

让人想犯罪 __ 提交于 2019-12-17 19:45:56
问题 Suppose I wrote a function, which I want to debug. PyDev helps debugging a lot with its advanced features, like breakpoints. After setting the breakpoints, one way of debugging is to write an invocation of the function in def main() or just in the body of the module, and to press the button. Is it possible to launch a debug session of the function together with its arguments from the console? (Just like in RStudio or VBA...) This question is a duplicate of pydev: debug in console mode

Undefined variable from import when using wxPython in pydev

岁酱吖の 提交于 2019-12-17 18:54:59
问题 I just downloaded wxPython, and was running some of the sample programs from here. However, on every line that uses a variable from wx.*, I get a "Undefined variable from import error" For example, the following program generates five errors on lines 1,4,8, and two on line 5: import wx class MyFrame(wx.Frame): """ We simply derive a new class of Frame. """ def __init__(self, parent, title): wx.Frame.__init__(self, parent, title=title, size=(200,100)) self.control = wx.TextCtrl(self, style=wx

Kivy, Eclipse and PyDev (also PyPy)

吃可爱长大的小学妹 提交于 2019-12-17 18:07:12
问题 According to this post: https://groups.google.com/forum/?fromgroups#!topic/kivy-users/n7c3thksnzg, it is possible to use Eclipse as an IDE for Kivy through PyDev. However, I didn't understand the instructions. Can anyone please elaborate on how to connect Kivy with Eclipse. Note: I'm on a Windows machine. Also, is it possible to use PyPy instead of the Python Interpreter? Thanks~! 回答1: Using Kivy with Pydev on Windows xp/7 Under Window/Preferences/PyDev/Interpreter-Python add a new

Aptana Error-pydev: Port not bound (found port -1)?

时间秒杀一切 提交于 2019-12-17 17:56:22
问题 I just updated my Aptana Studio3. When I open my python file it says that it can not find map , range and filter and some other methods. but when I run my code, it'll run without any problem. my code completion doesn't work any more. The error for code completion when I use CTRL+SPACE is Port not bound (found port -1). Is there an enabled firewall? I don't know where the problem is ?!! I searched but I couldn't find a proper solution. I'm using windows 7. 回答1: It seems that this is solved on