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
12 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:
...
8
votes
8answers
6k views
Vim: execute the script I'm working on in a split screen
I'm working on a small python script, which needs frequent execution in order to debug and further develop.
Can I split the vim screen and execute my script on one part with a keystroke?
0
votes
1answer
19 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
34 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 ...
14
votes
2answers
8k views
easy_install will not connect through proxy
I'm running Ubuntu Server 10.04 64-bit under VirtualBox, and it seems that everything except easy_install and pip can connect to the Internet. I have set and exported the http_proxy environment ...
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 ...
0
votes
0answers
17 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 ...
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
25 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 ...
2
votes
1answer
1k views
Installing MySQL Server on a Mac with Homebrew
As a total newbie I am trying to get through this tutorial: http://net.tutsplus.com/tutorials/python-tutorials/python-from-scratch-creating-a-dynamic-website/
I'm at the point where I've used brew ...
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
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
2answers
1k views
Fedora 17: How do I install Python 2.7 into /usr instead of /usr/local?
I want to install Python 2.7 onto my Fedora machine, but it installs it into the /usr/local/ bin. How do I make it so that won't happen?
I want to do this because the setuptool I installed keeps on ...
0
votes
1answer
99 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 ...
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 ...
1
vote
1answer
2k views
Python installation errors
This is incredibly, annoying, I can't do anything in python until this is fixed. Thanks if you can help, I know it can be annoying to have to look at so much code but i'd really appreciate. I'm trying ...
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
vote
1answer
40 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 ...
-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
1answer
328 views
cygwin and python just don't work?
I've tried using the current version of cygwin python, but attempting to use pip or easy_install results in an error message about being unable to load DLLs (I won't reproduce it here because I ...
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
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
390 views
Change install path to /usr/bin instead of /usr/local/bin
A simple question, but I have no concrete documentation to confirm my answer. When installing software with the make install command under a unix machine, the default path is going over to ...
8
votes
3answers
5k views
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 ...
-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 ...
1
vote
1answer
2k views
How to install .egg?
How exactly does one install .egg files?
When I tried downloading the Sphinx installer here, my computer couldn't find a default application to run the installer.
easy_install doesn't work either. ...
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
3answers
386 views
Find outdated/updatable pip packages
pip freeze shows me the packages installed, but how do I check against pypi which ones are outdated?
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 ...
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
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".
...
0
votes
1answer
994 views
installing OpenCV 2.0 on Ubuntu Karmic: still get ImportError from “import cv” in Python
I have tried compiling and installing from the 2.0.0 release source, the SVN head, and from a PPA. After each, I still get the following from a Python console:
>>> import cv
Traceback (most ...
0
votes
0answers
46 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
56 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 ...
4
votes
3answers
2k views
vim could not load library python27.dll
I need Windows 7 + vim + python for writing vim plugins.
:python print("hello")
E370: Could not load library python27.dll
E263: Sorry, this command is disabled, the Python library could not be ...
0
votes
1answer
42 views
running python via mac ports
I have installed python via mac ports, using:
sudo port install python33
I then did:
sudo port select --set python python33
and got:
Selecting 'python33' for 'python' succeeded. 'python33' is ...
0
votes
1answer
1k views
How to install old version of python by removing new version in Ubuntu?
I want to uninstall Python 2.6.5 and then install Python 2.5. I also want to uninstall nosetests new version and install the old one.
OS is Ubuntu.
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?



