Tagged Questions
1
vote
2answers
28 views
Python read windows Command Line output
I am trying to execute a command in python and read its output on command line in windows.
I have written the following code so far:
def build():
command = "cobuild archive"
print ...
0
votes
3answers
34 views
How to call in a specifc csv field value in python
I am so new to python (a week in) so I hope I ask this question properly.
I have imported a grade sheet in csv format into python 2.7. The first column is the name of the student and the column ...
1
vote
1answer
14 views
want to windows based python application on android
I have an GUI based Python application which is developed using Python-2.7, pygtk, numpy & scipy on windows. Is there any way to use this software on android platform?
I am also working on its ...
0
votes
0answers
13 views
Virtualenv cannot find my application
I've been developing an application mainly on my Mac, and now I'm trying to
setup the development environment on a Windows box. The application files are in
place so I started with virtualenv, which ...
0
votes
1answer
13 views
How to check from Linux in Python for administrative access to a Windows machine
I have a network of end-user machines (Windows, Linux, MacOS) and I want to check whether the credential I have allow me to access the machines as administrator (I am checking the "here are the admin ...
0
votes
1answer
17 views
get version of python module.pyd
I load a .pyd file as python module.
Under windows I see a version when I do a right click->Properties->"Details"-Tab
How can I read (in python) the fileversion of this pyd-file?
Exists a function ...
0
votes
2answers
32 views
how to launch a .exe using window registry in java
My application is written in python,but it's gui is built in java(swing).so,i need to launch python.exe through java.so,i need to get the path of python.exe dynamically(path must not be hard coded)
...
0
votes
0answers
11 views
Using Kazoo with Zookeeper gives me import error?
I am planning to use Python kazoo library for Zookeeper. I am totally new to python so I have no idea how to get going and how to use kazoo to connect with zookeeper.
This is the document I was ...
0
votes
0answers
16 views
Python/Windows, prevent subprocess (external program) from displaying popups
Python 2.7
OS: Windows (program will ALWAYS work on Windows so cross compatibility isn't an issue )
I'm forced to use external application as a part of an validation process and i'm having troubles ...
1
vote
1answer
15 views
wxPython - TextCtrl different behaviour between Linux and Windows
using python 2.7 and wxpython as GUI API I'm getting two different behaviour on TextCtrl if I'm using Winsows or Linux:
using Windows once I run the .py script the TetCtrl is immediately editable, ...
1
vote
1answer
17 views
pip install sqlalchemy-migrate crashes and burns inexplicably
Running Python in a virtualenv under Windows 8 x64, working my way through the flask megatutorial. There's a very thorough setup guide, and one of the things I have to do is install ...
0
votes
0answers
29 views
Launcher for python application on windows
Currently I'm using a batch file like the following one for starting a python application on windows.
@echo off
pushd ..
call .venv\Scripts\activate.bat
set PYTHONPATH=%cd%
python -tt src/myapp.py
...
-2
votes
0answers
20 views
Updating Biopython [on hold]
I'm an infrequent user of Python (v 3.23) and Biopython (v 1.59), but when I need it I can usually hack my way through some code to get what I want done. My problem is this -- I need to use a ...
1
vote
1answer
42 views
How to create a python app that can receive a data stream from some other windows source?
I don't know if I'm asking this quite well enough.
I want to write a python app that will run on Windows (at least for now) and can receive and process data (on the fly, or real time) from some other ...
0
votes
0answers
46 views
Python not found as dependency during ' npm jsbin' installation. What is missing?
This question was created from issues I've encountered while trying to install jsbin locally. JGallardo has asked me to create a question from it, because originally I've posted comments in the ...
0
votes
0answers
23 views
Hide Python console when running Tkinter script from shell command
I have extended the file context menu in the Windows registry and added a shortcut to a Python script (which is a Tkinter window). It runs fine, but obviously with the Python console in the ...
1
vote
0answers
22 views
How to fix cannot find sdist pip-*.tar.gz
I was looking for some answer for this problem so I could not find anyone.
But in this images you can see my problem...
Cannot find sdist pip-*.tar.gz
But I followed the installation guide for ...
0
votes
0answers
39 views
Development stack for Kinect skeletal tracking + HTML front-end + OS events
I need to develop a Windows application which...
has access to joint positions from a Kinect skeleton stream;
can trigger OS events like keyboard key presses and mouse movements/clicks;
does the ...
0
votes
3answers
40 views
tkinter 'NoneType' object has no attribute 'pack' (Still works?)
I'm fairly new to Python and have just started to play around with tkinter.
Running the below code I get an attribute error for but1.pack() (NoneType object has no attribute pack). But as far as I can ...
3
votes
2answers
43 views
Call functions in AutoIt DLL using Python ctypes
I want to call functions from an AutoIt dll, that I found at C:\Program Files (x86)\AutoIt3\AutoItX\AutoItX3.dll using Python. I know I could use win32com.client.Dispatch("AutoItX3.Control") but I ...
0
votes
0answers
17 views
Different WMs and making windows topmost
I've implemented the code I found in another question, and I'm wondering why it works.
This is the code that makes a Tkinter window topmost in mac, and then doesn't when it's idle (if that makes ...
0
votes
2answers
58 views
Call a cmd.exe bat.-like command with python
i need some help with this...
I have a program installed on my computer that i want to call to calculate some things and give me an output-file...
in Matlab the command "dos()" does the job giving me ...
0
votes
1answer
11 views
Using coinmp.dll on windows
I try to set up a simple environment to solve linear programming problem using Pulp and CoinMP.dll . I can't make it work. Can anyone help?
First thing when i try to run the test here is what i have
...
0
votes
1answer
33 views
How can I extract a zip archive that contains a forbidden file name on Windows using Python?
I've been trying to write a Python program to assist with installing Minecraft mods. This requires extracting an obfuscated JAR file and adding some new classes. However, one of the obfuscated files ...
0
votes
0answers
30 views
How do I grab the address bar content from a browser (e.g. Firefox or Chrome) using Python / win32gui?
I am writing a Python script that interacts with various applications on the Windows desktop.
I'd like to be able to grab the content of the browser address bar. Thankfully IE exposes a property for ...
0
votes
0answers
40 views
Do crashed processes on windows return a value?
I have a python program where I call a perl script using subprocess.check_call() method. Sometimes check_call() never returns. I'm assuming that perl process crashes(My perl program opens a file but ...
4
votes
2answers
66 views
Simple Image viewer
I am new to this site, and I am trying to create a simple image viewer in Python 2.7 using Tkinter, But when I try to load an image in it,it does not show anything!, I bet it is something ...
-6
votes
0answers
30 views
Python - How can I import the Python Twitter Tools in python. [closed]
What are the steps to take?
I am using a window 64 bit machine and I cannot import these modules. it shouldn't be too difficult does anybody know how to do this?
0
votes
1answer
42 views
Run R script from python WINDOWS
I made this code and it is working but only in Linux.
import subprocess as sub
sub.Popen([r"Rscript","diccionari.R"])
Where "diccionari.R" is the name of my script in R.
Error text message: System ...
1
vote
0answers
28 views
Tesseract OCR, Python and Windows XP
Evening everyone,
I am trying to use a tesseract (OCR) python wrapper found here, with the first example:
https://code.google.com/p/python-tesseract/wiki/CodeSnippets
I am using Python27, on a ...
0
votes
2answers
65 views
how to detect program exited in python on windows and do something on exit
I want to do something when terminate the python script on windows.
# coding:utf-8
import ctypes
import os
def set_exit_handler():
def on_exit(event):
print '=====exit====='
_BOOL = ...
0
votes
0answers
26 views
How to properly install PIP in a python virtual environment in Windows?
Following the instructions from: http://docs.python.org/dev/library/venv.html#venv-def
After i enter into the virtual environment for my python project, i launch distribute_setup.py according to the ...
-1
votes
1answer
42 views
Not able to install python module pycrypto [closed]
I am trying to use a python module for using Mega and it requires me to have pycrypto installed. I tried using both pip and easy_install to install it but I have had no luck. With pip I am getting an ...
-2
votes
0answers
36 views
How to view local python(.py) file in your broswer (Windows)
I'm having trouble viewing my local Python CGI script in my browser. However my webhost (Linux) is displaying it perfectly in the browser. For that I have #!/usr/bin/env python\ at the top of the ...
0
votes
1answer
26 views
Using Crypt function Python 3.3.2
In IDLE and Python version 3.3.2, I try and call the python module like so:
hash2 = crypt(word, salt)
I import it at the top of my program like so:
from crypt import *
The result I get is the ...
0
votes
0answers
19 views
Windows OpenCV Python: 'module' object has no attribute 'SIFT'
I've seen this question answered to Linux operating systems, but I'm working with Windows (VS 2010), and I can't find a solution.
This is my code:
import numpy
import cv2
campo = ...
0
votes
1answer
35 views
Printing to file works on Linux but not on Windows?
So I wrote this code and it works perfectly fine on Linux.
Reading data from file
Do whatever my code is supposed to do
Write the solutions on a new file.
Here's the part of the code that is ...
0
votes
0answers
19 views
How Do I Read a Windows File Manifest in Python?
I would like to retrieve metadata from a file, such as the "Company", "File Version", "Product Name", "Description", and "Product Version". Is there a Python library that will let me read data from a ...
0
votes
0answers
30 views
Unable to send udp packet after binding to loopback - Windows XP
I am sending a UDP packet between two loop back addresses (127.0.0.2 - 127.0.0.3), This works fine when the client socket is not boud to any particular IP, but when I bind the client socket to a ...
5
votes
1answer
43 views
How to get pip to install packages into the virtual environment?
On Windows 8, i have the following structure for a Python 3 project:
../Project/
../Project/app/app.py
../Project/app/setup.py
From the app folder, i invoke the following commands to create and ...
0
votes
1answer
21 views
Installing PYMC on Win64 - but MinGW does not seem to compile
I'm trying to install PYMC on a Win7-64 machine, using Pyython 2.7.3, installed as part of Python(x, y).
I've attempted to use python setup.py install, but that didn't work. I then went down the ...
0
votes
3answers
59 views
Choosing a different python version to run code
a) I have a code that works fine if I choose Python 2.5 but it gives me errors when using python 2.7. I have easily fixed the problem in windows by choosing python 2.5 as the default program. But, it ...
0
votes
0answers
26 views
Build an OSX distribution with pyinstaller on Windows
I'm trying to make an OSX distribution with pyinstaller, using a windows machine. Is this possible? I've already made a Windows distribution in a single file, it it possible to make an OSX build ...
1
vote
1answer
41 views
Open URL command from Linux to Windows in Python
I have a Linux PC (running Ubuntu) and a Windows 7 PC, and they are connected to the same network.
I want to write a script in Python from the Linux PC that "tells" the Windows PC to open a specific ...
0
votes
1answer
30 views
python3 os.popen() windows explorer with focus on specific directory
I have some code that will open Windows Explorer for the user, but it always opens with the focus on 'my documents' which I understand is the Windows Explorer default.
I can step it back one level to ...
1
vote
3answers
47 views
how to get python installed path from command line [duplicate]
I am trying to get the installed path of python?
Any idea how to get the python installed path from command line in windows. I don't want to set the environment variable?
Thanks,
1
vote
2answers
64 views
What is the fastest method of finding a file in Linux and Windows using Python?
I am writing a plug-in for RawTherapee in Python. I need to extract the version number from a file called 'AboutThisBuild.txt' that may exist anywhere in the directory tree. Although RawTherapee knows ...
1
vote
2answers
32 views
Pymssql program works on mac but but not on windows
Firstly, i just want to say what a great community this is! it has saved me hours of time an frustration and for that I thank you all!!!
I have a piece of code that works like a charm if I run the ...
1
vote
2answers
44 views
How to use Subprocess in Windows
I am trying to save the result or function runcmd in the variable Result.
Here is what I have tried:
import subprocess
def runcmd(cmd):
x = subprocess.Popen(cmd, stdout=subprocess.PIPE)
...
0
votes
0answers
15 views
Installing python bindings correctly?
Hello I'm working with selenium-2.37.2 directly in my project coping directly the selenium folder inside to avoid install the package in every machine where I need to run the script.
I try to ...