0
votes
1answer
21 views

Homebrew App Not Using Python Package

I installed duply using Homebrew and tried to create a backup to Google Drive. Doing so results in the following error: BackendException: Google Docs backend requires Google Data APIs Python ...
0
votes
1answer
116 views

Why do python's os.stat and du and ls not agree on block size?

While writing a simple function that computes the quantity of blocks consumed in a directory, I checked with du to see that I was getting the same answers. Why do ls and du say this file occupies ...
1
vote
1answer
135 views

Unix to Windows equivalent

I am working on project which is currently on unix platform and we are going to port that project on windows. I want to know if there is any windows equivalent to following /proc/cpuinfo ...
0
votes
0answers
136 views

Numpy Module not working…wrong architecture

My Bash profile looks like this : export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages My error looks like this import numpy Traceback (most recent call ...
0
votes
1answer
266 views

IOError: invalid Python installation …/config/Makefile (No such file or directory)

After updating from OS X 10.8.3 to 10.8.5 and XCode my python installation stopped working. This is the output when I try to execute python. Traceback (most recent call last): File ...
0
votes
1answer
101 views

How to use virtualenv?

Today I saw an example of how virtualenv command is used. It was the following four commands: virtualenv /tmp/vetest source /tmp/vetest/bin/activate pip install ipython-notebook deactivate The ...
3
votes
1answer
1k views

Identifying files that changed in the last hour

Right now I use python to figure out files that have been modified in the past hour. This is really slow on my network (~50000 files - and checking each one's timestamp). I have a custom script to ...
0
votes
1answer
854 views

`pip install` failing with “Permission denied” in a virtualenv

I'm currently using pip + virtualenv to isolate the Python dependencies in my Django application. It's worked alright so far, and I've been able to install a bunch of packages in the past. But when a ...
0
votes
1answer
38 views

how can i choose the destination path for my python in the Centos 5.3

This may sound stupid but I'm trying to install python but it is installed in /usr/bin/ but I want to install it on /usr/local/bin. how can I do that?
0
votes
1answer
51 views

Default PYTHONPATH on Mc

I am just getting into Python, and accidentally deleted my default PYTHONPATH. Can someone please tell me what paths are included in a clean Python install? Thanks!
0
votes
0answers
73 views

Merge command history between the Python shell and the Unix terminal

A convenient feature of most Unix terminals is the fact that you can hit the up and down arrow keys to scroll through your command history to repeat old commands. This feature also exists in the ...
1
vote
1answer
550 views

Installing .egg file for NLTK

I want to install NLTK on Ubuntu, and I'm following the instructions for UNIX here: http://nltk.org/install.html In step 2, I downloaded the egg file. Then I ran sudo sh setuptools-0.6c11-py2.7.egg ...
0
votes
1answer
86 views

Python by default on all unix systems? [closed]

There was a discussion on which language to choose for a system checker. The system checker is supposed to be a script running on unix systems. On Gnu/Linux systems seem to always have it installed ...
1
vote
2answers
1k views

Can't install GNU readline on CentOS 5 (Amazon EC2)

I'm attempting to install GNU readline on a CentOS 5 so that I can use it with some Python 2.7 modules, specifically the Cmd module. I've installed Python2.7 as a standalone library per these ...
2
votes
2answers
2k views

Multiple crontabs for one user

is there a way to use multiple crontab files for one user? Thinking something along the lines of crontab file per project instead of crontab per user... Any help is appreciated...
6
votes
10answers
11k views

Scripting: what is the easiest to extact a value in a tag of a XML file?

I want to read a pom.xml ('Project Object Model' of Maven) and extract the version information. Here is an example: <?xml version="1.0" encoding="UTF-8"?><project ...
2
votes
1answer
437 views

How do I copy an egg from one python installation to another?

My server has Python 2.6 installed by default. I don't dare mess with the defaults, so I've installed Python 2.7 and Python 3.2 in separate locations and switch between them using bash alias as I need ...
0
votes
1answer
631 views

Installing Python on cygwin

How do I install Python on cygwin? I downloaded the Python-2.7.2.tar and uncompressed it. What do I do with it now? I tried running install-sh but it says no input file specified
0
votes
2answers
351 views

OSX: Python packages fail to install, error message “/usr/local/bin: File Exists”

I keep trying to install django and other python packages, and I keep getting the exact same error message: Installing django-admin.py script to /usr/local/bin error: /usr/local/bin: File exists So ...
1
vote
1answer
780 views

Python version priority in OSX/UNIX PATH environment variable

I want my system to use /usr/bin/python, but it's currently using /opt/local/bin/python, which points to /usr/bin/python2.6. I tried modifying the PATH variable in my .bashrc as PATH=~/bin:$PATH ...