Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability.

learn more… | top users | synonyms

0
votes
2answers
2k views

Upgrading Python 2.6. libpython2.6.so.1.0 missing

I am upgrading python on an offline 64bit RHEL 6.4 box and am having to do it via RPM's rather than yum. I am trying to upgrade python from 2.4.3 to 2.6 so I can build nodejs from source. I am ...
0
votes
2answers
9k views

What is wrong with my cron job?

I'm new to linux, and was told I could use a feature called cron job to run a python script I made execute every 10 minutes. Problem is the the python script isn't running. There doesn't seem to be a ...
0
votes
2answers
2k views

Running Python script via cron with sudo?

Im using Linux Mint. I have written a python script that is designed to not be accessible to the logged in standard user but is still be executed while they are logged in. It is to run and log them ...
0
votes
2answers
531 views

How to make Python scripts usable on Windows? [closed]

I have some Python scripts in Linux. How can I make those scripts so that windows user can use and execute them?
0
votes
1answer
41 views

python && unix permissions (gitlab) [closed]

I have directory /home/git/repositories with rights 770 and uid=git,gid=git user1@gitserver:~$ ls -la /home/git/ | grep repo drwxrws--- 42 git git 4096 Jun 30 17:02 repositories I have user ...
0
votes
1answer
54 views

Python output in XML format

I have a python script which compare IP list with IP Database and gives output of matching criteria. (I got the script from this forum). convert.py #!/usr/bin/python import socket,struct ...
0
votes
1answer
63 views

systemd daemon & python getting the wrong time

I made a daemon that it is started by systemd, and inside my daemon I have a python function to get the time. The problem is that the time is wrong, I have 8 hours of difference. This is my service ...
0
votes
1answer
285 views

pip install gives “TypeError: 'int' object is not iterable ”

In Debian testing, when I try to install the python package python-constraint via pip install python-constraint I get the following error; Exception: Traceback (most recent call last): File ...
0
votes
1answer
52 views

Log output from more than one script

I have a problem concerning the logging of a process: I have 3 scripts, a.py, b.py and c.sh a.py calls b.py and b.py calls c.sh The goal is to continuously log std out/err (write to file and ...
0
votes
1answer
53 views

Crontab giving no result

I have set up a cronjob on my server which is supposed to run every minute and store the output in the given file. I have been trying a lot and saw a lot of links but nothing seems to work. Following ...
0
votes
2answers
197 views

Runs perfectly through the command line, will not work through systemd ExecStart

I've installed Butterfly http terminal server, written in python, on my Arch machine. I'm new to systemd, but I'm having an issue with one of the command line parameters. /usr/bin/butterfly.server.py ...
0
votes
1answer
57 views

CRON path problems

I have a Python script that runs from the command line beautifully, but when I try and run it from CRON does strange things. The script generates, then runs an apk script file. The apk script file ...
0
votes
1answer
406 views

makehuman gives “ImportError: No module named numpy”

I installed 1.0.0 on slackware 14.1 makehuman 64bit slackbuilds through the site, but the makehuman does not open, the program appears in the KDE menu but does not open. I do not know why it happens, ...
0
votes
3answers
393 views

Most accurate disk usage report? [duplicate]

Since disk space is allocated in blocks, is it a more accurate representation of the actual space consumed by a directory to report it in blocks vs bytes? If a file of size 1,025 bytes resides on a ...
0
votes
1answer
402 views

RHEL6 Install MySql-Python without internet connection?

Using RHEL 6 how can you install MySql-Python package without a internet connection? I can SCP files to the server but our current restrictions do not allow a direct or proxy connection to the ...
0
votes
1answer
101 views

Gajim, gtalk, and logind

Since the Google talk outage earlier this month, I keep not being able to connect using gajim. I tried deleting all the configuration, updated to the latest development version, and tried in different ...
0
votes
1answer
115 views

Installing a plugin for quodlibet as a patch

I'm trying to update a plugin for quodlibet. I fetched a .patch file from here. I navigate into the directory where the plugin is placed /usr/share/pyshared/quodlibet/plugins/events and copy in ...
0
votes
1answer
347 views

Sublime Text 2 not detecting python library if installed in /opt

I am attempting to install Sublime Text 2 in /opt/sublime_text. Once all the files are in there, I believe the executable not detecting the python libraries and throwing the following error: I ...
0
votes
1answer
762 views

Simple python web server doesn't execute CGI scripts

I set up a simple python web server by opening a terminal in a directory and doing python -m CGIHTTPServer There is a CGI script in the directory but when I type into the browser ...
0
votes
1answer
283 views

python regex equivalent of kwrite [ ]+ and [0-9]+

I've never been good at regular expressions. When ever I read about them, I sort of get a headache, get up from my desk, and forget what I'm doing. Attention difficulties. But when I finally started ...
0
votes
2answers
2k views

Unix (Ubuntu Server): $PYTHONPATH resets to blank when I reboot [duplicate]

Possible Duplicate: How to make exported shell variables permanent? Each time I set the $PYTHONPATH on my new Ubuntu server machine (old Thinkpad) and reboot, it's reset to blank. I'm ...
0
votes
1answer
21 views

How do I create a deb package for a python progarm?

I created a python game that I want to distribute on my website via a Debian package. The game has a few dependence that are usually not installed (such as pygame) on some linux computers, but often ...
0
votes
2answers
19 views

How to install PyX correctly for Scappy use? [closed]

When I try to run Scappy interactive shell I am faced with this: INFO: Can't import PyX. Won't be able to use psdump() or pdfdump() (The shell is working but of course I can not use the above ^ :( ...
0
votes
1answer
23 views

Offlineimap unknown SSL protocol error

I am using offlineimap to fetch mail from several IMAP servers. This used to work but today offlineimap has been unable to fetch mail, producing the following errors: *** Processing account example ...
0
votes
1answer
38 views

How to build openssl with clang(rather than gcc) on a FreeBSD machine?

I have a 64 bit FreeBSD build machine. I need to add https support in my python3 application code. For that it is advised to build/compile python with openssl support. I do not need any gcc dependency ...
0
votes
1answer
30 views

How do I make a Make, Make Install, and deb file for a python program?

I recently got done making a python program. Now the question is, how do I go about making an installation script for it. From my understanding you need to create a make file, but from what my ...
0
votes
2answers
80 views

root access on new chromeos lenovo n21 for python dev

We've purchased several new Lenovo N21 chrombooks to run Python workshops for inmates in the local jail. Trying to install Crouton, Debian, and Anaconda to prepare. All require developer mode and ...
0
votes
1answer
23 views

Unable to start Terminator in Fedora

I'm not Unix friendly user so my question could be very dummy. I installed Terminator using this command: sudo dnf install terminator After someday of using without problem, For some reason, today ...
0
votes
2answers
80 views

get values which only ocurre once in the vector

there is a vector of numbers I have which ascend (it is called t8_) 2 7 8 9 11 15 34 91 91 92 94 the problem is that some number happen two times - I don't want to remove them but they have to ...
0
votes
1answer
63 views

How to catch first line of stdout from bash process substitution?

I am working with the following block of bash and it is not printing out the first line of expected output: exec 3< <(python3 -m http.server) while true; do read -t 2 line ...
0
votes
1answer
41 views

Packages Containing 'dfsg' in Version Number Causing Issues

I am running the same Python software under both Mint 13 and Mint 17.1 – both are 64-bit. Prior to 64-bit operation the software was running on Mint 13 32-bit. On 64-bit Mint 13 everything works as ...
0
votes
1answer
241 views

Can't use apt because python encoding issue

I'm getting a python unicode error every time I try to install or update anything with apt or aptitude, preventing me to update my system. The error I'm getting is the following: File ...
0
votes
2answers
16 views

A file containing exports

I have a file containing the following: export PYTHONPATH=/home/myuser/squish-5.0-xyz/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/myuser/squish-5.0-xyz/lib I don't what to place it in my ...
0
votes
1answer
281 views

“SyntaxError: invalid syntax” on File “goslate.py”, line 222 while installing goslate using pip

I fail to install goslate with sudo pip install goslate. Log of error message is below. What I am missing? Or what is my computer (Debian) missing? It is possible to install the package in Python 2, ...
0
votes
1answer
196 views

Adding commands in a shell script to add a python module path

I want to modify a linux shell script used to install a python module (setup.sh) to add the folder the an environment variable. This is needed so I can run the python module from a terminal. e.g. ...
0
votes
1answer
30 views

how to change several piece of html code

I have several chunks of html code ,see below, in a html page that I need to change Assurez-vous de bien recevoir tous nos messages en ajoutant bebeco@concretisezvosprojets.com à votre carnet ...
0
votes
1answer
151 views

Exit /dev/tty after error message

I run this bash function when a button is pressed, it calls my mobile, however when the call ends or I reject the call, it hangs in /dev/tty and does not return to the main program call.sh ...
0
votes
4answers
419 views

How do I print a certain line of python code using the Linux terminal?

If I am writing some python and I only want the terminal to show a certain line, what command do I use? For example my program is: print("line one") print("line two") print("line three") And I only ...
0
votes
1answer
209 views

Homebrew?? error: option --no-user-cfg not recognized

Using homebrew, in which I am have no skill, I was updating cmake (as part of install of avidemux...) on snow leopard $brew -v upgrade cmake Everything works fine through Verifying ...
0
votes
1answer
77 views

/usr/lib/python2.4/site-packages/cElementTree.so: wrong ELF class: ELFCLASS32

yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: /usr/lib/python2.4/site-packages/cElementTree.so: wrong ELF class: ...
0
votes
1answer
72 views

Installing Python without package manager

I need to install Python 2.7.x on a TI Sitara ARM processor (based on the BeagleBone Black) running a minimal custom version of Linux. In particular, the OS does not have any package manager, no gcc, ...
0
votes
1answer
60 views

Make python module as an installable API

I am developing an API in Unix environment for virtual machines. Most of the modules are developed in python. I have few questions on this. I want to make this as an installable API, I mean to ...
0
votes
1answer
687 views

How to install Binwalk on Debian without installing the graphs libraries?

What is the proper way to install the Binwalk tool on Debian 7.0 without the added graphing capabilities (and it dependencies)? I've read that I can skip the make deps command, but this deps.sh script ...
0
votes
1answer
164 views

Conversion of the bsonfile with two different outputs

I want convert some bson file to some json file. I do it by the using of bsondump function. bsondump exemple.bson > example.json By the old version 2.4.9 of the bsondump (depended on the version ...
0
votes
1answer
199 views

File not found: Beautiful Soup

I am trying to run a program that I downloaded in Ubuntu latest version, but I continue getting an error everytime I try to run the program. It says: File Not Found: BeautifulSoup So in order to ...
0
votes
1answer
353 views

Google App Engine alternative for CentOS, Fedora, Ubuntu?

I have written WebRTC Apps which is Python and Google App Engine. Google App Engine is not freely available to use for production release, so I am looking alternative of it for CentOS, Fedora. Can ...
0
votes
1answer
487 views

Python3 error “no module named bluetooth” on Linux Mint

I am trying to connect my Lenovo S10E to a Nintendo Wiimote via bluetooth. I am using a simple Python script, reproduced below. I am calling it from the Linux Mint (version 16, "Petra") command line ...
0
votes
1answer
216 views

Python file issue from root path

I have a script that is well-tested and known to be working. I am running into an issue with it where when I try to run it from /root/backup/script.py or ~/backup/script.py I get a file not found ...
0
votes
1answer
260 views

python xml parsing

I have to delete particular tags from an xml file. Sample xml below. <data> <tag:action/> </data> I want to delete all contents between data and /data. ...
0
votes
1answer
379 views

How to install QGIS from source into user space?

I want to install QGIS from source on Ubuntu 13.10. (saucy). into ~/bin. There is Python 2.7.5+ installed. Therefore, I cloned the repository to my machine and checked out the master branch. First I ...