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 ...
0
votes
1answer
61 views
Which database should I learn? [closed]
I'm currently learning Python (2nd attempt, by the way) and I wanted to know which is the best database to learn in order to complement my studies? I'm currently a front-end developer, so back-end is ...
2
votes
1answer
45 views
Package Python Script and Modules Into .rpm
I have a command line python script that I'd like to distribute. Being a PHP/Web guy, packaging software like this is a bit new to me.
The python script is simple, currently is run like this.
...
0
votes
1answer
31 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!
2
votes
1answer
76 views
emacs auto-complete behavior with underscores in python mode
In my .emacs I have the following line of code:
(modify-syntax-entry ?_ "." python-mode-syntax-table)
This is so that commands like forward-word and backward-kill-word stop at any underscores that ...
1
vote
3answers
677 views
CentOS 5 Python - How To Force Specific Version?
I have a python program that I'm trying to run, my fresh install of CentOS came with 2.4.3 of Python, but I just manually installed 2.7. My install is located at /usr/local/bin/python2.7, so its all ...
0
votes
0answers
42 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 ...
2
votes
1answer
63 views
Allowing a process in screen to restart itself
System is Debian Whezy x64.
I currently use screen to start programs as user rather than root. It looks like this:
In /etc/rc.local, I call
su -c "/home/user/scripts/startup" user
Then, in ...
3
votes
1answer
914 views
Extremely slow pypi package retrieval with i.e. pip
Finding python packages using tools such as pip or easy_install takes very long, up to ten minutes, on my local desktop running Ubuntu 12.10. The same procedures are lightning fast on my cloud ...
0
votes
1answer
108 views
How to customize directory for python cgi script on mountain lion
I start to learn Python tonight...When I put python cgi script file under ~/Sites/, they can be executed via localhost/~USER_NAME/SCRIPT_FILE_NAME.py! But my project root is not under Sites/, so every ...
1
vote
1answer
44 views
Why do annotations been added for PyDev not work?
When I use PyDev to add an annotation (such as @IgnorePep8) from the "Quick Fix / Content Assistants" the annotation is not added to the document. Other fixes available work.
What do I need to do to ...
1
vote
1answer
123 views
Dropbox.py on RHEL 6
I'm trying to run a headless install of Dropbox on RHEL 6. The daemon seems to be running, but when I try to use Dropbox's associated dropbox.py tool to control the daemon, it fails to run with the ...
0
votes
1answer
28 views
How can I run Bitnami OSQA with other web service (wordpress, joomla)?
I installed OSQA Bitnami on my VPS. And I also point 3 domains to this VPS. Now I want each domain point to different web service (I have another PHP website I want to host here).
How can I run php ...
0
votes
1answer
522 views
Python script not running as cronjob
I have tried everything and I've seen other questions here regarding this but I cannot for the life of me run a python script as a cronjob.
I've tried the following.
* * * * * /usr/bin/python ...
0
votes
1answer
446 views
How can I make script globally executable in Ubuntu?
I have a bash script which I would to like to execute from everywhere (like other Linux basic commands, for example ls). I tried to follow this tutorial but it doesn't work, I always get command not ...
0
votes
2answers
159 views
Handling MS office documents on Linux without root access
I have a linux hosting account with Godaddy (Centos 5.5), and I am developing an application to process users MS Office documents.
I have found solutions such as antiword, unoconv, catdoc, Apach ...
0
votes
3answers
308 views
How to run a command from the terminal/a script without the need to wait until the program exits?
The problem is that if I execute a command (eg. a Python script), the terminal or script is waiting until the program return a exit status so that it can continue or return to terminal. Is there a way ...
0
votes
0answers
40 views
Zip multiple excludes
I presently have a small script that runs a zip command that archives CSV folders in a directory. I have it excluding .zips that are already in the directory. I would now also like for it to exclude ...
0
votes
0answers
32 views
Error 1045 access denied
In my VM CentOs, I created another user 'sheilay'.
As sheilay, I created a project PUPAIS and as I enter the command python manage.py syncdb, there was an error (1045, "access denied for user ...
0
votes
0answers
65 views
Is anything wrong with my configuration of nova keystone and glance cannot create vms
i just set up a development environment of openstack in one node of my Desktop ,and i confirm that it supports virtualization .My question here is that after installaion and start the basic component ...
1
vote
0answers
188 views
Python 3.3, Issues with PATH
All,
I am just beginning with learning Python 3.3.
After installing Python 3.3 and having the installer update my PATH (on Windows Vista) automatically, I am trying just typing python from any ...
0
votes
1answer
158 views
Install python module for one user without root access?
I have a Python program that uses wxPython and I bundle with py2app on Mac. This worked perfectly fine under 2.6 (I had wx and py2app installed in 2.6). But because of some bugs in the zipfile library ...
0
votes
1answer
65 views
Renaming PATH variable without changing the file name
I want to add shortcuts for Python 32bit and 64bit to the PATH directory for the command line, one as python-32 and the other as python respectively. What's the easiest way to do this?
I have added ...
1
vote
1answer
260 views
Is it safe to uninstall Python 2 from OS X 10.8 (Mountain Lion)?
I'm doing a clean-out and refresh of my programming environment and since all the coding I do is in Python 3, I'm wondering if the easiest and cleanest option is to just completely remove Python 2 ...
0
votes
2answers
577 views
Installing setuptools for python 2.7.3 on SL6 returns an error that I don't have zlib. But I do
I have a machine running Scientific Linux 6
It comes with Python 2.6 by default
I've also installed Python 2.7.3 because I need to run some modules which only work with newest versions. This is ...
0
votes
1answer
85 views
Installing Pytz on a mac
Can someone tell me how to install Pytz on a mac. I can't get the easy install to work. It gives me an error that I am not on the admin account, but I am.
Thanks
Here is the error I get:
error: ...
-1
votes
1answer
282 views
Is there a way to force-reinstall OS X 10.8.2 Mountain Lion?
I had upgraded to 10.8.2 a few months ago and now, when trying to install some python modules, have messed up my default python installation on the Mac. I was wondering if there was a way to re-update ...
0
votes
1answer
87 views
How to run mapnik python on OSX?
I just installed mapnik with "brew install mapnik" on OSX Lion. I tried running:
"import mapnik" after opened the system python terminal with the command "python" and I get a
"ImportError: No ...
1
vote
0answers
44 views
Aptana Studio 3 opens a copy of source while debugging
While debugging a Python script, Aptana always opens a second window with my source code. If I edit this second file, and then go to my "original" file, it will ask me if I want to load the changes ...
1
vote
1answer
61 views
python, cron and the interaction with Growl
I have the following python file called temp.py
import subprocess
p = subprocess.Popen('growlnotify -m \"Program is not running\"', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
...
1
vote
1answer
210 views
Massively messed up python installation stopping Yum from running in Redhat
I stupidly rm'd /usr/lib/python2.6 when trying to install 2.7.3 and now my system is hugely screwed up.
I cannot run yum, pip or easy_install .
Yum doesn't work:
[root@bobby tmp]# yum
There was a ...
0
votes
0answers
66 views
Can't access Django site after Debian migration
Yesterday the folks on Dreamhost migrated my shared server from Debian Lenny, who has running python 2.4, then I upgraded it to python 2.7.2, to a Debian Squeeze, who runs 2.7.3.
In this migration my ...
0
votes
0answers
18 views
Why do I keep getting “too many open files” errors? [duplicate]
Possible Duplicate:
Is there a fix for the “Too many open files in system” error on OS X 10.7.1?
I'm baffled by some problems I'm having maintaining Python packages on an OS 10.8 system , ...
1
vote
1answer
74 views
Do I need to restore directory permissions to their state prior to a reverted homebrew installation?
I'm trying to back out of a homebrew installation on OS 10.8.2 and am not sure I understand what I need to do to (or whether I need to bother to) restore permissions to what they were before the ...
0
votes
0answers
271 views
Can anybody show me how to call from command line curl `POST` request with array for parameter? [closed]
Can anybody show me how to call from command line curl POST request with array for parameter ?
I am developing server app with Tornado/Python and need to get parameter like [value_1,value_2...]
3
votes
2answers
72 views
Deleting Certain Extension with Bash (quickly)
I have seen other threads about deleting a certain extension in a directory. However, when I try it, it seems to work but takes a long time to go through directories and say "Permission denied" on ...
0
votes
1answer
87 views
How to remove python installed from source in Oracle Enterprise Linux 5.4
I installed python 2.6.6, I already had python which is lower version 2.4 by default.
Now I want to remove the python 2.6.6 ? There is no uninstall target and remove procedures from the internet.
I ...
1
vote
1answer
422 views
How to install PIL with zlip and jpg support in centos with pip python
When i install pip install PIL then i get this
*** TKINTER support not available
*** JPEG support not available
*** ZLIB (PNG/ZIP) support not available
*** FREETYPE2 support not ...
0
votes
0answers
829 views
How do I install pip, virtualenv, python 2.6, and python 2.7 on Ubuntu 12.04?
I thought this would be simple, but I think I'm missing something easy.
I have python 2.7 installed in Ubuntu 12.04 via apt. I grabbed the source for python 2.6 and compiled it. I now have the ...
1
vote
1answer
230 views
From where can I get “Python Launcher” for Mac OS X Lion?
I use a macbook (air) with OS X Lion on it. I have Python 2.7 installed already but I can't seem to find a "Python Launcher.app" anywhere on the system.
I tried installing with with pip but it ...
2
votes
5answers
774 views
Is there a tool that helps me draw a venn diagram easily?
For some reason I have to draw a lot of venn diagrams and I hope I can just specify the sets and its elements and it emits the right image. I do not care about the blazonry.
So is there any tool or ...
1
vote
0answers
56 views
No output returned when curl ing any URL in Red Hat 6 but the same url works in lynx browser
I am trying to install some packages in Python using easy install. But i get a 'Download Error' for any package i try to install. So i tried to test if internet is accessible at all from the machine ...
0
votes
1answer
84 views
How to hide python pyc files in Windows Explorer?
Is it possible to hide files with a certain extension? I'm using Windows Vista and don't want to see pyc files in the Windows file explorer. It would be nice to reduce the clutter. Thanks
0
votes
0answers
34 views
Debug variables not showing up in Komodo IDE
When I first started using ActiveState Komodo IDE the Watch/locals and globals tab (I think all 3) were working correctly when I was debugging. They were showing variables in my python apps and ...
0
votes
0answers
141 views
cxfreeze installation : error: command 'gcc-4.2' failed with exit status 1
Installed XCODE 4.5.1 in my Mac machine(mac osx lion 10.7 version).
Installed python 3.2.2 and pyqt4.
When i tried to install cx_Freeze 4.2.3, installation error occurred with gcc4.2 failure.
If ...
2
votes
1answer
74 views
GCC error could not create c++ files during pyqt4 install in osx lion using xcode 4.5.1
Intel mac osx lion 10.7.
Installed xcode 4.5.1 version and also installed command line tools from xcode preferences.
Could not install python 3.2.x from its source code since i wanted to create so ...
0
votes
0answers
60 views
sublimetext2 is not working but my python is working
after asking myquestion here still I have problem
I can go to commandline and then write
python
so my python program doesn't have any problem
I have downloaded sublimetext2 windows64
my ...
0
votes
3answers
82 views
forcing windows 7 not to open python script executables (specificaly pip an IPython) in a new popup cmd window
Meaning that when I run from the command line something like:
Ipython
or
pip install somelib
windows runs them in a new cmd window instead of in the current window. therefor if there is an error ...
1
vote
1answer
259 views
“Filename is not valid or too long” and “The specified path does not exist” in one file
I have a file in a folder that I use for python programming and when I moved the folder everything would go but the file.
I don't know how it got there but when I try to delete it I get "Filename is ...
0
votes
2answers
161 views
Create a term-document matrix from files
I have a set of files from example001.txt to example100.txt. Each file contains a list of keywords from a superset (the superset is available if we want it).
So example001.txt might contain
apple
...
1
vote
2answers
401 views
How to run a python script from its icon on Ubuntu?
I wrote a simple python script (with GUI in wx) and I would like to run it on Ubuntu, simply by just double-click it. I tried
chmod ugoa+x myScript.py
my script has the hash-bang line at the ...