pydev

Unresolved import in pydev

ぃ、小莉子 提交于 2019-12-24 09:47:34
问题 I am a first time user of Python, I have Eclipse (Helios) on Windows XP and Pydev installed and all is well except that when I am following the GAE tutorial for Python I get the unresolved import error on run_wsgi_app and webapp from from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app The code runs fine. I have looked for an answer and added F:\Program Files\Google\google_appengine\google\appengine\ext and F:\Program Files\Google\google_appengine

Unresolved import in pydev

↘锁芯ラ 提交于 2019-12-24 09:42:10
问题 I am a first time user of Python, I have Eclipse (Helios) on Windows XP and Pydev installed and all is well except that when I am following the GAE tutorial for Python I get the unresolved import error on run_wsgi_app and webapp from from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app The code runs fine. I have looked for an answer and added F:\Program Files\Google\google_appengine\google\appengine\ext and F:\Program Files\Google\google_appengine

Pydev Nodebox: “AttributeError: 'NoneType' object has no attribute 'WIDTH'”

≡放荡痞女 提交于 2019-12-24 09:16:47
问题 I am trying to create a graph of the connections between the users in my database using nodebox(ubuntu 12.04, python 2.7, django 1.3), but when I enter the following instructions, I get the error message underneath it: """ g.draw(weighted=False, directed=False, highlight=[], traffic=None) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2721, in run_code exec code_obj in self.user_global_ns, self.user_ns File "<ipython

Export runnable program from python eclipse project on ubuntu

半世苍凉 提交于 2019-12-24 08:28:28
问题 It is my first time to use python, so i doing a simple program with a simple UI. I am using eclipse with PyDev as an IDE. I know in JAVA a to export a runnable program we use .jar files, but what works for python and how to do it in eclipse on ubuntu ? So if any explanation with some details or a useful link, i will be grateful. Thanks, Samer 回答1: Easiest way on windows is py2exe. If you're using Mac, check out py2app. If you're in a Linux/Unix environment, I'm a bit less familiar with how to

Code completion for custom modules not working with PyDev

自闭症网瘾萝莉.ら 提交于 2019-12-24 06:49:52
问题 Let's say I make a module called mylib.py. In eclipse I type import mylib Then I type mylib. and hit CTRL+SPACE. This should suggest functions/variables in mylib, but it doesn't do anything. If I do something like import os and type os. , suggestions immediately pop up, so I know code completion works in general, just not for my modules. Any reason why? 回答1: In order to get completion for custom modules, PyDev has to index it (if possible) and introspect the classes, functions, variables and

Eclipse Pydev autocomplete not working with error: java.lang.RuntimeException: The python client still hasn't connected back to the eclipse java vm

天大地大妈咪最大 提交于 2019-12-24 04:44:05
问题 My eclipse with pydev has been working quite well without any problems for past 1-2 years until now. I don't know what caused it, but possibly it could be due to java upgrade I did (however, this is happening first time). Problem: My eclipse pydev autocomplete hangs and doesn't work. Logs: java.lang.RuntimeException: The python client still hasn't connected back to the eclipse java vm (will retry...) at org.python.pydev.core.log.Log.log(Log.java:54) at org.python.pydev.editor.codecompletion

subprocess: PyDev console vs. cmd.exe

徘徊边缘 提交于 2019-12-24 04:15:19
问题 I'm trying to call a process from python using subprocess.call as shown below: from subprocess import call exePath = 'C:\\Test\\EXE.exe' inPath = 'C:\\Test\\IN.in' outPath = 'C:\\Test\\OUT.out' call([exePath, inPath, outPath]) This prints a few lines from EXE.exe followed by "The handle is invalid" -- but as a string, not as an error, which makes me think it might be a message from the EXE.exe: Unzipping Solution... 0.0% The handle is invalid. However when I open cmd.exe and paste in: C:\Test

auto-fix python indentation error [duplicate]

倖福魔咒の 提交于 2019-12-24 02:17:24
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: HOWTO: Fix Python Indentation I have some code that is copy-pasted from older code, so the indentation is completely wrong now, and compiler gives errors. Is there a way to automatically fix the indentation (not just swapping tabs with spaces)? I tried pyDev 2.7 (which claims to have auto-format) in Eclipse using Ctrl + Shift + F , but it didn't change anything. 回答1: use reindent http://pypi.python.org/pypi

Importing wrong packages when calling a python script from another python script via subprocess

旧街凉风 提交于 2019-12-24 01:54:35
问题 I am trying to automate executable creation for my program in 32 and 64bit with cx_Freeze. I have two separate python 3.4 installations (32 and 64 bit) with all required packages, which all correspond to their appropriate architectures. However, when I execute the script that calls the different python installations via subprocess, the called python subprocesses import the wrong packages. They both import the packages, the original script was called from and not the packages the python

Kivy: Invalid instance in App.root

不问归期 提交于 2019-12-24 01:17:33
问题 I am new to Python as well as Kivy, this is my first small project, and don't know what I did wrong, following is the log from pydev(eclipse): [INFO ] Kivy v1.8.0 [INFO ] [Logger ] Record log in C:\Users\Sudheer\.kivy\logs\kivy_14-06-21_10.txt [INFO ] [Factory ] 157 symbols loaded [DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones [DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s [DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones [INFO ]