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
1answer
10 views

Can't use python in interactive mode on new msys-git terminal?

I recently upgraded my laptop, which ran a 32-bit Win7, and my new laptop runs a 64-bit Win7 installation. I am installing git 2.5.1 from git-scm.com, and the latest python versions (both 3.4.3 and ...
0
votes
0answers
11 views

Python server error when using the library Scrapy [on hold]

Traceback (most recent call last): File "/usr/bin/scrapy", line 11, in sys.exit(execute()) File "/usr/lib/python2.7/dist-packages/scrapy/cmdline.py", line 109, in execute ...
1
vote
0answers
9 views

python2.7 from macports stdin issue

My python2.7 from macports seems to mess up with osx terminal in a weird way. Here is what I mean. The exact input from the keyboard was: /opt/local/bin/python2.7<ENTER> a = 3<ENTER> ...
0
votes
0answers
31 views

OS X El Capitan: zlib is missing, breaking Haxe and pip

I upgraded to El Capitan (version 10.11 Beta 7, build 15A263e) a few days ago. Aside from issues related to permissions, everything seemed to work fine. However, when I try to run some Haxe libraries, ...
0
votes
0answers
7 views

Python (seleniumrequests)Class, Constructor, Method Not Working [migrated]

Newbie question. I created a class: class WP(seleniumrequests.PhantomJS): def __init__(self, wpurl='https://blah.org/download/release-archive/', ...
1
vote
0answers
14 views

youtube-dl gracefully stop download

I'm using youtube-dl to download a live stream and I'd like to be able to limit the time of the download, closing the connection once that time has elapsed. Is there a built in way to close the ...
0
votes
1answer
13 views

How should I record metrics on code that is being used by many people?

I have code (let's say a bunch of Python scripts) being used by many people (on a common AFS network). I would like to be able to collect metrics on the usage of the code (compile times, run times and ...
0
votes
0answers
25 views

Is there a way to download wikipedia pages programmatically?

I'd like to download some Wikipedia pages as part of a program. Currently I would go to the pages on a browser, click "Download as PDF" manually, wait for it to render, then download it, then rename ...
1
vote
3answers
39 views

Mass find / replace in file using python

I have a file from editing in wich I need to change some stuff. My knowledge of python is very basic. It would save me hours of copy/pasting if I would find a solution. My file contains this: 002 ...
0
votes
0answers
6 views

Eset Endpoint blocking CherryPy web service?

I'm not positive I'm asking this in the right place, so if you think it should be elsewhere, please be gentle and tell me where you think I should ask. I have a web service written in Python, using ...
0
votes
0answers
5 views

Pybrain is not able add modules into a feedforward network. I am not able to figure out why? [migrated]

from pybrain.structure import FeedForwardNetwork, SigmoidLayer, LinearLayer, FullConnection #creating a feed forward network n=FeedForwardNetwork() #creating varrious layers inlayer=LinearLayer(2, ...
1
vote
1answer
22 views

Mapped Drive inaccessible from Windows Scheduled task

I am working with python 2.7.9 (64 bit) and windows server 2012 R2 I am trying to set up a windows scheduled task to run a lengthy python script every day. I've managed to by calling the python from ...
0
votes
0answers
12 views

Issue with python path after installing Vagrant

I just recently installed Vagrant using this guide: https://www.reddit.com/r/deepdream/comments/3c2s0v/newbie_guide_for_windows/ I noticed that after that when using git bash, I was unable to use ...
0
votes
0answers
27 views

Regarding: Generate html based on directory structure [closed]

"Generate html based on directory structure" So why did you delete my post. I just posted the truth that the script doesnt work and gave a reason. What is wrong with that ?
0
votes
2answers
48 views

Info on '#!' (shebang, hashbang, crunchbang, etc.)

I have a question about the phrase '#!' that appears at the top of every python file, most bash files, and several others. I've already performed a search for this term on both Google and this ...
0
votes
0answers
8 views

Running PyCharm remotely using a local PyCharm?

Does PyCharm provide an option of remotely modifying a python program and running it on a different server, which for itself runs a full version of PyCharm? If I want to simulate this process without ...
0
votes
0answers
9 views

How do I install pySerial for python3, when the installer can't detect python3?

I have python 2.7 and python3.4 installed on my computer. I am trying to install pySerial on my computer through its py 3K installer. Problem is that when I run the installer, it can ONLY find python ...
1
vote
0answers
10 views

How do you download a zipped build from a jenkins job using “jenkinsapi” module in Python?

Has anyone tried download a build using jenkinsapi module in Python?
0
votes
2answers
19 views

virtualenv cannot create enviroment

System used= ubuntu 14.04 , python = 2.7.6 . I'm trying to setup virtualenviroment using virtualenv to setup django1.8 . I installed pip and virtualenv using below commands apt-get install ...
1
vote
1answer
15 views

Python interpreter slowly pastes code

When I first started using Python, the process of pasting code was fast; code I copied was pasted almost instantaneously into the interpreter. However, at some point roughly 6 months or so ago the ...
0
votes
0answers
12 views

install python package with pip on codeanywhere.com

When i try to install python-constraint on codeanywhere.com using pip the console log's this error: copying logilab/constraint/setup.py -> /usr/local/lib/python2.7/dist-packages/logilab/constraint ...
2
votes
0answers
35 views

McAfee firewall blocks localhost in subprocess only

This is a programming-related question but seemed more appropriate for SuperUser than StackOverflow. I have installed McAfee (a trial version of LiveSafe -- Internet Security) on my PC. I am running ...
0
votes
0answers
13 views

Can't connect to django runserver from my phone using pycharm but it works with visual studio

I'm trying to connect to my development server (local django runserver) while running from pycharm. I have a custom build of an android app that points to my ip address and the phone is on the same ...
0
votes
1answer
16 views

How does conda's source activate foo work

Anaconda's documentation for managing environments states that activating an environment is done using: source activate <env-name> I've noticed that with conda installed, activate is in the ...
1
vote
0answers
25 views

How to automate pressing right command key on a macbook using python

I am doing some automation for my testing work on mac. While a lot of tools and libraries are available to simulate button pressing on keyboard(like pyautogui and osascript), I could not find a way to ...
0
votes
1answer
34 views

Netcat connection closes after connecting through python

So I have installed Netcat on my raspberry pi and my mac and I can get them to connect really easily. Problem is that if I want a python script on my mac to establish the connection when the raspberry ...
1
vote
0answers
21 views

why is my master node idle when running gnu parallel remotely?

I'm using gnu-parallel to run a number of python scripts in parallel across a number of computers in my gigabit network. The files being processed are located on a tmpfs (RAM) folder on my master ...
0
votes
1answer
41 views

why `./file.py` was working but `bash file.py` not work?

Why ./file.py was working, but bash file.py not work? When i run bash file.py or . file.py or source file.py get error like this: file.py: line 4: syntax error near unexpected ..... But ./file.py ...
0
votes
1answer
27 views

regex to match everything but substrings beginning with hashkey

I am building a regex to filter out any substrings beginning with '#' or '@'. I am trying to filter tweets from those. Currently it matches everything no matter if the string contains words beginning ...
1
vote
0answers
19 views

Issue installing PyPar on Ubuntu

I am attempting to install pypar the parallel computing python toolbox on Ubuntu ver 14.04.1 LTS (code name trusty). Essentially I'm having installation errors and was wondering if anybody knows what ...
-1
votes
1answer
25 views

Install Python on Centos

I have some scripts on my server that I to run when the url is loaded so I have been looking around and I'm not sure but from what I can tell I want to install apache python? Because right now I have ...
0
votes
1answer
47 views

How can I rename all image files within a directory (and recursively within its subdirectories)?

I have a directory containing a large number of image files, some of which are in subdirectories. I need to rename all image files matching *.png, *.jpg, *.jpeg, *.bmp, *.gif using a simple pattern ...
0
votes
2answers
24 views

I apparently have two different versions of Python installed on Debian; how can I remove the older one?

Here is the original question I posted on Stack Overflow. I’m on Debian and have Python 2.7.10 installed from sources (compile && make && make install) and 2.7.3 from an unknown ...
-2
votes
0answers
17 views

Hunting Season : Catching a periodically executed application

There is an application that periodically runs on my machine. It doesn't appear to be visible unless I'm alt+tabbing between applications whereupon it rudely disrupts the alt+tab operation and I end ...
0
votes
0answers
35 views

Windows 8.1 + embeddable release of Python 3.5 = “Python has stopped working” error

So I downloaded Python 3.5.0b4 - Windows x86-64 embeddable zip file and placed it into %USERPROFILE%\Documents\python. I then opened up PowerShell, cd'd into that directory and typed ./python and got ...
1
vote
1answer
19 views

How to start matlab daemon

I have a plist calling a python script every day. The python script calls different matlab routines depending on their success. This works perfectly fine when I'm using the computer but when I'm not ...
0
votes
0answers
26 views

What kind of RAM to choose for data analysis? [closed]

I'm planning to upgrade my computer and also want to buy some new DDR3 RAM modules. Making some research I realized that there are 2 main characteristics of RAMs (beside capacity): frequency and ...
1
vote
2answers
58 views

How to update git on RHEL without access to root?

I am trying to get my IDE set up at work for a project I am working on. I am coding in python and working in PyCharm because of its awesome git support. However, whenever I try to configure git on ...
0
votes
0answers
20 views

What is the best way to create a local development environment in a linux machine without being in sudoers

I use a workstation for my development but it does not include all the libraries for my case. I like to install them for my use without any system wide effect. How should I proceed this is a linux ...
1
vote
0answers
46 views

How to install sll for python?

I have a strange problem that is described at SO http://stackoverflow.com/questions/31549052/how-to-interpret-this-traceback We got nearly nowhere trying to solve the problem though it doesn't look ...
0
votes
0answers
25 views

Mercurial fails with missing attribute using Python 2 instead of Python 3

I'm working on a multiuser system with mercurial. I haven't been using the system lately, and today I wanted to start again, but mercurial refuses to work: $ hg help *** failed to import extension ...
1
vote
2answers
30 views

Is it possible to install python packages without a direct outbound network connection?

I have a server (RHEL) that I need to install specific python packages on. However, my server is firewalled off from internet access so I am not able to install any packages using pip. Is there a ...
1
vote
0answers
12 views

In python how do I execute CMD2 5 ms after CMD1 begins executing? [closed]

CMD1 takes 1 second to finish executing. I want to execute CMD 2 exactly 5 milliseconds after CMD1 BEGINS executing.
0
votes
0answers
11 views

Add only non-python packages to path when installing anaconda

After downloading Anaconda and installing by: bash Anaconda-2.x.x-Linux-x86[_64].sh I was prompted for adding anaconda to the path. I wanted to do this to run spyder from terminal. This however, ...
0
votes
0answers
24 views

setup vim script to execute python file

I searched SO extensively and I can't get to fix this: I'm trying to code a pathogen friendly python plugin in windows. The setup would be: In \vimfiles\bundle\plugin I have a myscript.vim with: ...
0
votes
0answers
37 views

build numpy from source results in wrong architecture

I build numpy from source on my mac to link it to my ATLAS library. Thus, I wanted to run it as described here with these options: export MACOSX_DEPLOYMENT_TARGET=10.10 export CFLAGS="-arch i386 ...
0
votes
1answer
62 views

Screen-saver on and off at Raspberry Pi - script in Python

I'm a noob at programming in python. How do I make a script that awakes the monitor and put it to sleep on a condition? import RPi.GPIO as GPIO PIR = 23 GPIO.setmode(GPIO.BCM) GPIO.setup(PIR, ...
0
votes
0answers
81 views

ADB shell cmd from python script

I'm trying to retrieve and print the firmware version of my android platform using the below listed commands in a python script; import subprocess cmd = 'su -c /system/bin/mmc extcsd read ...
2
votes
1answer
53 views

How do I determine the PID of my python program if there is more then one python program running?

I have two python programs running on my system, say they are called program x and program y. I want to get the pid of program y, but not x for my bash script. When using pgrep python, I get the pid ...
0
votes
2answers
107 views

Run pip for python3 on Fedora

I can't run pip for python3 (3.4) on Fedora 22. Pip for python2.7 is installed on system by default and works fine. I install package python3-pip but can't run it. pip3, pip-3.4, python3-pip, python3 ...