Programming :: Python: Determine If Running In 32 Or 64bit Mode?

Jun 23, 2011

How can I programmatically determine if my python script is being run with a 32 or 64 bit interpreter? Better yet, is there a one-liner I can run that will print out the word size of the current python session?

View 6 Replies


Programming :: Python: List Running Audio Processes?

Jul 19, 2010

I am trying to get a list of running processes using audio (using gstreamer), just like in gnome-volume-control, under applications, but have so far been unsuccessful in finding anything in either the gtk or gstreamer library, anyone out there who can point me in the right direction?

View 1 Replies View Related

General :: Unable To Determine What Exactly Python OpenSSL?

Jun 11, 2010

I haven't been able to determine what exactly Python OpenSSL and what it does. Google searching has not yielded me anything I can understand. In a terminal window (using RHEL 4.8 AS) typing

Code: rpm -qi pyOpenSSL yields information pertaining to the version of Python OpenSSL on my server. Can you explain what Python OpenSSL is in simple terms?

View 5 Replies View Related

Fedora :: How To Determine Kernel 32bit Or 64bit

Sep 17, 2010

Google answers attempted:

# grep lm /proc/cpuinfo
# uname -m
# file /sbin/init
# file /usr/bin/file

I don't think none of the above gives deterministic answer. Since I have 32-bit & 64-bit different system all of above spit out the same info.

View 5 Replies View Related

Ubuntu :: Determine If Installation Is 32bit Or 64bit?

May 7, 2011

how to determine if installed ubuntu is 32bit or 64bit?

View 4 Replies View Related

Programming :: Make Python Programs Run Without Entering The Command Python?

Mar 22, 2009

I want to be able to do

sudo ./

instead of always having to do

sudo python

What do I need to change?

View 5 Replies View Related

Programming :: Python - Get Text File Data Into An Array On Python?

Nov 30, 2009

I've already used line split stuff to transform my data into something like this in a text file:


['1', '1', '3', '20.7505207']
['2', '1', '3', '23.0488319']
['3', '1', '3', '-1.5768747']
['4', '1', '3', '-26.4772491']


How can I get this on a python program so I can manipulate it as an array?

View 3 Replies View Related

General :: Determine If Gnome Is In Screen Saver Mode ?

Feb 8, 2010

I am running a SLC 5.2 with a Gnome 2.16 desktop setup for all the class room terminals. Where can I determine the status of the screensaver. The value could then be periodicaly tested within a "cron" script. If screen saver was running then a "skill" could then be called to force a complete logout releasing the terminal for another student.

View 8 Replies View Related

Hardware :: How Does One Determine What KDE Is Running On PC?

Jan 4, 2010

How does one determine what KDE is running on a PC? Surely, there is a simple CLI command (or GUI) to determine that - but I don't know what it is..Something similar to "uname -a" that we use to find kernel version.

View 2 Replies View Related

Fedora X86/64bit :: Running Emacs 22.3 Under An X86_64 Running FC10 - Stops Responding ?

Jul 19, 2009

After "yum install emacs" & "yum install emacs-ess", I was able to install emacs on my X86_64 running Fedora 10.

If I run one session of emacs everything works fine.

Once I start a second session and try to resize or move the emacs window, the system stops responding.

View 1 Replies View Related

Programming :: Python 2.x - Represent The Same In Python 3.x

Mar 4, 2010

I have a function definition in a Python 2.x script which take a tuple as one of its arguments, but 2to3 has no answers nor any of my searching on how to represent the same in Python 3.x


def blah(self, (string1, string2))

View 4 Replies View Related

General :: Ubuntu 64bit - How To Install Python 32bit

Aug 6, 2010

I'm running Ubuntu 10.4 64bit, and I would like to run python 32bit.The current Python version used is the 64bit one.What can be some good ways for installing the python 32bit version without compromising the OS. I'm kind of new to this, so I don't really know if I could substitute the python version, or know how to make it available by using short commands such as python or easy_install.

View 1 Replies View Related

Ubuntu Servers :: How To Determine What Package I'm Running

Jun 3, 2010

I installed Apache by using the following command:

sudo apt-get install apache2
I later realized that there are two (or more versions) of Apache, MPM Worker (threadsafe) and Prefork. Since I'm trying to get both Tomcat and PHP working on the same system I need to know what version is installed of Apache, Worker or Prefork?

Looking in the package documentation, it said something about a virtual package... Looking inthe mods-enable directory, I don't see anything that indicates one or the other.

I'm also wondering if Tomcat integration can work with prefork?

View 1 Replies View Related

Ubuntu :: Bash: Determine If Running In Terminal?

Jul 10, 2010

I'm writing a bash script to move files around based on various bits of metadata. For a few reasons, this script will be run regularly both from the terminal, and from the nautilus-scripts folder ("graphically", if you will). What I'm stumped on is having the script defer outputs based on which mode the script is running in. For example, how can I have the script know whether to echo error statements, or pump them out to zenity based on the method of invocation?

View 2 Replies View Related

Ubuntu Installation :: Python-lazr.uri After Upgrade To 10.04LTS 64bit?

May 28, 2010

After upgrading to 10.04LTR 64bit I encountered this problem below... I have already tried -f / --configure to no avail.

@ASUS-AMD64:~$ sudo apt-get upgrade Reading package lists. Building dependency tree Reading state information Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Do you want to continue [Y/n]? y
Setting up python-lazr.uri (1.0.2-1) dpkg (subprocess): unable to execute installed post-installation script: Exec format error dpkg: error processing python-lazr.uri (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: python-lazr.uri E: Sub-process /usr/bin/dpkg returned an error code (1)

View 6 Replies View Related

General :: Unable To Install Python Package On 64bit Ubuntu

May 24, 2011

I've a 64-bit Ubuntu Linux machine. Linux version 2.6.28-14-generic (buildd@yellow) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #47-Ubuntu SMP Sat Jul 25 01:19:55 UTC 2009 Ubuntu 9.04
Linux Debian 5.0 ( 2.6.28-14-generic x86_64)

When I tried to install the python-dev package on it using the command sudo apt-get install python-dev, I got following messages.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed: python-dev
0 upgraded, 1 newly installed, 0 to remove and 271 not upgraded.
Need to get 978B of archives.
After this operation, 24.6kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
Install these packages without verification [y/N]? y
Err jaunty/main python-dev 2.6.2-0ubuntu1 404 Not Found [IP: 80]
Failed to fetch 404 Not Found [IP: 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Tried with --fix-missing option as well. Same errors in this case also. How I can install python-dev package on 64-bit Ubuntu Linux machine?

View 2 Replies View Related

General :: Determine Version Of System That My Synology Server Running?

Jul 7, 2011

Can anyone tell me how I determine the version of linux my Synology Diskstation DS210+ is running?\

View 3 Replies View Related

Software :: Determine The Full Path Of Sendmail Running On The System

Nov 16, 2010

Checking the process table for the running sendmail, I would like to know the full path to the sendmail binary a la the ps -ef on a Sun or other servers. How do I get ps to give me the actual path, or should I use a different tool on my Linux servers?

View 2 Replies View Related

CentOS 5 Server :: Determine Memory Consumed By Each Application Running?

Feb 22, 2011

What would be the best way to determine memory consumed by each application running on the server?

View 7 Replies View Related

Fedora :: Commenting Out Block Of Code In EMacs In Python Mode

Jan 13, 2010

I usually develop python code with emacs, emacs being in python code. On my desktop a version is installed and/or configured that way, so I easily can choose a region in the code and simply click on a menu option to comment out this block of code (i.e. at the begin of each line in the selected code two '##' are put). That is very convenient.

However, on my Laptop, running F12 and emacs 23.1.1, this menu option is missing! I searched within google and found the hint that by pressing 'C-c #' I also can comment out a selected region. But on my emacs it says: 'C-c # is undefined'. Am I missing something? Anyone any idea how to fix/install/update/solve this problem, so I can easily choose a couple of python lines and comment them out?

View 3 Replies View Related

Ubuntu :: What Version Of Python You Are Running

Jul 7, 2010

I need to know what version of python I am running. I am running ubuntu 10.04 and am going to be downloading wxpython but need to know what version of python I am running.In php there is a built in command phpinfo() that tells you everything you need to know about your installation of php, does python have something like this?Also, learned of python 2.7 today, I am currently learning python and am wondering if i should go ahead and upgrade or wait??

View 3 Replies View Related

Programming :: Totem Python Plugin Programming: Any Signal For Video Mouse Click?

Feb 9, 2011

I want that I click with the mouse on the video, it paused.I notice that there is "BaconVideoWidget" which I guess is the video rendering widget but it don't have signal named "clicked":

vd = totem_object.get_video_widget()
vd.connect("clicked", vd.hide)


View 3 Replies View Related

Programming :: Determine Which Device The Web Cam Is Using?

Aug 31, 2010

When I run apps like mplayer to use my web cam it uses /dev/video#. For reason unknown to me this number changes and is usually either 1 or 0. I have looked on the Internet after struggling to find how to know which /dev/video device is used. So far I can only presume I have used the wrong terms to find how to determine which device the web cam is using.

View 5 Replies View Related

Programming :: Determine What CPU Thread Is On?

Jul 2, 2010

Is there a library/system call that will return to me what CPU core a thread of execution is running on? I've looked for a bit on the net already and also in /usr/include and couldn't find one.

getcpu() and sched_getcpu() are two that I found, but when I include the appropriate header files (linux/getcpu.h, and sys/sched.h respectively), gcc says getcpu.h doesn't exist and the linker complains it cannot find the implementation in sched.h.

I'm sure I'm doing something really stupid or overthinking...

What I am doing is running an OpenMP application and specifying a list of cpu cores to run on with GOMP_CPU_AFFINITY. I want to make sure that each core is getting the same number of threads.


It seems that this code works, but only with glibc >= 2.6, and my machine has 2.5:

#define _GNU_SOURCE
#include <stdio.h>
#include <utmpx.h>
int main( void )


View 3 Replies View Related

Software :: Running Mysql-python Interface?

Nov 30, 2010

I just took a class on sql, unfortunately, it was Windows-centric, which means I have to figure out how to do stuff in Redhat by myself. By installing mysql via yum and then running pirut, I find there is an interface type program called MySQL-python-1.2.1-1.x86_64 so I installed it but I'll be danged if I can find any information on how to actually run the thing. What is the command to start MySQL-python-1.2.1-1.x86_64?

View 6 Replies View Related

Programming :: Determine Files And Directories?

Mar 9, 2010

i made a program to list all the files in a directory,is there a way to determine what are directories and what are files ?

View 5 Replies View Related

Programming :: Determine Sender PID Of A Connection

Mar 4, 2011

I have observed in a process's log file that it is receiving a number of connections from other processes running on the same box.

For example, I see lines of the following:

While I can use "netstat -tlp | egrep '5870|5871'" to see the PID of the listening process. How is it can I find out what PIDs are sending from 23870 and 23548?

View 2 Replies View Related

Programming :: Need To Determine Bitrate Of Stream?

Dec 3, 2009

I'm new to gStreamer and need to determine the bitrate of a stream. Has anyone here worked with this before and does anyone know how to do it?

View 1 Replies View Related

Programming :: How To Determine If VGA Monitor Plugged In

Sep 2, 2010

Does anyone know a way (hopefully a standard/generic way, e.g. through sysfs the interface) to determine if a VGA monitor is plugged in on Linux?

View 2 Replies View Related

Fedora X86/64bit :: 10 X86_64 Not Waking Up After Being In Sleep Mode?

Mar 27, 2009

I have Fedora 10 x86_64 installed on my Think Pad T61p and when ever I put it to sleep and then try to wake it back up, it doesn't wake back up, all I get is a blank screen

View 2 Replies View Related

Copyrights 2005-15, All rights reserved