0
votes
0answers
7 views

Installing Pyqtgraph library on Windows 7

Portable Python on Windows 7. Python application have dependency on Pyqtgraph library: does Pyqtgraph library install anything in Windows system when its installed on Windows 32bit? Or it runs in ...
1
vote
1answer
23 views

Python Multiprocessing and global variables

import os from multiprocessing import Process b = { 'x':{ 'd':[] }, 'y':{ 'd':[] }, } def fmt(): global b for k in b: ...
0
votes
0answers
4 views

LZO compression in python 3.x in windows

I want an LZO compression in python 3.x in windows. How to do that. I have a large string , i just want to compress it using LZO .
0
votes
0answers
9 views

Error: Service instance has no attribute 'SvcDoRun'

Using python 2.7 on windows 7 64 bit machine. I had followed the link http://essiene.blogspot.in/2005/04/python-windows-services.html But getting error when seen in Events Viewer Windows Logs as ...
1
vote
0answers
25 views

Windows Error 2 when running batch file in Python script

I saw several threads dedicated to this error, but none solved my problem. Thought I'd post so folks can look at my code and maybe we can figure out another solution for everyone. I'm attempting to ...
0
votes
0answers
16 views

Django-Admin.py in Powershell

I think I'm encountering a weird bug in Windows 8.1 trying to use django-admin.py (and any script really) in Powershell. I've successfully installed Python 2.7.6, and have added C:\Python27\ and ...
0
votes
1answer
13 views

How to instal Autobahn to windows?

How I need to install autobahn libs to windows. Can you tell me how to do it? Im using 32-bit windows 8, 32-bit python Thank you
0
votes
2answers
27 views

Python 2 raw_input() : EOFError when reading a line in WINDOWS 7 command prompt

NOTE: Many of the same questions have been asked about python raw_input() in sublime text. This question is NOT about sublime. The python code is called in Windows command prompt which unlike the ...
0
votes
1answer
25 views

Install GeoIP on Windows?

Does anybody know how to install GeoIP's C library on Windows in a few simple steps. Even a few complicated steps will do. I researched and tried to compile it from the setup file but failed several ...
0
votes
1answer
21 views

sending powershell script to Windows ec2 in user data

I'm following these instructions to bootstrap a Windows ec2 instance with a powershell script (call it "bootstrap.ps1"). However, it looks as if the script has never run when I log into the machine ...
0
votes
1answer
21 views

How to launch python script as a windows Services

Using python 2.7 and windows 7. I have a python file(.py). I want to launch this script as a windows services, i.e. this code will keep on running from start to end and never terminate. I can convert ...
0
votes
1answer
19 views

Using Python's subprocess to change ntp server settings in Windows

So I'm trying to change the ntp server settings in Windows (XP and 7) using the following: import subprocess subprocess.call(['net', 'stop', 'w32time']) subprocess.call(['reg', ...
1
vote
1answer
45 views

sys.argv not working on sytems with previous .py associations

bit of background. I work for a VFX studio and we have in the past had to alter .py files for other programs just using notepad or notepad++, but no one ever actually used python. So I have been ...
0
votes
0answers
28 views

Batch for runing python script on Win7

I have this batch file that supposedly runs a python script for converting a bunch of files in the same folder the script is located, the thing is it doesn't work for me, a lot of other people have ...
-1
votes
1answer
32 views

Python - os.system - how do I delete a temporary file?

I'm trying to delete a temporary file in python. My OS is Windows. Now, I noticed that it makes sense for me to use os.system("del xxx") to remove that file, but is there a way to make it universal? ...
3
votes
2answers
53 views

python select.select() on Windows

I'm testing UDP punching using code from here. It works on Linux however reports error on Windows. Here's the code snippet where the error occurs: while True: rfds, _, _ = select([0, sockfd], [], ...
0
votes
1answer
29 views

run python scripts in batch - windows

Is there a way we can run the python scripts in batch (in Window) The execution should be sequential. Like, Script1,Script2 are stored in a drive. The batch script should invoke Script1 first, Script ...
0
votes
0answers
16 views

access to internet through system internet settings with python

In company we access to internet through proxy. We can access to this proxy only if I am logged in to Windows through domain with my username and password (Active Directory). The proxy doesn't support ...
1
vote
1answer
45 views

How to suppress Windows file handling with python?

I'm running a console app in Windows with Python 2.7 and Tkinter. I'm using a filebrowser to choose the file. My problem is that between the selection of the file by the user and the script using the ...
0
votes
1answer
26 views

How to emulate mouse/keyboard events in a unfocused/minimized window?

I am trying to do some automation with Python, but I want to execute it and still being able to use my machine freely. So I am using PyWin32 to emulate some clicks and typing but it only works if I ...
1
vote
0answers
8 views

Using arbitrary smbserver on port 445

I want to write a totally arbitrary SMB server on my computer. I'm using Impact (http://code.google.com/p/impacket/source/browse/trunk/impacket/smbserver.py), but the problem (probably) is I can't ...
1
vote
1answer
39 views

Writing text letter by letter [duplicate]

I'm somewhat new to programming and Python. I'm actually making a little function which write a sentence letter by letter. Here's the code : import time def slowWriting(txt, speed=0.01): for c ...
0
votes
2answers
33 views

How to get text from commandline with python

i need to read out the text from a cmd prompt window (which updates every second) in my python programm. OS is Windows 7 Anyone have an idea how to realise this? edit: I think i dont explained it ...
-1
votes
2answers
18 views

How to make the player's image in front of another image?

I have this code that runs fine but the only problem is that the player's image is behind the other images so you can't see where the player is. How do I make it so the player's image is in front of ...
2
votes
2answers
47 views

Python Tkinter - closing a child window with an exit button

I have a Raspberry Pi with the Piface adaptor board. I have made a GUI which controls the LED's on the Piface board. One button on the GUI opens a new window which, on the press of a button, starts ...
0
votes
1answer
14 views

Run an exe from command promt and passing parameter to it(Coded with python)

As the title says, I must start a exe file in command promot which I created with py2exe, when I start it I have to pass one parameter to it. So it will be like C:\Python27 >exefile parameter I have ...
-1
votes
1answer
25 views

Python under windows?

Couple of questions about python under windows: shebang I thought i read somewhere that the shebang is supposed to work correctly under windows but it doesn't for me. So #!/usr/bin/env python ...
1
vote
1answer
35 views

python import statement fails in function

I have a python module that needs to be able to run on Windows and Linux. While running it responds to certain keyboard "hotkeys". It is a python 3.3 script. In my class constructor I do the ...
0
votes
1answer
33 views

send argument to command prompt of a remote PC

I am looking for a way to open command prompt of remote PC by using Python. In this process I came only upto open a command prompt from Python and other code is connecting to a windows remote PC but ...
1
vote
2answers
40 views

Embedding Python 3.3 in C++ from zipped standard library on Windows XP

I want to embed Python 3.3.4 in my C++ application so that: Python's standard library is always taken from a zip archive alongside my app's executable (shouldn't depend on any environment vars etc); ...
0
votes
0answers
6 views

Java ProcessBuilder executing python and csharp file correctly, but not producing output

I have a python code Program11.py: #!/usr/bin/python import sys L = list(sys.argv) n = len(L) seq = L[1:n] if seq[0] == '0' : something = input() elif seq[0] == '1': print("[") for ...
1
vote
1answer
24 views

Screenshot of external window in windows in Python

I found this question : Get screenshot on Windows with Python? to take a screenshot of the full desktop: import sys from PyQt4.QtGui import QPixmap, QApplication from datetime import datetime date ...
1
vote
1answer
35 views

Why do insertions and deletes take over 100 times longer on windows 7 than Mac 10.9?

I wrote a script to benchmark insertions and deletes. import os, time abspath = os.path.abspath(os.path.dirname(__file__)) dbname = 'test.sqlite' # dbname = ':memory:' databaseFileName = ...
2
votes
1answer
25 views

Communicate with (Execute commands in) Cygwin(mintty) using python and get the output

We use cygwin in windows platform for some maintaining work. What I want to do is not only start the cygwin using python or start it and pass a single command. I want to start the cygwin, hold the ...
0
votes
0answers
16 views

Create another user windows 7 with all the python configuration

I will like create another account in windows, this is easy, my problem is when I created the account and I executed python in the same place, it say me that the libraries are not found ...
1
vote
1answer
44 views

Installing Boost Python on Windows 8.1, Setting up the toolchain correctly

I am trying to install Boost Python, however http://www.boost.org/doc/libs/1_55_0/libs/python/doc/tutorial/doc/html/python/hello.html is too compressed for me. I am switchig to Windows from Linux, ...
2
votes
1answer
18 views

Python , trying to open a command

I have simple python code took from here only.It is import os os.system("start /WAIT cmd /c {ping google.com -t }") My intention is ,I have to open a command prompt and then have to ping Google. ...
0
votes
0answers
35 views

Enthought Canopy cannot install new module on Windows 7

I have the latest Enthought Canopy installed on both my Windows 7 and Mac OS X 10.7.5. On my Mac, I can install packages that are not in the default distribution using 'pip' or 'easy_install'. ...
1
vote
2answers
41 views

how to get file's type under a directory in Python

I have a directory structure like this Root\ DirA\ DirX\ File.aaa File.bbb File.ccc File.ddd DirB\ File.aaa File.ccc ...
1
vote
1answer
28 views

On Windows, how to convert a timestamps BEFORE 1970 into something manageable?

Summary: "negative" timestamps on Mac work fine, but on Windows I can't convert them into something usable. Details: I can have a file on Windows whose modification time is, say 1904: $ ls -l ...
0
votes
1answer
16 views

How do I access these ID3 values using Python and Mutagen

I'm trying to read the ID3 tags from my vast karaoke collection, so that I can store them in a CSV file, for easy formatting and printing, but I'm having issues actually getting the values! I manage ...
0
votes
1answer
22 views

Loss of color when executing git through python

I have the following git extension script: #!/usr/bin/env python import sys from subprocess import Popen, PIPE if len(sys.argv) <= 1: sys.argv = sys.argv + ['status'] git_cmd = 'git ' + ' ...
0
votes
1answer
20 views

Python3 lib to copy files from windows to unix

All, I'm developing a Windows program in Python 3.3 and QT. One of my requirements is to copy files that I create in Windows to a UNIX machine. After some searching I figured that SCP is the way to ...
-5
votes
0answers
31 views

Reasons for http request exception?

I have tool implemented in python 2.7, i have downloaded request library from https://github.com/kennethreitz/requests and copied it to c:/python27/lib folder. when i am exporting some data to a IP ...
0
votes
2answers
34 views

How to get r/w permission for a directory for a particular user?

My python script creates a folder, one for each user. I want to make permissions/grant privileges where only one particular user can have access to only one specific directory and not to other ...
0
votes
0answers
47 views

Getting realtime output of ffmpeg with pexpect or winpexpect

hi i'm trying to get the progress info when calling ffmpeg command line tool, with pexpect, i can get the progress with regex, but the problem is after a few seconds, maybe 20 or 10sec, pexpect stops ...
0
votes
1answer
31 views

Detecting system sound on Windows using Python

Is there any way to detect system sound instead of microphone sound? I want to be able to detect whenever my system makes a sound instead of when the microphone picks up the actual sound. One way I ...
1
vote
0answers
33 views

Setting up django in windows

The short: none of the django install instructions seemed to apply to my windows system and I am hoping some one knows why The long: The django install instructions had me pulling my hair out bc . . ...
0
votes
1answer
31 views

How to replace posix alarm in windows

I am trying to create a program that will have a main thread which is just waiting for input, and some other threads. When the user inputs freeze i, thread number i should pause - freeze right away. ...
0
votes
1answer
15 views

IndexError: list index out of range for parsing script

newbie here so please forgive my uncertainty. I am trying to create a script which pings IP address' a file called ARPips.prn, while parsing the output so I can later create graphs for results over ...

15 30 50 per page