Tagged Questions
0
votes
0answers
16 views
Using Python to build Windows Phone 8 applications?
I've some stuff written in Python. I would like to implement the code as an app on WP8 platform. Any idea on how I can go about compiling Python for WP8?
I tried Googling, but that turned my brain ...
0
votes
1answer
15 views
Aptana Python 2.7 issues
I pulled a script from the net to see if everything was working fine before I start programming. I'm a noob and cannot figure out what is going on. I installed easy_install to smooth things, ...
0
votes
2answers
30 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 ...
0
votes
0answers
20 views
What's wrong with my newly installed PyGame? Details in description
My Python version is 2.7 and whenever I try doing import pygame it shows the following error message:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import ...
0
votes
1answer
38 views
Windows 8 + Emacs 24.3 + emacs-for-python: Pymacs helper did not start within 30 seconds
I recently installed Emacs 24.3 and try to use it coding for Python (v3.3.2 x86-64 MSI installer). (I'm new to Emacs). Then i try to install emacs-for-python by unpack the zip to
...
0
votes
1answer
20 views
closurebuilder.py error on Windows: “can't decode byte 0x8f”
I'm attempting to run closurebuilder.py on Windows, and no matter what files I pass, I get the same error from Python:
python goog\closure\bin\build\closurebuilder.py --root=goog/closure/goog/ ...
0
votes
0answers
34 views
Change Windows Background from Python
Does anyone know a way to change the Windows Desktop Wallpaper with python so that the change is permanent? I have found this code
import ctypes
SPI_SETDESKWALLPAPER = 20
...
0
votes
0answers
18 views
copy file to linux machine via UNC path using python
I need to copy a file from a distributed storage network to my linux machine. I only get the UNC path to the file from a database. There are about 20 servers with more than 30 shares on each server, ...
-1
votes
0answers
21 views
python-get physical disk info from logical path
I have the logical paths. For instance:-
path1='C:/abc', path2='E:/xyz'
I want to check if both of them reside on same physical disk.
Or in general I want to map a logical path to associated ...
-3
votes
0answers
46 views
how to install matplotlib in windows
how to install matplotlib on windows. I have already installed python.
and when I use networkx. It work fine. But when I use the code nx.draw(G) for drawing a graph an error appears
RuntimeError: ...
0
votes
0answers
14 views
debug-mode python on windows
For debugging an application I need to build the debug version of PyQt4 python modules on windows XP.
In the end files like PyQt4/QtCore_d.pyd are produced.
However these files can't be loaded ...
0
votes
2answers
34 views
Add python27 to windows path while using python 3.3
I use python 3.3.2 on windows everyday, so i added C:\Python33 to my PATH in order to be able to call "python foo.py" from console and get python 3.3.2 to execute it.
But sometimes, i also need to ...
1
vote
0answers
54 views
Undefined References to Python DLL Variables
I'm trying to embed Python 3.3 in my 64 bit application, but my linker is generating these errors:
=== Sandblox, Windows ===
obj\Windows\python\version.o:version.cpp undefined reference to ...
4
votes
2answers
52 views
Copy using the Windows copy dialog
I'm currently using shutil.copy2() to copy a large number of image files and folders (anywhere between 0.5 and 5 gigs). Shutil works fine, but it's so slow. I'm wondering if there is a way to pass ...
0
votes
1answer
48 views
How do I start a http server and then open a web browser?
I´m trying this:
import multiprocessing
from wsgiref.simple_server import make_server
import webbrowser
import time
def application(environ, start_response):
start_response("200 OK", ...
0
votes
2answers
95 views
Your best library for create GUI with Python (PyQt, PyGTK, wxPython, IronPython, etc)
In your opinion, what is the best way to create gui in Windows with python ?
Do you recommend PyQt for windows?
0
votes
1answer
97 views
How to install pyQt5 on Windows?
When I try installing the pyQt5 (on Windows) using the command python configure.py I get this error:
Error: Make sure you have a working Qt qmake on your PATH.
I got the pyQt5 here: ...
0
votes
0answers
29 views
Python 2.7: How to display a widget past the root window edge
I have created my own combobox in order to get a google like dropdown tied to an entry field. It is an entry box with a frame containing labels that the user can select from while still keeping focus ...
-1
votes
0answers
43 views
Lock Windows screen in python
I am in the process of creating an application for locking the computer for my little brother :)
Im using python and PyQt to create gui.
My question is how to lock screen and show only one window ...
0
votes
2answers
43 views
How to pass variables from Python to CMD in Windows
I am writing a Python (2.5) script that will search through a folder, grab a specific file, and then pass the file and a command to a CMD shell in Windows. This needs to be done with the command ...
0
votes
1answer
29 views
Trouble installing Turbulenz
I was trying out the HTML5 Game Engine Turbulenz, which requires Python to be installed on the machine. I downloaded and installed Python, and then I downloaded the installer for Turbulenz. In the ...
0
votes
0answers
19 views
How to install pango for Python on Windows?
Since ReportLab does not support Python 3 I am now attempting to generate PDF with cairo, which works but lacks text-wrapping support. The next step seems to require pango and its Python-bindings, but ...
0
votes
1answer
38 views
Python application that docks to the top of screen
I am developing a python application that I need dock a gui form at the top of the screen with some events.
Update:
What GUI toolkits do I can use to implement the dock in Windows?
I want to develop ...
0
votes
1answer
30 views
how to find all serial devices ? (COM*)
I want to discover all serial devices on my Windows PC, via a Python script.
How can I achieve this properly ?
The ugly way is to try opening COM1, COM2, ..., COM9999 (what is the limit ?), and when ...
0
votes
1answer
20 views
Esky update causes transacted file operations error
Here is the error I get when I run esky auto_update:
Traceback (most recent call last):
File "__main__.py", line 838, in <module>
File "__main__.py", line 331, in bootstrap
File "__main__.py", ...
1
vote
1answer
26 views
IOError while writing to file
Im writing a program that changes my desktop background. It does this by reading a text file. If the text file says one of the BG file names it saves that one as my background, and writes the name of ...
1
vote
0answers
22 views
Is there a way to access the keyring in Python 2.7 without having to give a master password? (Windows)
I'm developing a script with a co-worker that involves connecting to a database. We want to keep the code independent of which one of us uses it, while keeping our passwords private and not having to ...
0
votes
1answer
21 views
python.dll in system32 with AMD64 and win32 installed
The standard Python installer places the pythonXY.dll in Windows' system32. If I install the 32bit and the 64bit version, there is only one pythonXY.dll in the system32 folder, but still both ...
0
votes
0answers
22 views
Changing queryString values
I have two questions:
Is it possible to make 20130526130000.000000600 and Warning from the line queryString changeable via an argument/input/parameter?
Is it possible to print a blank line in ...
1
vote
2answers
31 views
Issue with downloading and executing a file: Python Windows 64bit
I meet a weird error when downloading and executing a file in Windows 64 with the below code. The error is that I always get the access denied. Note that this code works fine in Linux and when I use ...
1
vote
1answer
33 views
python qt wait in background for hotkey
I'm building a qt app in python. One of the things that I need to do is wait in the background for a key combo like ctrl+b of something like that and then doing something with the currently active ...
0
votes
0answers
17 views
Import error for Django and GAE on Windows 7
I'm trying to run Django + GAE app
But i've got an import error
File "C:\Users\abatutin\Downloads\chapter10\chapter10\webapp-chapter10-simpleform\webapp-chapter10-simpleform\simpleform.py", line 7, ...
1
vote
2answers
41 views
Use (Linux) virtualenv from Windows
I want to develop a Python application on Windows 7, by using a Linux VM. I would like to make use of the Python interpreter that's inside my VM (virtualenv).
Unfortunately, PyCharm is the only ...
0
votes
1answer
45 views
Apache Thrift Python-Java 'Connection Refused'
I've recently tried to connect Python to Java using Thrift.
I've written a server on Python (PyPy). I've also written a reference client which works.
Then I've written a Java client which produces ...
1
vote
0answers
20 views
Error while parsing a page with BeautifulSoup4, Chardet and Python 3.3 in Windows
I get the following error when I try to call BeautifulSoup(page)
Traceback (most recent call last):
File "error.py", line 10, in <module>
soup = BeautifulSoup(page)
File ...
-1
votes
1answer
54 views
Python debugging. help a noob :( [closed]
I have started to learn python and I need some help. anything will help
I use:
komodo edit <- write the python
terminal (my editor) <- bug testing
def score():
question_1 = "null" #var
...
1
vote
1answer
43 views
Install new version over existing on Windows (upgrade)
I have Python 2.7.3 and considering to install new 2.7.5 version, but I can't find information if it's possible to upgrade current (and keep my modules intact) or is it advised to install as separate ...
0
votes
2answers
52 views
How do you manually tell Python which version to use in the script itself, across multiple operating systems?
I have Python 2.7 and 3.3 installed on Windows, and Python 2.7 and 3.2mu installed on Linux.
How would I write a Python script that is able to be used on both Windows and Linux, using version 2.X or ...
0
votes
0answers
30 views
How to determine what date time format the system is using?
For my centralized logging purposes for an application that will be used over the network(no server side application involved, yet) I am required to also store the time at which a particular event ...
1
vote
0answers
27 views
How to use the Windows CryptoAPI from Python?
I am looking at using the Windows CryptoAPI from Python, but I can't find any existing modules for it - the win32crypt module that comes as part of the win32all suite only exposes a couple of high ...
-2
votes
1answer
47 views
How to create a ftp downloader gui with python and wget? [closed]
I just want to know if how am i going to create a ftp/http downloader using python and wget. Python for the gui and wget for the downloading process. And how will i combine them to create the gui.
...
0
votes
1answer
32 views
distribute a usable python program to a python which doesn't have Distribute installed?
How to distribute a usable python program to a python which doesn't have Distribute installed?
I've created a Windows Binary installer using python setup.py bdist_wininst. The setup.py contains a ...
1
vote
1answer
57 views
How do I capture SIGINT in Python on Windows?
(Similar to this question)
On UNIX under Python 2.7, at the Python prompt:
>>> import signal
>>> def handler(signal, frame):
... print 'welcome to the handler'
...
...
0
votes
2answers
50 views
Windows: get default microphone name
In python2.7 on Windows, I need to get the name of the default microphone, which will be a string such as "Microphone (2- High Definition Audio Device)".
My first attempt was to query WMI using ...
3
votes
1answer
90 views
pySerial program doesn't read serial correctly
I have a problem using pySerial, and I don´t know from where to start looking for.
I have a 64 bits Windows Seven OS, with Python 2.7.5 (32 bits), and pySerial and Arduino (Arduino working correctly) ...
0
votes
0answers
40 views
Closing windows explorer from python?
I have a script that opens the containing folder of a specified file, but I'd eventually want to do this in sequence, something like:
<generate list of folders to open>
for path in folderlist:
...
0
votes
0answers
68 views
Best python GUI, IDE kit for windows for a file-organization app? [closed]
I'm aware of the similar threads, but I'm hoping for more specific advice. I've been reading into this for the past month and I'm still at a complete loss at where to start.
I'm writing a program ...
2
votes
1answer
30 views
Detecting Calling Python Script from Windows DLL When Using CTypes
I am seeking to add functionality within a windows dll to detect the name of a calling Python script.
I am calling the dll via Python using ctypes as described in the answers to How can I call a DLL ...
0
votes
0answers
35 views
Python pip installation easy_install not recognized
i installed setuptools from here:
pypi.python.org/pypi/setuptools
i go to my command line and enter easy_install but it says easy_install is not recognized,
anyone knows what is happening here? ...
0
votes
0answers
31 views
mtrand file not loading while importing numpy
i am installing scikit tool . for this i need numpy.
i have download numpy for python 2.7 . my windows is 64 bit.
when i tried to import numpy it shows me error
:
File ...