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
6 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 ...
1
vote
0answers
23 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
19 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
9 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
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 ...
0
votes
1answer
21 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
22 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
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
1answer
29 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
votes
0answers
32 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 ....
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
0answers
6 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
54 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
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
42 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 ...
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 ...
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 ...
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:...
1
vote
0answers
25 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
21 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, ...
0
votes
0answers
43 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 ...
1
vote
0answers
16 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
57 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 ...
0
votes
1answer
60 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, ...
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 ...
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 ...
1
vote
0answers
56 views

Python Keylogger

I am trying to make a python keylogger which automatically runs at startup. Here is the python code import pyHook, pythoncom, os, httplib, urllib, getpass, shutil, sys userName = getpass.getuser() ...
0
votes
0answers
15 views

Why can't python find my dylib?

I have two Macs on which I'm trying to run a python script that uses a package (CoolProp) which in turn pulls data from a 3rd party .dylib (librefprop.so). The problem I've having is that Python doesn'...
1
vote
1answer
22 views

How to access libs locally in nixos?

I am using nixOS for a little time, but coming from Ubuntu I have a hard time with binary dependencies. My problem is that I want to install psycopg2 in a virtualenv. This package is not a pure-python ...
0
votes
1answer
23 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 ...
3
votes
1answer
51 views

Notepad++: Create shorcut to Batch file and open file afterwards

I have a batchscript with the following contents: python.exe c:/path/to/my/pythonscript/script.py %1 which I currently use to be able to drag-n-drop a file onto it. script.py then makes a duplicate ...
3
votes
0answers
138 views

Machine Performance drops over time until reboot

I have a bit of a strange problem with my machines: Over time, the performance constantly drops. I am using TensorFlow to train a neural network using the GPU. My Data are xz-compressed float32 ...
1
vote
1answer
36 views

How can I remotely access Jupyter from an azure VM?

I'm trying to get Jupyter notebook to run on an Azure VM, and it's failing miserably. I first created a linux virtual machine, then I followed these instructions exactly--I created an inbound rule in ...
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
38 views

cannot find libcrypto.so.1.0.0 src rpm

I'm required to install python-requests using RPM's. I've downloaded: python-requests python-py python-cryptography python-pyOpenSSL and unfortunately the SLES zypper tool is advising that ...
0
votes
0answers
21 views

Allow access to usb hardware using national instruments visa on ubuntu

I am trying to connect a piece of lab hardware (Keithley 2636b) to an ubuntu computer using the national instruments visa interface through python. I have successfully connected to other hardware ...
0
votes
0answers
29 views

How to install Plone on Synology DSM 5.2-5967 (CPU QorIQ P1022)?

I have a Synology DSM 5.2 (213j+), I have python 2.7 installed, I am trying to install Plone on it. I downloaded the universal installer Plone-5.0.4 and launch the following script: ./install.sh --...
0
votes
0answers
17 views

How to allow Python with AppLocker under Windows 7?

My machine (Windows 7 enterprise) does not allow to run any Python scripts that attempt to call any other programs. This highly limits that you can do with it, forcing to write .bat files instead. I ...
0
votes
1answer
37 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-...
0
votes
0answers
38 views

pip not working with non-root user on RHEL 6 server

I have a server running RHEL 6 with Python 2.6.6. I am having trouble using pip with Python as a non-root user. I am able to install pip packages and use them as root. However, when I try to run pip ...
0
votes
0answers
12 views

pip: "/Volumes/HD: bad interpreter: No such file or directory?

After I activated my Virtualenv i received this message: Francos-MBP:BV francoe$source bin/activate (BV) Francos-MBP:BV francoe$ pip freeze -bash: /Volumes/HD 2/Projects/PythonProjects/BV/bin/pip: ...
2
votes
2answers
32 views

How can I assign (x,y) coordenates to some values?

So I basically have to assign (x,y) coordenates to some ids that will be coming from a file. Let's say the file items.txt have the following content: if-eth0-in if-eth0-out ping-status cpu-load ...
0
votes
0answers
20 views

How to create a Python package and make it available using the `pip` command on Windows?

I've written some Python code that I'm looking to share using Pypi but I'm actually having a surprising amount of difficulty figuring out how to do it. I've followed several different instructions and ...
0
votes
1answer
59 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 ...
2
votes
1answer
109 views

Fedora 23 has stopped installing new programs and updates

I have been using Fedora 23 for the last 2 months and since yesterday DNF has stopped installing or upgrading programs. This is the error message I got in the Yum Extender - Powered by DNF: g-io-...
1
vote
1answer
55 views

Snippets for PyCharm (specifically django templates)

I am in the process of moving from SublimeText to PyCharm for python development. One feature I loved in Sublime were the Djaneiro Django template snippets. In a template, I could just type include ...
0
votes
0answers
11 views

copy a pc file to VM env/linux

I have a file on Desktop 'Test1.py'. I want that file to run on saltmaster VM and am trying to copy that file through scp commands. I hit this command scp Test1.py ubuntu@ipaddress:/Users/username/...
0
votes
0answers
22 views

Setup SSH tunnel on windows machine using sshtunnel

I would like a local program to be able to ssh into a machine which is on a private network. The schematic should be like this: (external machine) ---ssh---> (external/internal facing server) ---ssh--...