Python is an interpreted, general, high-level programming language. The design emphasizes readability. It is notable for using tabs to indicate block levels. As a dynamic language, it shares many similarities to Ruby, Perl, and Scheme. The language is very popular for scientific computing and ...

learn more… | top users | synonyms

0
votes
0answers
8 views

Requirements to install cx_oracle

I'm trying to install cx_oracle on Mint 17.1. At first, I got an error "cannot locate an Oracle software installation". I then attempted to install Oracle 11g, but the installer failed. There was a ...
0
votes
0answers
7 views

Request authentication on gatt server with BlueZ 5.37

I am running on a rpi a gatt server(example-gatt-server modified) using BlueZ BLE stack and all runs just fine but i was wandering if anyone managed to set up a PIN authentication for the server. ...
0
votes
2answers
26 views

Unable to add spaces

How can i add spaces between my outputs using sed/echo or any other command in linux? Preferred Output: Virtual Machine Test01 status Running. Virtual Disk Test01 size 61GB Physical Disk ...
0
votes
0answers
7 views

mitmproxy ignore all websocket connections

At the moment, mitmproxy doesn't seem to be able to handle websocket connections. How can I just pass these on so that clients can still connect with a websocket server? Here's my current command: ...
0
votes
0answers
6 views

When calling a python program from a context menu, the program only opens if the right clicked file is in the same directory as the script

I have created a python script which is a simple IDE. When selecting "Edit with RavenIDE" in the context menu of a .py file, the program will open that file. Unfortunately, it only opens the file if ...
1
vote
0answers
10 views

python34 installing rtree on Windows 64

I am using windows10 64 bits, my os.name is 'nt', I used pip to install but its complaining about the spatialindex_c.dll File ...
1
vote
0answers
12 views

Running `pip` gives 'command not found' after successful Python homebrew install

To preface, I am very bad with the terminal, please be patient with me. when I run pip I get: zsh: command not found: pip I have installed Python 2.7.11 with brew, which should allow pip to work ...
-1
votes
1answer
22 views

Notepad to .py file [duplicate]

When I first made a .py file I told it to open in notepad, and now it wont run in cmd, it only opens the notepad, does anybody have a fix for that?. I thought that i was supossed to run it by dobble ...
-1
votes
1answer
31 views

How do I convert a setup.py file to an egg file for Deulge 3rd party plugins in Windows?

I do not understand how to change a 3rd party plugin into an egg file using python. An egg file is the only file the deluge will accept as a proper plugin. The problem is that all the third party ...
1
vote
0answers
17 views

How does the LZMA Algorithm works?

Making some research on the net, I found that one of the most recent, optimized and high-performance algorithms for data compression, especially in term of compression ratio and decompression time is ...
-1
votes
1answer
36 views

How can I constantly check that a python script is running 24/7 and is not down?

I have a python script which has to run 24/7 on a Linux server. What's a wise way to ensure it's up? They suggested me to use cron and the 2nd another script which checks the 1st one somehow.
0
votes
0answers
16 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
1answer
30 views

How to run a python script on a server 24/7?

I have a python script which I have to run on AWS 24/7. How can I do that? Should I just run it as I'd do locally: python3 main.py Or should I be: python3 main.py & ? Is there any ...
0
votes
1answer
14 views

Wrap ffmpeg for extracting audio from video in a python function

I'd like to wrap ffmpeg in a python function for extracting audio from video. I can successfully extract audio from mp4 videos on the command line. ffmpeg -i sourcevideo.mp4 -vn -acodec copy ...
1
vote
0answers
11 views

Can't import python module in .vimrc

So, I decided to try out powerline in vim, and for that reason I installed pypy using brew. I installed macvim as well and it is compiled with python support. Following powerline installation ...
0
votes
0answers
93 views

Installed Python 2.7, but Module in /usr/lib/python2.6/site-packages

I'm running CentOS, it already has Python2.6. I installed Python2.7 and I can see version 2.7 with python -V. I installed demjson module(pip install demjson) and then I try to execute the program. It ...
0
votes
0answers
21 views

Python console keeps popping up in Sublime Text 3

I have configured installation of Sublime Text 3 in one of my Windows machines. Now, I used PackageSyncing to sync packages to another installation of ST3 on another Windows machine. (Both are Windows ...
0
votes
1answer
10 views

Python Script Error

When I try to run the following script SyntaxError pops up indicating the else statement. I ran it in python 2.7.11 and 3.4.3 but it won't work. I am new to programming and cannot figure it out myself ...
0
votes
0answers
19 views

Python cannot assign requested address

I was trying to get the IP address on my Raspberry Pi with python: def get_ip(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) return socket.inet_ntoa(fcntl.ioctl( s.fileno(), ...
0
votes
0answers
31 views

Transfer speed over network faster than from the server itself Ubuntu 14.04

I have a home server low powered 800mhz 2 cpu running Ubuntu 14.04 LTS. I have attached a 5TB external hard drive USB 3.0 and I get average 30MB+/s read speed using hdparm -t --direct. My issue is ...
0
votes
0answers
9 views

How do you add Python syntax highlighting to a markdown file in vim?

For Vim how do I add Python syntax highlighting to markdown files? Context I'm creating a markdown document to show how to use a project. Fairly simple thing if __name__ == "__main__": ...
0
votes
3answers
26 views

Attempting to make a multi-column graph

I am trying to make a column graph where the y-axis is the mean grain size, the x-axis is the distance along the transect, and each series is a date and/or number value (doesn't really matter). Here ...
0
votes
0answers
11 views

How to make sure our script is using a proxy

I have a python script I made which requests pages on the web. I am using a mac os and am using a socks proxy on 127.0.0.1:9150 on my wifi (pass all apps thru proxy --tor--). Using wireshark, how do I ...
0
votes
0answers
12 views

Web scraping in the background of Firefox

I am looking for a way to do web scraping in the background of every day Firefox use. What I mean by this is, is there a way for me to set Firefox to run a python web scraper on specific web pages ...
-2
votes
0answers
17 views

Is there a label/goto in python? [migrated]

We can use goto and :label in batch. Is there anything like it in Python? I am a beginner in python. Thanks SuperUser
0
votes
1answer
35 views

upgrade python form 2.6 to 2.7 on Centos 6.5

I want to update my python version on server, my current Python version is 2.6 and I want upgrade it to 2.7.plesk installed in our server and also I have access to ssh. How can I upgrade it in Centos ...
1
vote
1answer
31 views

How to copy a .zip from within a .tar to a given location without extracting entire .tar using AWS S3 CLI

OSX 10.11 - python3.5 or AWS CLI (or other tool?) I have ~ 5,000 subdirectories within an Amazon S3 bucket, each subdirectory contains a single .tar. In each .tar it contains only one .zip, ~<1mb ...
0
votes
1answer
30 views

Why is 256 color display not working with linux console, while it does with screen?

I am working on a python program with a text-mode GUI based on urwid. urwid is a library to create ncurses-style programs with python. Operating System is CentOS 7. Everything works fine under ...
0
votes
1answer
79 views

Can't connect to download packages

I'm having problems getting packages (spicy, stats,etc) I use python and need to install new packages but even when running on terminal I can't. When trying to install homebrew I got the following ...
0
votes
1answer
25 views

Accidentally removed dist-packages folder, what to do now?

I did something very stupid. I was copying some self written packages to the python dist-packages folder, then decided to remove one of them again by just rewriting the cp command to rm. Now the ...
0
votes
0answers
9 views

Upgrading from Python to 2.7.10 to 2.7.11 on OSX [duplicate]

How can I upgrade Python from 2.7.10 to 2.7.11 on OSX (Yosemite)?
0
votes
1answer
71 views

Upgrading from Python to 2.7.10 to 2.7.11 on OSX

How can I upgrade Python from 2.7.10 to 2.7.11 on OSX (Yosemite)?
0
votes
0answers
9 views

dpkg can't configure python-pkg-resources

Cubieboard2, Debian Wheezy $ uname -a Linux cubieboard2 3.4.79 #2 SMP PREEMPT Sat Feb 15 10:02:52 CST 2014 armv7l GNU/Linux I'm trying to update the packages, but the process fails at ...
0
votes
0answers
45 views

PyCharm 5.0.3 keeps trying to run files with python 3.5 instead of 2.7

I can't change Python default interpreter to 2.7.9 in newest PyCharm version 5.0.3. Anyone know how to do it? Any .py file I open is run by 3.5 python interpreter. Screenshots: ...
1
vote
0answers
22 views

I cant run python from cmd but it lead to python.exe

I am new in python and i try run it in window. I use window 10 and python 3.5. I changed the environment variable already and when i type "python" in my cmd it doesn't run like i saw from the other ...
1
vote
0answers
19 views

pip install virtualenv taking forever on Windows 7

I'm trying to setup everything in order to start developing with python and Django on a Windows 7 laptop. I already installed python 2.7.11 from here and installed pip using the get-pip.py script and ...
0
votes
0answers
18 views

“Please check for misspellings” upon save on PythonFiddle

Why do I get ”Please check for misspellings” on PythonFiddle when I try to save a script? What is misspelled here?
2
votes
0answers
53 views

Why does dnf uninstall python-pip want to uninstall Fedora?

Having trouble installing packages with pip (wow. so unexpect. much surprise) and upon trying to toss it entirely and start over (no, dnf reinstall was not sufficient) I found that dnf seemed to think ...
-1
votes
1answer
131 views

Installing Wing IDE on Kali Linux 2.0

I am currently reading the book 'Black Hat Python', and am having a problem installing Wing IDE on Kali Linux. Please do help me out!
0
votes
0answers
28 views

Backup of /usr/local/XXXX on upgrade

I kept some Python scripts in my /usr/local/python folder on my Synology NAS. I upgraded Python and my files were gone. Is there any way to recover it?
0
votes
0answers
10 views

Apache: Serve static web content and django app from the same URL

I want to know whether it is possibe to serve static web content, ie. public_html and my django app from the same url. To be more specific, I want requests to first go through public_html and then ...
3
votes
0answers
66 views

Can't install python requests library on Centos 5.11

I'm running Centos 5.11. I'm trying to install the python requests package. But pip keeps giving me syntax errors. pip help returns [root@32437-201824 bin]# pip help Traceback (most recent call ...
1
vote
1answer
21 views

CGI scripts or other? [closed]

So it is my first time writing scripts. Here is the scenario: On our companies web server there are tools written in javascript that can verify user's accounts, change people passwords, and things ...
0
votes
0answers
28 views

How to invoke Pyscripter debugger

Using pythonwin, you can invoke the debugger by pywin.debugger.brk() Can you somehow do the same thing with pyscripter? The advantage of this method is that your code runs at normal speed until the ...
0
votes
0answers
15 views

uWSGI: how to serve static files from root and an app from a sub directory?

I am using Cloud 9 IDE to build a website. My goal is to serve a static website from the site root /index.html and so on. The content in this site will be regenerated on a schedule (daily in this ...
1
vote
1answer
10 views

Running multiple Python servers on different URL mappings

Python allows me to create and run applications on any port of my choosing, but how do I handle several of such apps together so that the end user can differentiate only by URL? Basically, what I want ...
1
vote
1answer
44 views

Running Pyplot over Putty ssh from windows machine to linux

I am running python code on a linux machine through a putty ssh from a windows machine. I need to run the following commands: dataframe.plot() matplotlib.pylot.savfig("some figure.png") Nothing ...
0
votes
1answer
37 views

Cannot install python cryptography on Debian 8.2 Jessie

Recently, I was trying to install letsencrypt (which is now available in public beta), but noticed that running letsencrypt-auto won't finish because of some error while installing cryptography ...
1
vote
0answers
89 views

Error installing Python package Leven using Visual C++, Python27 64 bit, Windows 10, even installing directly from github

I am having trouble installing the Python package Leven. I downloaded the python package from there. I extract the folder, went to where setup.py is located, open cmd and run python setup.py ...
0
votes
0answers
18 views

Add a new locale to OS X (/usr/share/locale)

I am trying to add a new locale support to my OS X system, which I could then use in Python scripts. It is Indonesian locale (id_ID) and I currently do not have it in my /usr/share/locales directory, ...