pydev

configure kivy path in pydev eclipse (Debian)

ε祈祈猫儿з 提交于 2019-12-25 01:55:58
问题 I´d like to set pydev in eclipse for python library called kivy. Problem is what to fill in interpreter executable. I can´t find right path. I use Debian. Thanks!! 回答1: There is a user maintained list on the wiki of how to setup kv language in PyDev and other popular IDEs. https://github.com/kivy/kivy/wiki/Setting-Up-Kivy-with-various-popular-IDE%27s Furthermore the new release of Pydev is supposed to suport kvlanguage out of the box. http://pydev.blogspot.in/2014/01/new-pydev-release

Why isn't MySQLdb installation working on my 64bit Mac

陌路散爱 提交于 2019-12-25 00:33:35
问题 >>> import MySQLdb Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.macosx-10.6-intel/egg/MySQLdb/__init__.py", line 19, in <module> File "build/bdist.macosx-10.6-intel/egg/_mysql.py", line 7, in <module> File "build/bdist.macosx-10.6-intel/egg/_mysql.py", line 6, in __bootstrap__ ImportError: dlopen(/Users/samwu/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/_mysql.so, 2): no suitable image found. Did find: /Users/samwu/.python-eggs

PyDev On Eclipse Portable, PyDev refuses to work

送分小仙女□ 提交于 2019-12-25 00:26:32
问题 I hop from computer to computer, and want to be able to code on all of them, so i have this usb-drive... And i installed eclipse-portable on it, and then installed PyDev, which for some reason refuses to work, have any of you got a idear? This is the error it gives me: Plug-in org.python.pydev was unable to load class org.python.pydev.editor.PyEdit. And the detailed version is: org.eclipse.core.runtime.CoreException: Plug-in org.python.pydev was unable to load class org.python.pydev.editor

Eclipse-Pydev cannot find Lucene Library

≯℡__Kan透↙ 提交于 2019-12-24 20:57:40
问题 I have been developing a Python program using the Pydev(2.5.0) plugin in Eclipse Helios on Ubuntu OS 11.4. The program uses lucene (core 3.6) library. Lucene was installed using jcc. Previously I developed it with a text editor and ran on the command line using python xxx.py and there was no problem regarding lucene libraries. Then, I imported the project to Eclipse IDE. The other source files still run as-is, but the program cannot locate the basic classes of lucene library. import lucene #

Py.Test silently skips tests with errors in them using PyDev/Eclipse?

不羁的心 提交于 2019-12-24 20:18:28
问题 I've been looking in to using Py.Test to automate unit testing in some code I've been working on. I've discovered the following behavior: when a test that I've built has an error (that would otherwise cause the interpreter to barf), the testing framework seems to silently ignore the test altogether. I'm worried that, as I implement more tests, I'll mistake "this test had an error and didn't run" for "this test passed". Ideally, I'd like to hit a button in Eclipse and have a unit test fail if

Single character input in Pydev / Eclipse

六眼飞鱼酱① 提交于 2019-12-24 18:50:34
问题 I want to capture a single user keypress without "enter", and see afterward whether it was 'r' or 'b' etc, but specifically in Eclipse with PyDev (Windows 7: 64bit, Python 3.6.1). Many nice alternatives are mentioned in Python read a single character from the user of course. The mrvcrt seems to work in cmd.exe but not in PyDev: import msvcrt mych = msvcrt.getwch() print('You pressed: ' + mych) Why not? I see @MatthieuRiegler already asked this at Using msvcrt.getch() in Eclipse / PyDev ...

Python Gtk+ development in Linux using Eclipse + PyDev, Unresolved import: Gtk

柔情痞子 提交于 2019-12-24 17:27:31
问题 I just tried to write my first Gtk+ program using python in linux mint with Eclipse + PyDev, but I met this error in PyDev, Unresolved import: Gtk program source code: http://python-gtk-3-tutorial.readthedocs.org/en/latest/introduction.html from gi.repository import Gtk win = Gtk.Window() win.connect("delete-event", Gtk.main_quit) win.show_all() Gtk.main() error shown as below: Program can run. I checked PYTHONPATH in PyDev, I think it's right. How can I fix this problem? By the way, could

The PIL library import fails

烈酒焚心 提交于 2019-12-24 14:56:56
问题 Being a complete begginer in python, I decided to install the python interpreter 3.4.4, and also PyDev plugin for eclipse IDE. I am also using windows 10. I have encountered a problem regarding certain imports, namely : from PIL import Image, ImageTk , which is apparently an unresolved import. I have looked at certain questions which were similar to my situation, but most of them gave a solution like installing packaged from the linux apt-get. Here are some topics I visited : Uninstalling and

Python unit tests are not running at all

余生长醉 提交于 2019-12-24 12:14:59
问题 I am first time trying out python unit tests referring to this article. I have PyDev plugin installed in my Eclipse. My test_hello.py looks like this: import unittest class TestHello(unittest.TestCase): def test_abc(self): print("Test!!!") result = True self.assertEqual(result, True, "ohno") When I Right click on source > Run As > Python unit-test , it outputs: Finding files... done. Importing test modules ... PYTHONPATH not found for file: D:\workspaces\python-ws\test\test_h done. ----------

Manage Python exception breakpoints

萝らか妹 提交于 2019-12-24 11:29:52
问题 I'm trying to use the 'Manage Python Exception Breakpoints' feature in PyDev. Debugging the following script after selecting run -> 'Manage Python Exception Breakpoints' and selecting all exceptions. print 1 print 2 assert(False) print 3 nothing happens and I just get an exception as normal. EDIT:- It seems the problem is with matplotlib. the following script exhibits the problem I saw previously. pydev breaks somewehere in pylab and I can't step out to my script. import pylab as pyp print 1