Python is an interpreted, general, high-level programming language. Programming questions are off topic. Questions about the use of Python and should be asked at [Stack Overflow](http://www.stackoverflow.com).

learn more… | top users | synonyms

0
votes
0answers
5 views

how to install PyInstaller (mac osx)

How should I go about installing PyInstaller? There is a closed question on stack overflow answering the question for windows, but this is completely useless for me, being a mac user. I have heard of ...
0
votes
1answer
55 views

Installing python script for ffmpeg

I am trying to use ffmpeg-normalize found here: https://pypi.python.org/pypi/ffmpeg-normalize I am not familiar with python so I need some help to install the script. The documentation says to ...
0
votes
1answer
11 views

Is it ok to make a python librairy that uses an other one?

I'm making a python project that will allow you to deploy/update easily a continuous integration environment on a server. Jenkins, Git, Gerrit, Sonar, doku wiki, web server. with jenkins who ...
0
votes
1answer
28 views

Python PIP cannot install modules

I am trying to install a module from pip on the command line, but every time it gives me this error message:"This app can't run on your PC." I am running Windows 10, and using Python 3.5. Here is a ...
1
vote
0answers
19 views

Linux python install missing module sqlite3

Due to an issue where we can't natively update python from version 2.4, I am required to install my own python 2.7.5 in my home directory. This creates an issue where I don't have the correct headers (...
2
votes
1answer
17 views

Make ghostscript run from Windows command line natively

My problem: I am using Python to print plots which I usually output as .pdf file. Now I want to use .eps files, but Ghostscript is required (which I noticed because my Python console gave the error "...
0
votes
0answers
156 views

How to download Anaconda packages for offline installation

I've one machine which used to have internet access where I installed Anaconda 3.5. Now I want to create a Python 2.7 environment: conda create -n py27 python=2.7 How can I download the required ...
0
votes
0answers
8 views

How to Render To Texture in 3DS Max using Python

I'm an experienced Technical Artist, but I'm new to using the Python API for 3DSMAX. I'm trying to use Python to control the render to generate a series of Baked Textures. So far, while I've had ...
0
votes
1answer
156 views

Glade for Gtk 2 not work in ubuntu 15.10

I am a new person in Glade GTK . I tried a working program (demo) in my Ubuntu using Python. But I got error message as File "revolution.py", line 21, in init self.builder.add_from_file(self....
0
votes
1answer
804 views

Mac OS X finder requiring permissions when deleting file, even after chmod

I created a Python script that requires sudo permissions to run (doing ICMP requests). This script creates a small directory and a couple .csv files, as well as a log.txt file. At first, after running ...
0
votes
0answers
3 views

Python Script - Task Scheduler 0x103 using Selenium WebDriver on Azure machine [migrated]

I have a task setup using Task Scheduler on an Azure VM. Whenever I run the task directly it will run fine but when the machine turns on overnight and runs the task it will almost always give me a ...
1
vote
0answers
244 views

Python taking too much memory on server,

I have a running EC2 instance on amazon AWS. and some time server gives me the memory maximum utilization above 97%. When i saw my server stats on newrelic That showed me the below running processes ...
0
votes
1answer
96 views

How do I use uncompyle6

I am new to Python. I have version 2.7.11 installed on my MacBook Pro, running Yosemite 10.10.5. I am trying to figure this out because I would like to decompile the scripts to the Native Instruments ...
2
votes
2answers
15k views

Windows scheduled tasks fail with 0x1, don't log errors

I have three Python scripts running overnight as scheduled tasks on a Windows Server 2008 VM. I can run them manually with no problems. But when I look at the Task Scheduler each morning, the first ...
0
votes
0answers
15 views

Bash one-liner to open several processes and execute a python function in each - poor man's parallel processing

I have a python file like my_functions.py and within that file is a function def func(a,b): result = does_some_stuff(a,b) return result Is there a way bash one-liner that would open N ...
0
votes
1answer
18 views

SSL: CERTIFICATE_VERIFY_FAILED error in a docker container

I'm running into the following error message when I do easy_install pip: root@ff45b7b74944:/# easy_install pip Searching for pip Reading https://pypi.python.org/simple/pip/ Download error on https://...
1
vote
1answer
34 views

Unexpected BPython console output behaviour

I am using BPython to run Python scripts, and I found the console output has a different behavior than the regular Python console.. For example this small snippet: import time for i in range(100): ...
-1
votes
0answers
19 views

“Bug Pyinstaller” Payload Veil show prompt windows while I run it

Hi guys i have kali linux rolling Linux kali 4.5.0-kali1-686-pae #1 SMP Debian 4.5.5-1kali1 (2016-06-06) i686 GNU/Linux Python 2.7.12 Becouse if generate any payload with veil afther use easy ...
0
votes
0answers
51 views

Running Python script on Windows IoT

I have Raspberry Pi 2 running Windows IoT and I want to run Python script on it. Unfortunately I am having this error after the deploy. I wrote the script using Visual Studio 2015 as a Windows IoT ...
-1
votes
0answers
28 views

Writing to pcap file on remote computer in real time using Scapy

I am trying to develop a stealthy sniffer for educational purposes. My plan is to use scapy to sniff the packets, write them to an open socket that connects to the remote computer in the format of a ....
1
vote
2answers
14k views

Getting PATH right for python after MacPorts install

I can't import some python libraries (PIL, psycopg2) that I just installed with MacPorts. I looked through these forums, and tried to adjust my PATH variable in ~/.bash_profile in order to fix this ...
0
votes
0answers
9 views

VPS, cloud, dedicated servers: which type for scientific python processing (scipy, networkx) and API REST?

I am using a server 1GB ram machine server, 1 core processor (as a set up, the free tier instance on AWS) to serve API REST GET requests that occasionally compute sub-graphs and matrixes on demand ...
0
votes
1answer
52 views

How to upload dependency files to AWS Lambda

I'm trying to make a python-based AWS Lambda function need to import a module. I followed the instructions in Creating a Deployment Package (Python) on Amazon. When I create and upload the ZIP file, ...
2
votes
1answer
3k views

Selenium with PhantomJS, click() not working

I have a working script to manipulate a site. When running with webdriver.Chrome(chromedriver.exe) it works like a charm. But when I try with webdriver.PhantomJS(phantomjs.exe) it doesn't work. More ...
0
votes
0answers
5 views

How do I set `pip` in the command line to use to manage the packages for Python 3.5 instead of Python 3.4 in Windows 10?

I'm running Windows 10. I have both Python 3.5 instead of Python 3.4 installed. I want to add the package pywikibot to my Python 3.5 installation, so that I can use it with Spyder that uses Python 3.5....
0
votes
0answers
31 views

How to install gvim.exe on Windows with Python support? (Solved by the author for this post)

Problem description: For all the executable installers for Vim that are listed below, the tags +python/dyn and +python3/dyn are unanimous when installed. However, for all my local installations using ...
0
votes
0answers
15 views

How to restore wifi access to Kali VMWare

I am reading Justin Seitz book, Blackhat python. I have installed VMWare and Kali and has been using it for like two weeks. But all of a sudden Kali cannot communicate with the internet via my wifi ...
3
votes
1answer
8k views

SSH could not create directory /home/USERNAME/.ssh

My script is executing the below command: command = os.system('rdiff-backup --exclude "**.dropbox**" --exclude "**.ini**" --remote-schema "ssh -o UserKnownHostsFile=/cygdrive/c/Users/Adam/.ssh/...
0
votes
1answer
28 views

Compare Two Files in Linux

I am trying to compare file A with pattern file B and show the matched lines of file A. X can be replaced by 0 and 1 in file B. File A does not contain any don't cares. File B is a large file. For ...
1
vote
0answers
16 views

Linux Keyboard Injector (Python or shell) [closed]

I'm wondering if it's possible (and if so, how) to simulate keystrokes on a keyboard using a python or shell script. I'd prefer to not have to download anything or install anything, and just want to ...
0
votes
0answers
34 views

UnicodeDecodeError while installing request library using pip (Windows)

I have set up pip, using the get-pip.py file, and tried installing different packages, like numpy. I installed numpy using pip install numpy which worked fine. But when I tried to install request ...
1
vote
1answer
3k views

Python installation errors

This is incredibly, annoying, I can't do anything in python until this is fixed. Thanks if you can help, I know it can be annoying to have to look at so much code but i'd really appreciate. I'm trying ...
0
votes
0answers
15 views

Commandline (and server) pauses until updated

Context: I'm running a Minecraft Forge server with a standard .bat to start it with specified memory constraints and 'nogui'. The server will run, and the console window will appear, but occasionally ...
0
votes
0answers
18 views

Restart of MacOS 10.11.5 Resulted in python modules, R, and Gnuplot and PostgreSQL commands not being executable

I had my iMac hard reset and after it restarted my PostgreSQL changed to an other database service (I have two services) and all the tables are empty and several python modules are not importable, R ...
4
votes
2answers
8k views

How do I install python with proper permissions?

So python installed probably fine. Or perhaps it was already on here (I'm using xubuntu 12.10). But I tried to install networkx today using pip: pip install networkx then says I don't have ...
0
votes
2answers
623 views

How to set file association in Windows Explorer?

I have installed the Canopy Python package, and when I double-click a python file it opens the Canopy editor. I want clicking the file to run it, not edit it. I have changed the file properties to ...
1
vote
1answer
3k views

Python 2.x and Python 3.x with Beautiful Soup Package on Mac OSX 10.9.5

I am fairly new to Python and have run into some problems installing Beautiful Soup. I am running Mac OSX 10.9.5. I installed and used Python 3.4 during a summer and installed Beautiful Soup 4 for a ...
0
votes
1answer
22 views

Determine what GPU is running through WMI

I am trying to write a python script for to figure out which GPU (dedicated or integrated) is currently running. I have managed to make it work so far by running dxdiag and parsing the output for the ...
0
votes
0answers
41 views

Pip.exe does not install the requested package, instead displays “python.exe stopped working”

Using Python 2.7.11rc1, I tried to install PyInstaller using pip. However, when I typed in pip install pyinstaller the command prompt printed out Collecting PyInstaller and a few seconds later a ...
0
votes
1answer
215 views

Python module path not found

On our Openstack installation somethin awfully went wrong. Now python does not work properly any more. The module path is not found: root@controller:/root# keystone token-get Traceback (most recent ...
0
votes
1answer
26 views

Simple python login system not working

This is a simple login system, but when using it the USER or nickname doesn't work it will login with any username i put in but PASS or password works fine. (I tried googling nothing) Here's my code:...
0
votes
1answer
35 views

Is it possible to install virtualenv without python3 on debian?

I'm trying to install virtualenv without installing python3 on my debian jessie machine. I'm new to debian being a gentoo native. I'm trying to install virtualenv with: sudo apt-get install python-...
1
vote
0answers
22 views

How to sandbox code in chroot for multiple users?

What am I trying to do? I'm writing a code evaluator using chroot and python and went to hackerrank for some inspiration. What I think is happening at Hackerrank? Hackerrank creates run-...
0
votes
0answers
20 views

how to allow python script program use virtual memory to avoid can not allocate memory error

i find this question, but solution not available, it seems not set overcommit policy, how to use virtual memory for python to use more memory than existing memory for example, if i have 70GB memory, ...
4
votes
2answers
9k views

How exactly does one install `.egg` files?

When I tried downloading the Sphinx installer here, my computer couldn’t find a default application to run the installer. easy_install doesn’t work either. I’m running Python 2.7 but only have ...
0
votes
3answers
1k views

Python script to compare the keys of 2 dictionaries and if equal print value of the key of 2nd dictionary

I have 2 dictionaries for example: dict = {1 : a, 2 : b, 3 : c, 4 : d} dict1= {5 : z, 1 : y, 6 : x, 3 : u} I need to compare the keys of 2 dictionaries and if they are equal, I have to print the ...
1
vote
0answers
13 views

how to get csvkit to convert very wide xlsx files — weird error messages

I've been trying to convert a number of xlsx files which are very wide (over 200 columns) into csv files so I can aggregate them into a single file for analysis. I've been trying to use csvkit, but it ...
0
votes
2answers
56 views

How to grant a normal user limited privileges to specific directory and run files without sudo

Sorry for my expressions, and I hope I've described my question as clearly as possible. Using Red-hat system. Currently I own a superuser in the system, and I have to dosudo python cuckoo.py in order ...
1
vote
1answer
475 views

How do I create a local update server for Anaconda Python?

I have a set of networked computers that do not have access to the internet. On each of these computers, I need to install the Anaconda Python distribution. This is currently done by manually ...
0
votes
0answers
40 views

Unable to run python script remotely through SSH on ubuntu 12.04

I am trying to implement a networking model(functioning well on ubuntu 14.04) on my system(ubuntu 12.04), which involves connecting with nodes(machines) remotely and running python script on them. For ...