Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability.
0
votes
1answer
21 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
19 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
20 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
18 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
12 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 ...
-1
votes
0answers
8 views
Is there a way to run Jython in IPython?
I'm looking to experiment with Jython and the default Jython shell leaves a lot to be desired.
Is there a way to run Jython in IPython?
0
votes
1answer
32 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
31 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
34 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
60 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
21 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
36 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
44 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
52 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
...
3
votes
1answer
22 views
certificate errors trying to create a virtualenv on old Ubuntu
On an old Ubuntu 8.04 (cannot upgrade yet) I need to create a Python virtualenv, install some packages and then my software.
I do get certificate errors:
Could not fetch URL ...
-1
votes
0answers
29 views
How to import numpy
I am trying to find density of states with dftb+ in a Linux system. I have a Linux system with Python-2.7.5 and Numpy-1.8.1.
I am using the command as written below:
gagan@gagan-desktop:~/tests$ ...
0
votes
0answers
32 views
Unable to install bsddb185, Python library for opening Berkeley DB version 1.85 files on Ubuntu
I am writing a python program that makes use of some legacy Berkeley DB 1.85 files.
Unfortunately I am unable to install the bsddb185 Python package, either for Python version 2.x and for Python 3. ...
0
votes
1answer
42 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 ...
-1
votes
1answer
66 views
Django can not connect to MySQL database over ubuntu 10.04
I am newbie in Django.
I got a simple Django 1.3.* project, i would like to run it over my localhost.
I installed all necessary modules like: python-mysqldb, rptz etc...
I have ubuntu 10.04 ...
0
votes
1answer
87 views
Running Python script over multiple directories and multiple files
Here is my command line for python:
python script.py -a .faa -n .fna
I have a directory containing multiple directories. Out of these multiple directories, there could be 1 or more folders.
In ...
2
votes
3answers
218 views
'ImportError: No module named _struct' error when managing packages
I'm running elementary OS 0.2 (based on Ubuntu 12.04) and starting today I'm seeing a weird error when attempting to install/upgrade packages. Just now for example I did a:
sudo apt-get update
...
1
vote
0answers
49 views
lxml with custom install location for libxml2/libxslt doesn't find correct location
I am using CentOS 6.5 and want to use newer versions of Python, lxml, libxml2 and libxslt2 than what's available from the repos.
So I build libxml2, libxslt2 and python 2.7.8 from scratch, and add ...
2
votes
0answers
30 views
Install `mpl_toolkit.basemap` on RedHat without compiling from source
I need to install matplotlib and mpl_toolkit.basemap on a RedHat machine. matplotlib is already installed but for mpl_toolkit.basemap the only way I could find was to download the source and compile ...
0
votes
0answers
40 views
Updating data sets from Online databases/Webservice
I want to have an idea as to how to update the data regularly from the source, if its stored locally in your server or local machine.Lets say MySQL database.
Source:It will be a webservice data ...
1
vote
1answer
134 views
How to install meld 3.11 in Ubuntu 14.04?
I am trying to get meld 3.11 to work on ubuntu 14.04
I tried following the method below"
cd ~
git clone https://git.gnome.org/browse/meld
cd meld
sudo ln -s ~/meld/bin/meld /usr/bin/meld
But ...
0
votes
1answer
121 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
2answers
37 views
untar specific file to present date in linux [closed]
I am using Centos and I am installing one Debian application with multiple-instance.
I have created 3 multiple-instance successfully and it is running good.
Because of Debian application, the ...
0
votes
1answer
72 views
qmake error when installing PyQt5
I'm trying to install PyQt5 for python3 from source files.
I install SIP correctly.
Then when I want to prepare the make file for installing PyQt, I get this error:
#python3 configure.py
Error: ...
1
vote
0answers
69 views
Failed installation 32-bit python on 64-bit Linux Mint
I basically have two questions:
How do you install 32-bit Python alongside 64-bit Python on linux?
How do I fix my broken system from the failed attempt below?
I just tried to install a 32-bit ...
2
votes
1answer
73 views
Python failing to import winregistry
I'm trying to use secretsdump.py, which relies on winregistry.py.
The error I'm getting is:
Traceback (most recent call last):
File "secretsdump.py", line 41, in <module>
from impacket ...
3
votes
2answers
225 views
Unable to pass a bash variable as a python argument in bash
For some reason I cannot pass the bash variable $FOLDER as a python argument on the following code. The python script downloads some files from amazon s3.
Bash script:
#!/bin/bash
FOLDER=$(./aws get ...
1
vote
2answers
97 views
subversion not working with pycharm
In pycharm, there is an option to upload changes to a remote svn repository.
However, it does not ask for password. How do I provide it?
0
votes
1answer
237 views
How can I recover deleted data from a partition [closed]
I want to recover deleted data from a partition with the help of a Python program.
I know that on deletion, only the inode information of that file is deleted, but the bits are not overwritten by ...
1
vote
1answer
63 views
“make test” failed while compiling Python
I compiled Python 3.4.1 on an emulated Debian 7 ARM system. make test failed on test_multiprocessing_fork:
FAIL: test_semaphore_tracker (test.test_multiprocessing_fork.TestSemaphoreTracker)
...
0
votes
0answers
11 views
Is there any prompt decoration package available for iPython?
One can argue, that IPython can be a productive replacement for bash. I wonder, if anyone here have seen some sort of prompt decoration for IPython, that can be compared to the standard bash prompt, ...
4
votes
2answers
49 views
Tilling window manager written in Python
Is there any tiling manager like XMonad but written with Python?
I think Haskell was too hard for me. But I know python a little.
2
votes
2answers
66 views
How to change my script to replace and add new variable in a configuration?
Well this is my script. It is to configure my systems sysctl.conf.
infile = open('sysctl.conf')
outfile = open('sysctl.conf.new', 'w')
replacements = {'Net.ipv4.icmp_echo_ignore_all' :'1',
...
-1
votes
1answer
28 views
add groups from external file
I want to write a script which add groups to the system, specified in groups.txt file.
content of groups.txt :
group01 : computer
group02 : electronics
group03 : IT
.
...
3
votes
1answer
55 views
Grepping a variable
I've written a simple init script to start and stop a Python script as a service. I have to be explicit about the version of Python I'm running, because this is on a CentOS 5 box with Python 2.4 & ...
1
vote
1answer
70 views
'altinstall' python-devel; can't install psycopg2 on centos
I installed python2.7 on my
centos 2.6.32-431.17.1.el6.x86_64
following these directions:
http://toomuchdata.com/2014/02/16/how-to-install-python-on-centos/
#after the yum stuff...
# Python ...
0
votes
2answers
100 views
Why can't my python script change umask?
This is my script
#!/usr/bin/python
import os
print "hello world from python"
os.system("echo 'hello world from bash'")
os.system("umask 055")
os.system("ls -alh > test")
If I run this code ...
0
votes
3answers
52 views
Python compile error on openSUSE: no module named wx
I'm new to Linux. After installing openSUSE I'm trying to make my VPN software running. I've followed the site's direction:
Unpack the general package [Other / Source code], install OpenVPN and
...
5
votes
2answers
261 views
how to read and modify fstab in python?
I want to automatically configure my fstab in python by running a script. I thought of using ConfigParser in python, but I am unable to use it properly.
2
votes
1answer
345 views
Convert xml subtitle file to srt format
I have a xml subtitle that looks like this:
<?xml version="1.0" encoding="utf-8" ?><transcript>
<Item from="1.16" duration="4.68"><![CDATA[(Dong-hyuk is coming
to see you now.)
...
1
vote
2answers
129 views
Do all Linux processes write EOF to stdout when they are terminating/have finished terminating?
I'm having trouble with sending shutdown -h 0 to a lxc Debian container (i.e. executing this command in the lxc) with with the python pexpect module (in a python script). In this module the user can ...
2
votes
3answers
312 views
Unable to access CentOS setup Network Configuration after attempting Python update
I attempted to update Python on my CentOS 5.6 VM and have encountered some issues afterward. Initially, yum wouldn't work, but I have resolved that.
However, now I am unable to access the Network ...
2
votes
1answer
329 views
How to install Node.js in CentOS 5.10 with Python 2.4?
I want to use Grunt on websites we have hosted on our WHM dedicated server.
It is running CENTOS 5.10 x86_64 standard with WHM 11.42.1 (build 21).
It is critical that things do not break, as we have ...
1
vote
1answer
218 views
Trouble installing lxml with custom install location for libxml2/libxslt
I am attempting to install a python module called lxml to my account on a supercomputer running RHEL.
I do NOT have root access or super user status.
lxml requires the dev/devel versions of libxml2 ...
1
vote
1answer
46 views
Identify python script is waiting for a manual input
I'm writing a shell script which executes a Python script. The Python script halts for a manual enter to be provided. However, I don't wan't to have to press enter each time to the script. Instead, I ...
1
vote
2answers
186 views
How to change the default version of Python in Debian 7.5?
I'm using Debian 7.5, and I've installed Python 3.3 and 3.2. How do I make 3.3 the default for when someone types python in the command line?