pydev

Terminating Flask's Internal Server in Eclipse ( Aptana Pydev)

帅比萌擦擦* 提交于 2019-12-11 18:04:10
问题 I am using Aptana plugin in eclipse Luna. Pydev is already there in Aptana. I am doing flask development using flask's internal web server (Werkzeug/0.10.1 Python/2.7.6). When i run my project everything goes well but when i terminate run, my app server remain active. It keeps serving and when i run my project again it gives me following socket error. socket.error: [Errno 98] Address already in use Previously i was using pydev without aptana and it was working fine. Now for every run i am

how to show data per row instead of string

戏子无情 提交于 2019-12-11 14:58:12
问题 I am new to coding and need help with my first big task, linking data from csv to postgresql using python. The code seems to function but when I look at it using postgresql , for each row it appends the previous row. Focusing on the table teams , considering I have 20 teams I want to have 20 rows with each team on a different row and with a different ID . At this stage, considering I have 110 games , after 10 games the data just repeats itself in different rows. What's the solution? Thanks! #

How can I use pyreverse in Eclipse?

穿精又带淫゛_ 提交于 2019-12-11 10:58:49
问题 I've installed Eclipse (latest stable) and integrated PyDev and PyLint succesfully. Now being a python noob I wonder if I could somehow get an UML sheme from within Eclipse to do some reverse engineering of existing python code. Thanks for your time guys! 回答1: I don't think that pylint includes a way to get at the pyreverse features from within eclipse. You can try getting the UML outside Eclipse, or another plugin like http://sourceforge.net/projects/eclipse-pyuml/ 回答2: Due to lack of

breaking on unhandled exceptions in pydev/gae

*爱你&永不变心* 提交于 2019-12-11 10:57:56
问题 i am using pydev to develop a google app engine application. i followed the steps mentioned here to configure pydev debugger to break on unhandled exception. i could get it to work on a sample pydev project, but when i try the same steps in my pydev gae project, it doesn't work and gives following error: pydev debugger: warning: psyco not available for speedups (the debugger will still work correctly, but a bit slower) pydev debugger: starting ... Traceback (most recent call last): File "c:

Eclipse PyDev Breakpoints Show an Different Icon and Don't Work

£可爱£侵袭症+ 提交于 2019-12-11 10:18:08
问题 Breakpoints have been working for me for many weeks, but yesterday they stopped working. When I create a breakpoint icon shown is not the usual magnifying glass, but instead is the magnifying glass with a line through it. I tried the suggestions in pydev breakpoints not working E.g. import sys print 'current trace function', sys.gettrace() which reports "current trace function main.PyDB object at 0x101416090>> " I tried accessing breakpoints in another Python project and the breakpoints there

Configuring Eclipse/PyDev to work with projects on remote server and remote interpreter (workarounds and pitfalls)

北城以北 提交于 2019-12-11 10:16:42
问题 I have the following set up: Ubuntu 16.04-64 on host; LXC container running Ubuntu 16.04-64 connected through ssh; several django projects (pure django, django-cms, wagtail cms) located in separate dirs in the container inside /home/username/dir1, dir2, dir3; each project dir has separate /env folder which holds virtualenv environments (dir1/env, dir2/env, dir3/env). I am trying to set up Eclipse(4.8.0) / PyDev(v.6.4.4.2018...) IDE on host to work on these projects. So far I came to the

Getting a dependency error when installing RadRails

瘦欲@ 提交于 2019-12-11 10:05:20
问题 I'm trying to install the Aptana RadRails/Aptana Studio plugin for Eclipse and I'm getting a strange dependency error. Here are the details: OS: Ubuntu 11.04 Eclipse version: 3.5 (Galileo) RadRails version: Aptana Studios Plugin version 3.0.4 Note: I also have the PyDev plugin installed Anyway, I went to install new software in Eclipse and typed in the URL (http://download.aptana.com/studio3/plugin/install) then checked the box for "Aptana Studio 3 plugin" and clicked next, and I got this

pydev issue with gobject

巧了我就是萌 提交于 2019-12-11 08:54:33
问题 It seems that Pydev (1.5.4) on Eclipse (3.5.1) with Python 2.6 isn't able to correctly cross-reference the package gobject . Putting import gobject works OK but any more than that (e.g. class X(gobject.GObject) causes Pydev to report "unresolved reference" errors. What could be the problem? Note that every other package I use doesn't trigger this error. 回答1: The issue is related to this limitation of PyDev: I have a library installed and Pydev does not find it Well, problems have been

PyDev: Fatal error Python32\lib\io.py, line 60, in <module>

左心房为你撑大大i 提交于 2019-12-11 08:45:04
问题 I work in PyDev and quite suddenly, I cannot run my python programs from within Eclipse's PyDev (version 2.1.0) anymore. Any python program I have ran through Run As > Python Run fails wioth Fatal Python error: Py_Initialize: can't initialize sys standard streams Traceback (most recent call last): File "C:\Python32\lib\io.py", line 60, in <module> This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I

Eclipse, PyDev, Kivy in Ubuntu

北慕城南 提交于 2019-12-11 07:46:52
问题 I am new to Eclipse and PyDev. I have installed Eclipse, Pydev and Kivy under Ubuntu 12.01. I created a new Pydev Project in Eclipse. Now I want to use Kivy(and or xxWidgets) in it. How can I set this configuration in Eclipse? 回答1: -Install Python. I am using python 2.7 so : sudo apt-get install python2.7 -Install the latest stable builds : sudo add-apt-repository ppa:kivy-team/kivy sudo apt-get update sudo apt-get install python-kivy -If you want to install examples of kivy apps : sudo apt