Tagged Questions

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

learn more… | top users | synonyms

5
votes
1answer
41 views

Why is this Python package trying to use a non-existent gcc?

I'm trying to install PyCrypto for Python 3 on Solaris. Whether I do it via "python3 setup.py install" or "pip3 install pycrypto", I run into the same problem: a call is made to a gcc which does not ...
1
vote
1answer
30 views

Pyajam in debian 7

I'm trying to make the installation package python Pyajam I tried to install for pip, I received an error 4Suite-XML package $ pip install Pyajam Installing collected packages: pyajam, 4Suite-XML ...
1
vote
1answer
30 views

How can I modify a python shared object (.so) file?

I have a python code (Running on a raspbian OS) which reads the value of a joystick axis and then sends the value to an arduino. At the start of the code I have typed: import pygame I can then use ...
4
votes
2answers
84 views

Why does my Python background process end when SSH session is terminated?

I have a bash script that starts up a python3 script (let's call it startup.sh), with the key line nohup python3 -u <script> &. When I ssh in directly and call this script, the python ...
1
vote
0answers
21 views

Startup commands in /etc/rc.local won't work

I have a Python program and an nginx/uwsgi/django web setup. I want the program to start with the system, as well as the web server. Here's my /etc/rc.local: crawler_dir=/home/mohammed/git/crawler ...
1
vote
0answers
29 views

writing into file using python [closed]

I am new using Python. So I have code here and tried to write in a file. When I run the code the only written in the file is only one line of word. But when I tried printing it into the screen it will ...
0
votes
1answer
27 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, ...
1
vote
0answers
23 views

Hotmail not receiving emails from a script, but works from the server

I have a working mail server running Debian stable, the following elements are working. SPF DKIM rDNS My IP is not listed in any backlist, I used: mxtoolbox.com for all this. My problem: Sending ...
2
votes
1answer
25 views

Why is my pip-installed Python script not executable for everyone?

In my Vagrant instance: vagrant@archlinux:~$ sudo pip2 install vcard Downloading/unpacking vcard Downloading vcard-0.9.tar.gz Running setup.py (path:/tmp/pip_build_root/vcard/setup.py) egg_info ...
2
votes
1answer
23 views

Ways to store data for command line API

I am developing an API in Unix environment for virtual machines. I have to store some information in a table about virtual machines. Currently I am using python dictionary of virtual machine objects ...
3
votes
1answer
50 views

Issues with Skyperious

I am trying to install Skyperious on Ubuntu 13.10, I have installed all the required dependencies, my python version is Python 2.7.5+. When I run the following code from terminal python main.py ...
2
votes
1answer
14 views

How to use a custom library for certain programs?

Here's my situation. I'm running Centos 7, have the standard version of libcurl as provided by my package manager, and several programs that depend on libcurl. One of them is pycurl, a python ...
0
votes
0answers
14 views

Sage Math browser interface not working

I wanted to try Sage Math as an free alternative to MatLab. I installed it from AUR, and it works in terminal, but I can't access it via browser. I tried to Google it, but had no luck. ~> sage ...
1
vote
0answers
28 views

How to suppress input overrun messages

I have a Raspberry Pi running Raspbian (a Debian flavor: Linux version 3.12-1-rpi (debian-kernel@lists.debian.org) (gcc version 4.7.2 (Debian 4.7.2-5+rpi1) ) #1 Debian 3.12.9-1+rpi1 (2014-05-19) ). ...
1
vote
1answer
17 views

Maintain the path in installable UnixAPI

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. Inside the API I am using absolute path like ...
0
votes
1answer
27 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 ...
3
votes
2answers
129 views

Basic steps to develop python API in Unix environment

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 have the file extension as abc.py. I would like to make ...
1
vote
1answer
39 views

Permission denied in scripted chroot jail

I am attempting to script the creation of a chroot jail (I know that there are tools for this, but I am in it for the experience, so please don't recommend a tool). I have a script which looks up ...
2
votes
1answer
36 views

Output of a python script running as unit is out of order while shells seems unnafected

How would I get all outputs of systemd managed python2 script instantly into journal, just like it appears in terminal I'm on centos 7, but seems to be same on arch according to systemd manual, ...
1
vote
2answers
42 views

Find average CPU, vMem, sMem usage on 1, 5, and 15min

I am trying to find at time T the average CPU usage on 1, 5, and 15min, just like what you get from /proc/loadavg Same thing for virtual memory, and swap memory. I would be fine with a python ...
2
votes
2answers
195 views

'NoneType' object has no attribute 'decompressobj' while installing Bootstrap setuptools

I have just started (as in 30 minutes ago) to use Ubuntu 12.04 (all my previous experience is with windows) and I just started to learn how to program a couple of weeks ago so this is probably a ...
5
votes
4answers
157 views

Using jq to extract values and format in CSV

I have the below json file: { "data": [ { "displayName": "First Name", "rank": 1, "value": "VALUE" }, { "displayName": "Last Name", "rank": 2, ...
0
votes
1answer
13 views

Plot generated with matplotlib doesn't shows up in Yakuake [closed]

I'm trying to display the plot of this really simple script: import matplotlib.pyplot as mp mp.plot([0,1,2]) mp.show() In Konsole no problem, an external window pop up with the plot. But nothing ...
-2
votes
1answer
45 views

Ruby alternative to fabric [closed]

Is there a Ruby alternative to Python based Fabric?
1
vote
1answer
81 views

Failing to import python modules only on specific user

I've been trying to figure out this for ages. When I run certain python programs they would crash saying that certain module can't be imported, while it's actually installed and should be importable. ...
1
vote
1answer
78 views

How to install PySide package for CentOS 7

I'm trying to install PySide on CentOS 7. Seems pretty straightforward, enable EPEL repo, and install. Except that EPEL doesn't seem to contain a PySide package (yum install python-pyside fails with ...
0
votes
1answer
37 views

Error importing lxml package python in Ubuntu

When I try importing lxml package in python I am receiving the following error. Traceback (most recent call last): File "<stdin>", line 1, in <module> File ...
1
vote
1answer
220 views

“except (IOError, OSError), e: SyntaxError: invalid syntax” when configuring python-lockfile

I am having trouble installing any new packages in Ubuntu because of python. I tried sudo apt-get install python3 python3-dev but I am getting the following output :: dpkg: error processing ...
0
votes
1answer
29 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 ...
2
votes
1answer
99 views

To write this Pseudocode with Regex

I am doing a Makefile which I run regularly by Crontab every day at 0230 crontab -e; 30 2 * * * /bin/thePseudocode Python-like Pseudocode directories = ["Cardiology", "Rheumatology", "Surgery"] ...
1
vote
1answer
43 views

Make debian package to install python

I have two Python scripts, and I need to package them into a Debian package. I have tried quite a few things with some success. For example, I made a setup.py and then used python-stdeb to create a ...
1
vote
1answer
26 views

Custom python REPL with fifos

Is it possible to make a custom REPL (for e.g. python) with two fifos? Explanation of the problem Suppose I have two fifos in and out. I have three terminals. In the first I want to run commands ...
1
vote
1answer
45 views

CheckInstall fails to install on Debian

I tried CheckInstall to track installation of package on Debian, but it fails to install it. Installation follows the typical configure/make process $ autoconf $ ./configure $ make $ make install ...
1
vote
2answers
33 views

Window manager with python support/extensions

My prefered desktop environment lately has been Lxde. I like handling most things from the command line, so gnome and kde always seem to get it my way more than I like. But I do envy some of the new ...
2
votes
2answers
59 views

Cron job not behaving as expected

So I have a python script that pulls down git/svn/p4 repositories and does some writing to a database. I'm simply trying to automate the running of this script and based from what I see in syslog it ...
0
votes
2answers
49 views

checkinstall package conflicts with python

I'm trying to do a distribution upgrade from Debian 6 to 7 and am having some issues with some packages I created and installed with checkinstall. When doing the upgrade I get the following message: ...
1
vote
2answers
49 views

Howto include output of a script into the zsh prompt

I would like to add the output of a Python script into my zsh prompt but I am not sure how to do it? Is this done by what is called "PROMPT EXPANSION" in the man pages? Please someone set me on the ...
0
votes
1answer
146 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
38 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 ...
2
votes
0answers
55 views

How do I execute a program in Xfce and make it use another xfwm4 theme other than the default one?

I want to run a python script (the one in the answer to Python - how to make transparent window with gtk.Window but not with Gtk.) that displays a transparent window. I'm running it from a bash script ...
0
votes
0answers
150 views

Capstone for Python not working

I'm unable to get Capstone (http://www.capstone-engine.org/lang_python.html) for Python to work. I have attempted to install capstone both using pip and compiling and installing from source. Both are ...
0
votes
1answer
23 views

Linux packages - Separate Python's external libraries from the system

I read this articles (check What About Python CLI Tools?). Well, this is obivous, separate external Python packages from your System Python's site-packages. When doing a sudo apt-get install package ...
0
votes
1answer
158 views

add-apt-repository Raises A Python Error

I wanted to install Numix icon theme, therefore I needed to add ppa, but it strangely raised this error: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 163, in ...
1
vote
0answers
149 views

configure python3-tk for manually installed python 3.4 debian wheezy

On wheezy apt packaging python3-tk requires python3.2 & python3 packages. I want python 3.4 and have built it manually. The trouble is I don't know how to get my manual 3.4 build to 'see' the ...
1
vote
1answer
90 views

calling script from perl/python/ruby and retrieving output [closed]

I inherited a tcsh "master" script that works and extracts lines from files with data with using 'zcat' piped to 'grep' and some other commands/scripts. The extracted lines contain numbers . It is ...
1
vote
1answer
134 views

Can't install Python3 package in Debian 7

I get error while installing python3 in Debian 7 (I have all updates installed): root@nuclight:~# aptitude install python3 The following NEW packages will be installed: python3 python3.2{a} 0 ...
1
vote
0answers
46 views

Archlinux proper PKGBUILD: Python executable error

In a previous question, I asked about how to write a PKGBUILD to install a binary .deb package. The solution was to extract the contents of the .deb and copy the data to the archlinux package ...
1
vote
1answer
89 views

How Do I Package a Django Website for Debian (Not a Python Package or Egg)?

I have been searching for the last two weeks and chased myself into multiple dead ends trying to figure out the path that takes me where I want to go. However I finally have to admit that my answer ...
1
vote
2answers
52 views

How to check if disk has linux inside

I am trying to boot a external USB drive which runs Linux to check whether the main computer hard drive is running (so it contains) Linux or not, and mount it into /mnt directory to modify some files. ...
0
votes
1answer
76 views

How to copy rows of different files and paste column-wise?

I want to create a new file by copying rows of each file and pasting columnwise according to their file name orders. Here is the sample input and required output files below. file1.txt 1234 5678 ...