Tagged Questions
Python is a dynamically and strongly typed programming language whose design philosophy emphasizes code readability. Two significantly different versions of Python (2 and 3) are in use. Please mention the version that you are using when asking a question about Python.
0
votes
0answers
3 views
Strange module auto complete behavior in iPython
See what I mean? At first it showed only RB and absolute_import as choices. STILL I was able to import Gtk. After that it showed a couple of more options. Still isn't a complete list of modules. If I ...
0
votes
1answer
6 views
pyinstaller2.0 --noconsole won't run my exe when I click on it
I have pyinstaller2.0** installed and am using Python 2.7.5 32bit on a Windows7-64bit OS.
I'm trying to create an application with no console. When I use --noconsole and click on my generated .exe it ...
0
votes
1answer
9 views
Python Urllib2 module Error
Can somebody tell me what:
URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
exactly means? Could not find it in the documentation.
Does it say that the URL is ...
1
vote
2answers
9 views
Turn python input into command
I am working on making my own shell but what I want it to do what the user input.
For Example:
while 1:
c = input()
do c
By do c I want it to then do the command that the person put in.
...
0
votes
1answer
5 views
Python TCP - Correct way of dealing with delay so to receive all data
I got some code to receive data that looks like this: (SSL being used)
sockListToCheck = self.getSocketList(self.clientSocketsWTTL)
socksReady, w, e = select.select(sockListToCheck,[],[], ...
-1
votes
3answers
16 views
how to run ls /dev/ | grep ttyUSB
I want to run the command and take result of the execution in python file. I know how to run ls -l /dev/ but I donot know how to run ls /dev/ | grep ttyUSB. How can I run this command on the python ...
0
votes
2answers
20 views
Python parsing many word documents
I wrote a small program which extract data from a word document and process it. The tool runs only on Windows (XP) and uses the PyWin32 Library.
Everything works but sometimes I have the following ...
-1
votes
2answers
10 views
Puzzled on the ndim from Numpy
import numpy as np
a = np.zeros((5,2,3,4), dtype=np.int16)
print a.ndim
b = np.zeros((2,3,4), dtype=np.int16)
print b.ndim
Above is my code. the output is:
4
3
I have checked the page ...
0
votes
0answers
8 views
Extending python with a OpenCV C++ module
I have been trying to extend python with a OpenCV module written in C++.
I am encountering 2 problems during this.
1) Setup.py - How does one include cv.h library here?
libraries = ['opencv'],
...
-2
votes
0answers
23 views
Kernel that runs python code
I want to make an os in python but from my research I know that it is hard because you need a kernel with the standard c libraries so I was wondering if i could find a kernel or make one that could ...
0
votes
1answer
6 views
Adding QPixmap item to QGraphicsScene using QGraphicsScene::addItem crashes PySide
I am trying to add an image to a QGraphicsView/QGraphicsScene so later I can paint simple geometries on it based on user's input. I need to make sure that the image fits in QGraphicsView regardless of ...
0
votes
0answers
9 views
python, making a windows msi installer from a zip file
I used Esky to make a frozen version of my app but the output is a zip file which is supposed to be extracted to work. What library makes a nice installer (uninstaller) that just asks for a folder and ...
-2
votes
0answers
24 views
Deploying a python script online
So I am making a small irc bot in python. Right now I am running the bot on my machine, it works fine. What I want is to host it somewhere on the Internet so that it keeps running continuously, and so ...
0
votes
0answers
19 views
Retrieve all related records using values_list or similar
I have 3 Models: Album, Picture and PictureFile, linked by Picture.album and Picture.pic_file
I'd like to do something like the following, and end up with a list of PictureFile records:
pic_files = ...
-1
votes
1answer
10 views
Python DNS Change Server
What is the easiest way of changing the server that is queryed againest when using dnspython
Ive been using the following,
dns.resolver.query(hostname,type)
However from the documentation it ...