Ubuntu :: Python Based Programs Not Working

Apr 8, 2010

I've been using Ubuntu 9.10 fairly regularly on my home computer for a week or two now, dual-booting it with Windows 7. So far I've been quite happy with it, but yesterday something odd happened. I decided to copy all the music I had stored on the Windows partition over to the Ubuntu file system so that I could listen to it there. I have about 16 gigs of music mostly in .mp3 format, so I put the folder on an external hard drive, then logged into Ubuntu and copied it back from the external drive to my Music file.

Once the transfer was done, I opened the Music file and double-clicked on one of the .mp3s at random to play it. When I did this, a window popped up and the first half-second or so of the track played, and then the window closed and it stopped. This happened once or twice more with different .mp3s. The window didn't last long enough for me to get a good idea of what program it was for, but I assume it was Totem, which I hadn't yet run since installing Ubuntu, because according to the Properties->Open With tab of any .mp3 file, that's the default program to use to open .mp3s.

Attempting to run Totem from the Applications menu gives the same result, I later found. Attempting to run Totem from a terminal gave the following error:

andrew@Lovelace-Linux:~$ totem
** (totem:2323): WARNING **: Could not import pygtk
ImportError: No module named pygtk
Segmentation fault

Then, several other programs began having similar issues immediately after I first tried to play a .mp3 yesterday. Specifically, Rhythmbox - which I also hadn't used before, and next tried to use to play the music - will not start at all. Running it from the terminal gives:

andrew@Lovelace-Linux:~$ rhythmbox
** (rhythmbox:2338): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed
** (rhythmbox:2338): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed
(rhythmbox:2338): Rhythmbox-WARNING **: Could not import pygtk
ImportError: No module named pygtk
Segmentation fault

Note that pygtk is again referenced. The weirdest part is that other program that's having this issue, an IM client called emesene, is one that I had been using just fine, without issue, for several sessions previous. Since trying to play that .mp3, it now won't run at all. I tried removing and re-installing emesene, to no avail. Running it from the Terminal gives:

andrew@Lovelace-Linux:~$ emesene
Traceback (most recent call last):
File "/usr/share/emesene/Controller.py", line 21, in <module>
import gtk
ImportError: No module named gtk

This time the missing module is gtk, but I know that emesene is written in Python, which the earlier "pygtk" is perhaps a reference to. Thus, the connecting thread between all these programs, as near as I can tell, is Python.

View 9 Replies


ADVERTISEMENT

Ubuntu :: Python Based Programs Fail To Start?

Oct 30, 2010

since it started i cannot launch software-center, vlc, emesene... they all stopped working... i checked the logs of synaptic to see if i removed a python package and i didn't. i tried selecting all python packages for reinstall, and it didn't help! i really don't want to reinstall ubuntu.

View 9 Replies View Related

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

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

Ubuntu :: Saving Python Programs - Error Permission Denied

Apr 11, 2010

I wanted to save a python program because I am reading byte of python and I went to save in !/usr/bin. When I try to save in this folder I get this error "[Errno 13] Permission denied: 'usr/bin/helloworld.py'.

View 9 Replies View Related

Programming :: Created Python Programs - Making Changes To Improve?

Dec 17, 2008

I have list of programs which I have created during the past few days, all the programs are attached in txt files, and if anyone can do favor, and double check if they work, and what changes I can make to make it look different, or to improve it.

View 9 Replies View Related

Fedora :: Terminal-based Programs Won't Run Because It Can't Find Libtermcap

May 30, 2010

I installed Fedora 12 on a new machine (Intel Core i3) and one of my terminal-based programs won't run because it can't find libtermcap. The specific error is

Quote:

error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory

I seem to have this problem every other time I install a new Fedora. I tried a few things with old libtermcap files from other machines, and I tried looking around the YUM repository, but nothing seemed to work.

What's the proper way to get the libtermcap libraries for a Fedora 12 machine on an iCore i3?

View 1 Replies View Related

General :: What GUI Linux Programs Are There For Finding Files Based Upon Their Contents?

Sep 18, 2010

What GUI Linux programs are there for finding files based upon their contents?

View 5 Replies View Related

Fedora :: Python 2.5 On 12 Not Working

Feb 15, 2010

I've got Fedora 12 and I need to install python 2.5. Without trhis version of python, very important program to me will not work - is it possible?

View 6 Replies View Related

Ubuntu :: Simple Python Script Not Working Properly

Apr 27, 2010

Trying to learn python. Going well, but I have run into a minor speed bump. I wrote a simple program to see if Python was set up correctly. Wouldn't you know it, the thing pops open and then closes again. I put raw input fields there to stop the program, but they didn't work. The program is:

Code:
x = raw_input("Please input your name: ")
print "Hello " + x + ". Good to meet you."
raw_input("Press Enter to exit")

And as for python, I have installed the following packages. The program was made in IDLE using Python2.6 I just started learning python a few days ago, so this may be a really small mistake.

View 1 Replies View Related

Programming :: Python Gconf Not Working When Ran As Root?

Jan 23, 2010

This is the case. I run openSUSE 11.2 with GNOME. I want my desktop wallpaper to automatically cycle on a fixed interval. So I found this script (change-background.py), edited it to match my needs, and put it in my home bin directory. The script runs fine.

change-background.py

Code:
#!/usr/bin/env python
#
# change-background.py
#
#

[Code]....

View 6 Replies View Related

Ubuntu Multimedia :: Getting ICM532 Chipset Based Webcam Working?

Mar 27, 2011

I have a ICM532 chipset based webcam (D-Link DSB-C320). I could not find a solution across the forums to get the camera working properly for me on Ubuntu 10.10. There is a thread [URL] concerning the same chipset on the forums, but it is quite old. I do not want to risk breaking my system while attempting the fix. It would be really helpful if you could help me on the same. Also, when I check the webcam through Cheese, I get images with alternating yellow-tinge and blue-tinge.

View 1 Replies View Related

Fedora Security :: SSH Key Based Login Not Working On F11

Jul 20, 2009

I'm migrating my file server from Fedora 9 to Fedora 11 (clean install), and I'm having a horrendous time trying to get key based SSH logins working. I've set it up before, and I can't figure out why it won't work now. I copied my public key into ~/.ssh/authorized_keys2 and set the folder permissions for 700 and the file permissions for 600. Then I restarted sshd. Now unless I remember wrong I thought that's all you have to do. It didn't work. So I rebooted just for good measure. Still didn't work. So I made sure that my client was still sane. I can log into my OpenBSD machine just fine. I compared the sshd_config from OpenBSD to the Fedora one, and the options seem pretty close.

At that point I had nothing to lose and just started messing with the Fedora sshd_config. I also noticed in the config that the commented AuthorizedKeys file had dropped the 2 off the end, so I tried changing that as well. Still nothing. Password based logins work, but I really don't want to go that route. Now I can only think of two possibilities. One, some sshd_config setting is wrong and I don't know what it is. Two, there's some package that's required for key based logins that I accidentally unchecked during the install process. That's about all I can come up with. Here's my sshd_config, I tried to just set everything back to default.

Code:
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# Disable legacy (protocol version 1) support in the server for new
# installations. In future the default will change to require explicit
# activation of protocol 1
Protocol 2 .....

View 2 Replies View Related

OpenSUSE :: 11.0 - Gecko Based Browsers Not Working

May 11, 2010

I am using various browsers on opensuse 11.0
==>Opera
==>Firefox
==>Seamonkey
==>Konqueror

I find that the gecko based brwosers firefox and seamonkey are not working, page loading is extremely slow/not working at all sometimes. On the other hand Opera and Konqueror are working fine. The gecko browsers are loading pages well only when I right click on web pages and use "open with browser menu" from either konqueror or opera.

View 9 Replies View Related

Server :: Name Based Virtual Hosting Not Working?

Jan 10, 2011

I've been trying to get my name-based server to work for a week now. I've read about everything there is and double checked my configs, but when I go to any of my sites, it always goes to the first virtual host.Here is my Webmin system info -Quote:

System hostnamelocalhost.localdomain
Operating systemRedhat Linux Fedora 11
Webmin version1.530

[code]...

View 6 Replies View Related

Programming :: Regular Expression Working Fine In JavaScript But Not In Python?

Jun 22, 2010

I have this regular expression

Code:

(@description ").*(";)

I want to match anything in between the quotes its working fine in JavaScript but its not working in my python program:

Code:

#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
import re

[code]....

View 3 Replies View Related

Ubuntu Multimedia :: V4l-dvb Programs Not Working?

Mar 17, 2010

None of the tv viewing programs work, ether they crash or don't produce a stream.

I am sure the drivers are installed. The card is autodetected as a WinTV-HVR-1270. From what I have read on other post the 1250 r4 detects as a 1270

My system;
asus m2n-sli
GeForce 7600 GS
Hauppauge WinTV-HVR-1250 r4
Hauppauge WinTV-PVR-500 (working)

[Code]....

View 3 Replies View Related

Ubuntu :: Control Keys Not Working In Some Programs?

Mar 19, 2010

control keys aren't working most of the time in Open Office. I can copy, cut and paste with the mouse, but Control+C/X/V/Z is not working at all. I also use intellij idea, there I have the same problem, but I can use its own defined control+alt+space. I've tried Abiword, the control keys worked at the begging but then after a while when I used control+something(C/X/V/Z), it always selected everything. Besides that, the control keys are working perfectly in nautilus, terminal, firefox, chrome, gedit. I'm using Ubuntu 9.10.

View 4 Replies View Related

General :: Calculation Of Working Time Based On System Uptime

Jul 28, 2010

I know several tools that allow tracking time spend on different tasks / projects.Is there any existing tool for very very simplified work-time-tracking.I am an employee, come to the office, switch on my laptop directly. I have mostly around 1 hr lunchtime, but sometimes less, sometimes more.At around 18:00 I want to type one command in the console (or simple GUI would also be okay of course) that tells me:"1 hour overworked. Go home now! (came at 8:00, 1 hour standard lunch-break)."

View 1 Replies View Related

Software :: RHEL 5 Apache Name Based Virtual Host Not Working

Jun 16, 2011

I have setup apache webserver on RHEL5 working fine for months now. Next task is to add another domain name to the webserver using the same IP address. I have been trying to set up apache name based virtual host for the past several days without success. Each time I try elinks [URL] it went to the main page sales.example1.com. Main page sales.example1.com is on DNS but 2nd domain [URL] is not created on DNS yet. I just doing testing first on /etc/hosts.

10.145.13.10 sales.example1.com sales
10.145.13.10 www.exampletst.com

I have tried googling, search forum, and read documentation. I have checked my httpd.conf file several times but there must be some simple step or config error that I might miss:

Apache version is 2.2.3. Output of my httpd.conf file:-
NameVirtualHost *:80
# Default Virtual Host
<VirtualHost *:80>
ServerName sales.example1.com
DocumentRoot /var/www/html
DirectoryIndex index.html index.shtml index.php
</VirtualHost>

<VirtualHost *:80>
ServerName www.exampletst.com
DocumentRoot /var/www/virtual/tours
ErrorLog /var/log/httpd/tours_error_log
CustomLog /var/log/httpd/tours_access_log common
DirectoryIndex index.html index.shtml
<Directory "/var/www/virtual/tours/">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

View 11 Replies View Related

Ubuntu Networking :: Upgrade To 10.04 Broke R8169-based Wired Ethernet - Working Only At 10Mbps

May 1, 2010

After upgrading from karmic to lucid yesterday made my RTL 8111 -network card die. It's integrated on Intel D510mo mini-itx board.

dmesg:

Code:

After some googling I found out a lot of forumposts about the same problem from year 2007, but the troubles seem to disappear on the newer versions and seem to be back now? With those posts I managed to get the link up by using ethtool by setting autoneg off and setting speed to be 10mbps and half duplex. Any other speed/duplex combination fails.

One suggestion I found was to install r8168-driver from Realtek instead of the r8169. It didn't help, result was very much the same.

I booted to 9.10 live-cd and there the network worked as intended (100Mbps, I dont have a gigabit switch)

I really wouldn't like to fall back to 9.10, but my file server is not very usable with 10mbps.

View 9 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:

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

Fedora :: Wine Programs Not Working

Apr 4, 2010

im using fedora 12 on my laptop and im trying too play battlefield 2 demo from [URL]... the installation worked quite nicely but when i go to play the demo the aplikation comes up saying loading battlefield 2 demo.exe than it vanishes is there anything i need to install to get this program to work?

View 9 Replies View Related

Fedora :: Add/remove Programs Not Working On F13?

Oct 23, 2010

I'm a new Fedora user and I having difficulty with the product.I downloaded both the live cd and dvd of F13. I installed F13 from the live cd and after it completed I created my user name and then rebooted. Once I logged in I went to Administration -> add/remove program. I then clicked on package collections and ticked off the ones that I wanted. I then clicked on the APPLY button and I noticed that in the lower left corner of the screen (below the left panel and just above the Help button) it said Running and then nothing. If I attempt to close the screen it says that all selections will be lost. I also went back and set the filter to list "all installed" and the programs that I had selected were in the list.I then decided to try the dvd iso, so I blew everything away and installed F13 from there, but I encountered the same thing.So I'm at a loss what I'm doing incorrectly

View 2 Replies View Related

Debian :: SOund Working In Some Programs But Not Others

Nov 19, 2010

After the latest update in testing, I found sound not to be working. I checked system config in KDE and found the wrong sound card set there. I changed it to the correct sound card, sound now works in some programs and not others (IE, Dragon Player and Amarok have sound, Kaffeine and Iceweasel do not).Sound does not work through the on board sound card.System beep sounds (through the onboard speaker) also fail to work.I've had similar problems in the past due to the inability to turn off the onboard sound, alsaconf has always fixed them, however debian has removed alsaconf from alsa-utils.

View 5 Replies View Related

General :: Get Apt-get To Install Python Packages For A Different Version Of Python?

Oct 27, 2010

in ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out howThings I have tried without success:changing the symlink at /usr/bin/python to point to /usr/bin/python2.7 - even after doing this apt-get still installs stuff to python2.6.Set up python2.7 as the primary alternative using update-alternatives - doesn't work

View 3 Replies View Related

Software :: Lm_sensors Not Working \ Running CentOS 5.4 On An Atom 230-based MSI MS-7418 Motherboard?

Jan 1, 2010

I'm running CentOS 5.4 on an Atom 230-based MSI MS-7418 motherboard. I'd like to monitor this host' CPU temperature as well as the HD's temperature, but can't get lm_sensors to work:

Code:
# uname -a
Linux msi.workgroup 2.6.18-164.9.1.el5 #1 SMP Tue Dec 15 21:04:57 EST 2009 i686 i686 i386 GNU/Linux

[code]....

View 6 Replies View Related

Ubuntu :: Kill Window Based On Based On Title Instead Of PID?

Apr 24, 2010

I am working on a set up, and I like to be able to toggle compiz on and off, or toggle dualscreen on and off. The thing is, I also have conky on my desktop as well as a terminal window embedded in my desktop (that requires compiz). So, when I turn comiz off, or resize my desktop, I want to be able to reposition conky/embedded-terminal and the terminals position is relative to my conky position and the size of my virtual desktop.

I can do this all fine, except that to reposition the terminal I need to kill it then reopen it. But if I kill gnome-terminal it kills ALL gnome-terminals instead of just my embedded one. How can I specifically close my embedded one and leave any others untouched? Lets say that the title of my embedded terminal is "trans777"Also, the trans777 titled gnome-terminal will be killed when compiz is not running.

View 1 Replies View Related

Fedora :: Working With Educational Programs And Games

Feb 22, 2009

I have in the past few months managed to get several people to switch to Linux just on the merits of its educational programs and games alone. Many people who are interested in educational programs for their children do not know where to find them for windows, and even when they do find them, they cost money, and might be worth nothing. So, i started looking into this on Linux, and did only minimal research on the available programs and games that are educational. I wound up already building 3 new computers that use Fedora, and getting several other people who already have a computer to switch to Fedora, just by making a video on how to use most of the educational programs that are available. This made it easier for those people to learn how to use the programs, especially for those that are not that intuitive, and it also showed them just what was available. [URL]

View 5 Replies View Related

Networking :: Many Programs Not Working On Neighbor WiFi

Oct 12, 2010

I've been using my friend's wireless network, but certain programs are having issues. Pidgin are Liferea don't work, Chromium seems to be the only usable browser (Midori and IceCat get "server not found" errors), Bittorrent (Transmission/Torrent) works fine. I've tested these programs on my laptop and desktop. Network proxy settings look fine, everything is set to autodetect.

View 2 Replies View Related

Fedora :: Programs Not Working (Version GCC_4.2.0 Not Found)

Oct 15, 2009

New to fedora and a bit stuck atm. I got Fedora 11 installed ok and working fine. I then installed Oracle, Adobe Reader and Opera. All seemed to go ok. On booting the machine today, it booted fine, but when I click on places->computer or places-network or firefox or the file browser all I get is the arrow with the ring spinning around it for a bit and then nothing.

So, I tried to start up Firefox from a terminal and I get:
/lib/libgcc_s.so.1 : version 'GCC_4.2.0' not found (required by /usr/lib/libstdcc+.so.6)

I get a few errors when I try and start opera, but one of them is the same as above. I tried nautilus - same thing. I'd be willing to bet it's the same for places->computer and places->network but I don't know how to start those up from the terminal. Part of the install instructions I followed have almost certainly caused it, but I don't know how to reverse them, this is what I did:

"unzip Oracle_Access_Manager10_1_4_0_1_linux_GCClib.zip

This gives you 2 files:
libgcc_s.so.1
libstdc++.so.5

Now move the libgcc_s.so.1 file to /lib/libgcc_s.oracle.so.1
sudo mv libgcc_s.so.1 /lib/libgcc_s.oracle.so.1

And the most important one:
sudo ln -sf /lib/libgcc_s.oracle.so.1 /lib/libgcc_s.so

(Even after the ldconfig command is given in the reboot fase, the link for /lib/libgcc_s.so remains!)

Then you have to rename the /usr/lib/gcc/i586-redhat-linux/4.4.1/libgcc_s.so to /usr/lib/gcc/i586-redhat-linux/4.4.1/libgcc_s_so
Otherwise /lib/libgcc_s.so.1 will be used in link and not /lib/libgcc_s.so, therefore the link will fail

Now you can start the installer by
./runInstaller.sh
And the linking will succeed."

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved