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

remote debugging with pydev > pydevd > “connection refused”. Why?

i'm trying to have remote debugging working in Eclipse (actually Aptana 3). I'm using the same computer both for server and aptana (localhost, ubuntu 12.04) my code looks like this: ...
0
votes
1answer
18 views

Installing Python 2.5 on Cygwin

I would like to install Python 2.5 on Cygwin. (EDIT: I need Python 2.5 in particular, and I am aware that Cygwin setup offers 2.7 and 3.2. I installed those using the GUI and they appear to be ...
0
votes
0answers
31 views

Python 3 on ChromeOS

I just got a chromebook ( Acer C7 ) and would like to do very minimal local development on it. I would like to have Python 3.x at a minimum, and pygame would be even better, but I'm not banking on ...
0
votes
1answer
23 views

python related plugins give errors in vim

So here's an example of a vim plugin having python issues: Error detected while processing function UltiSnipsEdit: line 6: Traceback (most recent call last): File "<string>", line 1, in ...
0
votes
0answers
9 views

Why is httplib2 caching files from other repositories?

So strange... I have one repo, start working on another, and httplib2 stores the other's files under httplib2/OtherProject_files Haha, what's that got to do with anything? Strange... It looks like ...
0
votes
0answers
18 views

Vimscript: Unable to run python script that imports win32 library

I am writing a vim plugin in python that fails when importing the python library "win32com.client". The following reproduces it: myplugin.vim: pyfile [path to python file] python file: import ...
1
vote
0answers
15 views

using win32com.client in python how to find and replace multiple text [migrated]

I'm trying to add multiple string values to a Word document using find and replace with the win32com.client Python library. I can find and replace one value, but I don't know how to do this for ...
-1
votes
0answers
24 views

bash script merge and python slicing [closed]

here's my issue I have 2 files generated in linux that has common output and were produced across multiple hosts with the same setup/configs. These files do some simple reporting on resource ...
0
votes
0answers
16 views

how to I make Windows stop complaining about missing python dll?

When I type "python" at the Command Prompt, it pops up a message complaining that "The program can't start because python32.dll is missing from your computer." I have python 2.7 installed, so I think ...
0
votes
1answer
20 views

How to run a WebPy server on port 8080 using DDNS of dlink router and to access this site from internet?

I have two major issue with setting up a web server using my dlink DIR-600L router. Issue 1: I run a WebPy server on port 8080. But the DDNS service providers (like dlinkddns.com or dyndns.org) only ...
0
votes
1answer
21 views

Sending email through postfix using Python or Telnet

I managed to configure a local postfix server, which works correctly when using the mail command (and I receive emails from the cron deamon), however, if I try to connect using telnet localhost 25 ...
0
votes
1answer
16 views

What's wrong with the Basic configuration of apache and mod_python?

the the Basic configuration of apache is: LoadModule python_module /usr/lib64/httpd/modules/mod_python.so <Location "/mysite/"> SetHandler python-program PythonHandler ...
-1
votes
0answers
9 views

Segmentation fault / Bus error when copying code in Python 2.7 [closed]

Is there any reason why python 2.7 on MacOSX crashes with either a Segmentation fault or Bus error when trying to Copy code using cmd + C from a .py file? This problem has occurred intermittently, ...
0
votes
0answers
25 views

Libavg and Python2.7 don't work together

I have downloaded and installed libavg together with Python2.7. I have installed the 32bit version of Python despite the fact that I use Windows 8 because that's the only way that I could installed ...
1
vote
2answers
30 views

Run python script from Finder rather than edit?

Max OS X. When I double-click on a python script it opens in the default editor. How might I make it so that when I double-click, or choose the script from Applications, it executes from the python ...
0
votes
2answers
13 views

How to execute a chained set of linux commands from python

Following is an example of a shell command I'd like to execute verbatim. Any way to do this in python (i.e. similar to the %x{command} construct in ruby that will take anything you give it.. kill -9 ...
0
votes
2answers
39 views

Failed to install pyglet with python3

I am using Windows 7 and I have installed Python 3.3. I've downloaded pyglet-1.1.4.msi from www.pyglet.org, but when installing it, it tells me that: pyglet requires Python 2.4 or later. The ...
0
votes
1answer
19 views

Installing Python wrapper for METIS: Cannot locate METIS_DLL shared library

I am planning to use Metis for drawing some networks and graphs using Python 2.7. I downloaded Metis from here. I compiled and installed the source code without any problems. For installing the Python ...
0
votes
1answer
41 views

Scapy: TCP Retransmission error

I've been using Scapy to send SCCP or Skinny packets to my Cisco Desk Phone. However I keep getting these TCP Retransmission errors, and I believe this is causing the Cisco Phone to not respond. I ...
1
vote
0answers
15 views

PYTHON EGG Cache extraction error - PYTHON_EGG_CACHE

I have Fedora 18 installed as the OS in my machine. I created a user called myworld. I installed the MapFish virtual environment and created a MapFish application. Now I tried to run that application ...
1
vote
1answer
39 views

How to solve it when make the mod_python?

the verison of RPM is: httpd-2.2.3-63.el5.centos.1 httpd-devel-2.2.3-63.el5.centos.1 apr-1.2.7-11.el5_3.1 apr-devel-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 apr-util-devel-1.2.7-11.el5 the version of ...
-5
votes
2answers
65 views

Which programming languages don't need an interpeter? [closed]

I'm a computer science student and right now I've studied C and Java. Except for C that compile to native code, I don't know other "famous" programming languages that don't need JIT compiler. I mean, ...
-2
votes
0answers
18 views

How to place php site on GoogleApp? [closed]

I'm trying to place my site on Google and have successfully finished all the necessary steps from this page. Example site works fine, but my own site doesn't work, I suppose because it is made not in ...
0
votes
0answers
44 views

Installing Canopy and Kivy on a Windows 7 PC

I installed the Canopy academic version with all default settings on Windows 7, as well as the Kivy portable version. Canopy installed by default into C:\users\d\AppData\Local ... and is my default ...
0
votes
1answer
17 views

Fedora - Python import selinux cannot find selinux_current_policy_path

When I run any python script that does import selinux (such as system-config-users) I get the following error: ImportError: /usr/lib64/python2.7/site-packages/selinux/_selinux.so: undefined symbol: ...
-1
votes
0answers
32 views

Access forbidden!(Error 403) on LAMPP [closed]

I am new to Linux, I got this problem when running LAMPP, the error is below: Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable ...
0
votes
1answer
33 views

Howto install a python app and add it to path in Linux?

I've created a python app with several sub modules. What's the prefered way to install/deploy such a multifile python app? Any user and process should be able to call the app/script without changing ...
0
votes
0answers
12 views

Python Package Installing Older Version

First of all I apologize if this is the wrong StackExchange website. This is a question about installation problems more than programming itself. I have a Django package that I created. This package ...
0
votes
0answers
20 views

How do I use the prefix variable in python, to define a new variable? [closed]

I have a script where there's a variable called prefix that is being defined by -p. It is given as a command line arguement. If this were shell, I'd do: prefix = "String" a="test $prefix test2" ...
-2
votes
1answer
26 views

Python Web Interpreter [closed]

Can anyone recommend a good web-based python interpreter? I need one for testing code on the go (as i'm learning) that has a run button and doesn't just executes the code every time I press "Enter". ...
1
vote
0answers
36 views

Python taking too much memory on server,

I have a running EC2 instance on amazon AWS. and some time server gives me the memory maximum utilization above 97%. When i saw my server stats on newrelic That showed me the below running processes ...
0
votes
0answers
45 views

Mac OS 10.7.5 have problems when install zbar

I have use command "sudo easy_install zbar" but there are some errors showing: lipo: can't open input file: /var/tmp//ccRtiEWJ.out (No such file or directory) error: Setup script exited with ...
1
vote
1answer
55 views

Running script on boot

I'm trying to run a Python script on startup on a Raspberry Pi. I know that this can be accomplished by adding to various files. I plan to add to bashrc (worked previously, on similar attempts), but I ...
0
votes
0answers
10 views

Error when building psyco

When I try to build psyco, I get the error about mcvsvarall.bat (or something with a similar name). So I do the command SET VS90COMNTOOLS=%VS100COMNTOOLS% Now it gives me the error error: command ...
0
votes
1answer
20 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?
-1
votes
0answers
16 views

Connect social media content with django web application [closed]

I am building a content sharing application like youtube where users can upload audio/video/images. Now there is a feature where I prompt the registering user to connect their social media content ...
0
votes
1answer
49 views

Sublime Text 2 - Assign a keyboard shortcut to a tool

Is there any possible way of assigning this tool to a keyboard shortcut? I'm using this tool because the builtin console in Sublime Text 2 doesn't support interactivity (entering inputs....etc).
0
votes
1answer
34 views

Difficulty installing cx_Freeze for Python 3.3

I'm trying to install cx_Freeze for Windows 64bit and Python 3.3, but when I get to this page in the Windows installer, it can't find my Python and if I type in the directory it's intalled in it ...
1
vote
0answers
46 views

Ideas for task automation [closed]

I'm looking for a better way (my current way: manual labour) to automate my tasks after I'm done with developing my Wordpress themes. The tasks I need to perform are: Copy Rename Compress (.zip) ...
4
votes
2answers
119 views

determine where python is running from in linux

I normally work in python on Windows and I use the dos command where python to make sure that I am using the virtual environments version of python. What is the equivalent command in the linux shell? ...
1
vote
1answer
181 views

how to install cx_oracle package with pip from Ubuntu linux?

I am trying to install cx_oracle from Ubuntu using pip install cx_oracle however I get the error below. Also tried to go to the pip package page and it does not look like there are any files ...
0
votes
1answer
17 views

last object returned in chrome dev tools / python / irb /

In matlab one could type in the following and get the following reply: matlab> 1+1 ans = 2 One could then all the last returned object by simply typing: matlab> ans ans = 2 That is, ...
0
votes
1answer
34 views

How to update python 2.6.6 to Python 3?

I have debian 6.0 64bit and I need to update my python 2.6.6, It's the wrong version for my needs and now have to remove the 2.6.6 and upgrade to 3. Any help please? I'm not a Linux Savy!
1
vote
1answer
165 views

using python Paramiko for ssh: sudo: no tty present and no askpass program specified

I want to use paramiko to ssh into a bunch a remote nodes and run some command line with root priviledge I have ssh key in my home directory and so i don't need to input password when I ssh into ...
-1
votes
1answer
55 views

Python - Releasing/replacing a string variable, how does it get handled? [closed]

Say i store a password in plain text in a variable called passWd as a string. How does python release this variable once i discard of it (for instance, with del passWd or passWd= 'new random data')? ...
1
vote
1answer
41 views

Am I failing to foresee an issue with a cygwin symlink to Windows's python.exe?

Should be an easy question. I have a windows version python 2.7 at C:/Python27/python.exe and I also have cygwin's installation at /usr/bin/python -> /usr/bin/python2.7.exe. This means that when I ...
0
votes
0answers
92 views

IndexError: list assignment index out of range in python [closed]

examples=[['sunny', 'hot', 'high', 'weak', 'no'], ['sunny', 'hot', 'high', 'strong','no'], ['overcast', 'hot', 'high', 'weak', 'yes'], ['rain', 'mild', 'high', 'weak', 'yes'], ['rain', 'cool', ...
0
votes
0answers
30 views

installing Django on a remote server not working

I am attempting to install Django on a remote server. I have yum installed the following: apache mod_wsgi Django mysql (python is already installed) I have uploaded my project to the directory: ...
0
votes
3answers
98 views

Accidentally deleted python, python2, python2.7 files from /usr/bin/. Is it possible to recover them?

I accidentally deleted python, python2, python2.7 files from /usr/bin/. Now yum is also not working. Is it possible to recover them?
0
votes
1answer
74 views

Create Public Key from Private (ECDSA Encryption)

I tried Crypto but they said a different exchange would be more suitable. I'm interested in how bitcoin addresses are created so I read through the technical details here - ...

1 2 3 4 5 14