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
ADVERTISEMENT
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
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
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
May 7, 2011
how to determine if installed ubuntu is 32bit or 64bit?
View 4 Replies
View Related
Mar 22, 2009
I want to be able to do
sudo ./program.py
instead of always having to do
sudo python program.py
What do I need to change?
View 5 Replies
View Related
Nov 30, 2009
I've already used line split stuff to transform my data into something like this in a text file:
Code:
['1', '1', '3', '20.7505207']
['2', '1', '3', '23.0488319']
['3', '1', '3', '-1.5768747']
['4', '1', '3', '-26.4772491']
[code]....
How can I get this on a python program so I can manipulate it as an array?
View 3 Replies
View Related
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
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
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
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
Code:
def blah(self, (string1, string2))
View 4 Replies
View Related
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
Jun 3, 2010
I installed Apache by using the following command:
Code:
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
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
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
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!
python-dev
Install these packages without verification [y/N]? y
Err http://in.archive.ubuntu.com jaunty/main python-dev 2.6.2-0ubuntu1 404 Not Found [IP: 91.189.88.45 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/...buntu1_all.deb 404 Not Found [IP: 91.189.88.45 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
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
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
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
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
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
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":
Code:
vd = totem_object.get_video_widget()
vd.connect("clicked", vd.hide)
[code]....
View 3 Replies
View Related
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
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.
**UPDATE**
It seems that this code works, but only with glibc >= 2.6, and my machine has 2.5:
Code:
#define _GNU_SOURCE
#include <stdio.h>
#include <utmpx.h>
int main( void )
[Code].....
View 3 Replies
View Related
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
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
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
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
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
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