General :: Why Can't The System Import Modules From The Python Standard Library In Ubuntu

Jan 22, 2011

The whole day was more or less spent reinstalling a basic Gnome Ubuntu system. Everything went swimmingly until I started with the XBMC part of the installation. After wrestling with PPAs and apt-get for hours I finally got it installed, but then it all turned awkward in a hurry. It simply refused to start up. I clicked the icon and nothing happened for a good few seconds. The screen then flickered black for an instant, but after that nothing. I started from a terminal and it showed an error message saying it couldn't import Python's os and shutil modules. I found that mighty strange since both modules are part of the Python Standard Library.

Finally, in a bizarre twist, it turns out this doesn't seem to be a XBMC problem, suddenly apt-get started complaining too. TL,DR: I (nor the system) can't import any Standard Library modules in Python in Ubuntu! Is this a path problem? Or have I actually managed to uninstall some vital python packages, if so which ones? I am running Ubuntu 10.10, but I don't think this is necessarily a Ubuntu specific problem. Here are some dumps to show the error messages: (I forgot to copy the XBMC error message, but it looked exactly the same as these below, i.e., it couldn't import the os module) First from apt-get:

Code:

tv@tv:/usr/lib$ sudo apt-get autoremove
[sudo] password for tv:
Reading package lists... Done
Building dependency tree

[code]....

View 1 Replies


ADVERTISEMENT

General :: Can't Import Qt Modules - PyQt Probably Not Installed

Nov 23, 2010

I m facing a problem in installing GNS3 Cisco simulator on Fedora 14. I persistently followed the instructions on the [URl]... website and the readme that came in with the GNS3 source package. The main packages needed before running GNS3 are:

Dynamips
Dynagen
Qemu
Qt 4.5.1 (or higher)
Python 2.5 (or higher)
Sip 4.5 (or higher)
PyQt 4.5 (or higher

Ive compiled and installed all the above packages...it took almost a lifetime, especially for Qt and PyQt. Then, I compiled and installed the GNS3 package and that went well too. But when I run the gns3 executable, I m getting the error message given below:

[root@mnpc GNS3-0.7.2-src]# gns3

Can't import Qt modules, PyQt is probably not installed. I did a double install on PyQt, but the problem still persists.

View 5 Replies View Related

General :: Using A Non-standard Library Path When Compiling Software?

Jan 10, 2010

I was wondering if there is an argument I can pass to the configuration file to have it use a library from a non-standard path to compile with - for example I would like it to use my perl located in /scratchbox/users/jeff91/usr/bin/perl instead of the standard /usr/bin/perl

View 3 Replies View Related

General :: Update Standard Fedora Library Package Without Internet Access?

Apr 26, 2010

I need to get the libstdc++.so.5 library ( on a computer with Fedora 8 and don't wonder why it's so ancient,-there is a good reason for it) but I don't have Internet access from that computer, so I can't get to the online repo's.

However, I do still have the installation disk, and I'm typing this from a computer (SuSE 10) that is half a meter from the Fedora box.

I tried the "ADD/REMOVE Software" option on the menu, but it keeps on looking for the online repo and then if it doesn't get it, it fails.

Is it possible to get this library from the installation disk. How? Could I download the single package from the online repo onto the SuSE machine and then move it to the Fedora machine? How do I then tell the Fedora machine to "incorporate" it.

View 2 Replies View Related

General :: Python Modules(lib-dynload) Are Too Big In Size?

Apr 28, 2010

Recently I have compiled python 2.6.5 on ubuntu "hardy" 8.04. The script was as simple as it could be:

Code:
./configure --enable-shared
make

[code]....

View 2 Replies View Related

General :: Unable To Build Python Modules In Mandriva 2010?

Jan 14, 2010

I am trying to build a Python module (pyfits) but I get the following error:

# python setup.py install
/home/steve/src/pyfits-2.2.2/stsci_distutils_hack.py:239: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.

[code]....

View 2 Replies View Related

General :: Finding Difficult To Understand The Methods Of Xml Modules In Python?

Apr 15, 2011

python can get anylink or any tutorials which is having few basic eg. and could help as a guide too. bcaz whatever now i have like "byte of python" which i feel difficult bcaz it lack in having eg. for modules of xml.so please help me by providing any better options

View 1 Replies View Related

Ubuntu :: G++ And Gcc Can't Detect Standard Library Files

Jun 26, 2010

I was have installed gcc and g++ both 4.4.3 Version They were working fine, but now they suddenly seem to have lost track. Both cant detect standard library files. not even iostream ,fstream. (i have already tried the .h variant) my /usr/local/include/ directory is empty, should not something be there.

View 9 Replies View Related

Programming :: Location Of - Gnu - C++ Standard Library

Jul 21, 2010

Where is the location of the header files for the c++ standard library?

I assume that they were installed by gnu g++, please correct me if i'm wrong.

I'm running ubuntu 10.04 with g++ 4.4.

I looked in /usr/lib/gcc/i486-linux-gnu/4.4/include, but this directory contains only the following:

Code:

Which doesnt seem to include the really basic things like iostream, for example.

Where can I take a look at the header files for these standard c++ libraries?

View 2 Replies View Related

Ubuntu :: Zotero - How To Import PDF Library

Jan 28, 2010

I have looked at heaps of the citation software and have settled on using Zotero for a few months to really get a feel for it. One major barrier is how to import my (large) pdf collection into it in one easy step.

Goal: have zotero import my PDF library in one batch. (ubuntu 9.04)

1. I have tried to do it 1 at a time. The sun will explode before I get that done.

2. I have tried this work around without success: Drag and drop from Konqueror (KDE 3.5, opensuse 11.1) fails for me, too. A workaround to allow drag N drop is to use Firefox as a file browser (enter "file://<location_to_file>" as the URL), and to drag and drop from there. [URL]

Firefox cant find the directory

3. I have tried drag and drop as suggested on the Zotero forums (largely for windows users). No luck.

4. I have searched the web, with no other suggestions that have worked.

View 4 Replies View Related

Programming :: Reverse A String Without Using Standard Library?

Sep 22, 2010

I am making a program to reverse a string

Code:
#include<stdio.h>
int main ()
{
int i,j;

[Code].....

View 5 Replies View Related

Ubuntu Multimedia :: RhythmBox Will Not Import To Library From XP Share

May 1, 2010

I am running the latest version, 10.04 and I am having problems importing music from my XP share. I can see my music in smb://squirrel/music The share on XP has full read/write perms. I then go Rhythmbox - Music - Import Folder and click on "music on squirrel" in "places" and I can see all of my dirs on the XP share. I then click on one directory and click "open" and Rhythmbox goes back to the main screen and there is nothing in Library - Music or anywhere else.

View 2 Replies View Related

Ubuntu Multimedia :: Import A CD Each Track Is Displayed Twice In The Library

Oct 1, 2010

Whenever I import a CD each track is displayed twice in the library (but only one mp3 file is made) with one track displayed as being a few seconds longer than its duplicate.

View 1 Replies View Related

Ubuntu :: 10.10 Python 2.6 Modules Not Found?

Jan 4, 2011

I am trying to import some Python modules into Ubuntu 10.10 (PySCeS and PyDSTool). If I download the modules and extract them into a directoy in my home directory, open that directory in terminal, and then import them into python (>>>import module_x) then it loads fine. However, if I am outside of the directories then it always returns an error saying the module is not found. I have tried putting the modules into usr/local/lib/python2.6/site-packages or dist-packages and usr/shared/pyshared etc but it never sees any of my modules. It also does this with modules installed from the repository. They are always "not found" but if placed manually in the working directory they are.

View 2 Replies View Related

Red Hat / Fedora :: GNS3 Configuration Error - Can't Import Qt Modules, PyQt Is Probably Not Installed

Apr 20, 2011

I am getting a error bellow error msg when running gns3, can some explain what needs to be done. Cant import Qt modules, PyQt is probably not installed?

View 1 Replies View Related

Ubuntu :: Python Interactive Session: "help()", Then "modules" Freezes Python?

Jan 12, 2011

This problem has to do with Python's interactive help (To get to the interactive help, just type help() at any interactive session). I like to browse all my installed Python modules, to see if I can find something that would be useful for my hobby programming projects. However, recently, typing modules (which is the command to list all installed modules) freezes the interactive session.

View 1 Replies View Related

Software :: Python 3.2 On Squeeze - Import Error

Apr 2, 2011

I downloaded the source to Python3.2

Code:
make distclean
./configure
make
make install
ImportError: No module named _tkinter
readline support for the interpreter seems to be gone
a few other oddities here and there

Is there a configure options doc that I missed somewhere? Python2.6 works as expected, with readline, Tkinter, cigarette lighter... the works!

View 2 Replies View Related

Server :: Importing One Of The Python Modules Required To Run Yum?

Jun 9, 2011

I'm update Python , but founde problem root@server [~]# yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum

Please install a package which provides this module, or verify that the module is installed correctly.It's possible that the above module doesn't match the current version of Python, which is: 2.6.7 (r267:88850, Jun 7 2011, 12:25:26) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] If you cannot solve this problem yourself, please go to the yum faq at: [URL]...

View 10 Replies View Related

General :: When Type"import WxPython" In "python Environment It Returns?

Jan 26, 2011

I have installed wxPython on my Ubuntu 9.10. But when I type"import wxPython" in "python environment it returns the followingerror.Does it need a PATH to be added in ".bashrc"? If so what should I write as a PATH for it?

>>> import wxPython
Traceback (most recent call last):
File "<stdin>", line 1, in <module>

[code]....

View 1 Replies View Related

OpenSUSE Multimedia :: Cover Art Plugin Won't Load Because It Fails To Import Python-gstreamer

Jul 19, 2011

I've been using OpenSUSE 11.4 with GNOME for quite a while now and so far I've been a happy camper. This morning I decided to try GNOME 3 and the install went smoothly, with the only exception of rhytmbox(my music player of choice) not being available.Later I found rhythmbox for GNOME 3 in this repo: Index of /repositories/ GNOME:/ Apps/openSUSE_11.4+GNOME_STABLE_3.0.It works well but the Cover Art plugin won't load because it fails to import python-gstreamer.Should I report a bug against OpenSUSE 11.4 or maybe I am doing something wrong?

View 1 Replies View Related

Debian Programming :: Packaging Shared Library With Python Wrapper

Apr 12, 2014

I have written a shared library and successfully used debhelper 9 to create a Debian package from source using a Makefile generated by cmake. I then went about writing a python wrapper to that library and wish to package that wrapper in with the library so I can have a single distributable rather than 2 separate ones.

All of my attempts so far have me placing my python source and a setup.py file in the same directory as the makefile at the time where I call debuild.

From here I have tried a couple different configurations to my debian/rules file as seen below:

Attempt 1:
# -*- makefile -*-
%:
dh $@ --with-python2 --buildsystem=python_distutils

This try seemed to package up the python stuff nicely but proceeded to ignore my makefile for the shared library and therefore ultimately failed.

Attempt 2:
# -*- makefile -*-
%:
dh $@ --with-python2

This try ran make, but completely ignored the python stuff. From some research I have gathered that the --buildsystem flag tells debuild to ignore any makefiles in the directory, which obviously causes a problem in my case.

Another attempt was to modify the build dependency to first run make and then call the python build process that file looked like this

Attempt 3:
# -*- makefile -*-

build:
dh $@
dh $@ --with-python2 --buildsystem=python_distutils
%:
dh $@ --with-python2 --buildsystem=python_distutils

This appears to somewhat work as both processes do build, but a few of the python files are still not getting installed.

Is this the way I should be going about doing this? I've noticed that most python wrappers tend to package themselves individually and then make that package dependent on the library it is attempting to wrap.

View 0 Replies View Related

General :: Import A SQL Server 2005 Database From System To Remote Ubuntu Using Putty?

Jun 5, 2011

I have a database in SQL Server 2005 in my local Windows System and I want to import this database to my linux (ubuntu) server remotely using putty.

View 5 Replies View Related

Fedora Security :: Python Library For MLS - Write A Program To Change Range For Users?

Apr 16, 2010

I need to write program (preffer Python) to change range for users. Does anyone know some library which can help me to do that? Maybe someone has written program like that?

View 5 Replies View Related

General :: FATAL: Could Not Load /lib/modules/2.6.18-194.17.1.el5.028stab070.7PAE/modules.dep: No Such File Or Directory

Mar 6, 2011

I want set up VPN on my VPS but when i try to turn on tun/tap i see:

:/lib/modules# modprobe tun
FATAL: Could not load /lib/modules/2.6.18-194.17.1.el5.028stab070.7PAE/modules.dep: No such file or directory
os : debian 5
(folder lib/modules is empty)

View 1 Replies View Related

Ubuntu Multimedia :: Gimp 2.7 And Python (Import Error - No Module Named Gimp)

Mar 2, 2010

If you had Gimp 2.6 (with gimp-plugin-registry installed) and installed Gimp 2.7 to try its new goodies, but Layer Effects are not showing, and when executing "gimp" from console you get these *nasty* errors:

Code:
This is a development version of GIMP. Debug messages may appear here.
gimp-user-install: migrating from /home/user/.gimp-2.6
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/layerfx.py", line 23, in <module>
import gimp, gimpplugin, math
ImportError: No module named gimp .....

If you haven't install the 2.7 version yet. Before upgrading, backup "python" directory and then just restore it after installing 2.7.

View 6 Replies View Related

General :: Configure Environment After Installing A Development Library In System?

Feb 17, 2011

I installed a library to the /usr/local/ prefix in Linux using ./configure && make && make install. What environment variables do I need to set in order for the linker and compiler to search these new library and header paths?

View 1 Replies View Related

General :: Build A Shared Library On System Using Same Command Used For Solaris?

Jun 22, 2011

I am able to build a shared library under solaris with
/usr/local/bin/g++ -G -o output.so file1.o file2.o file3.o.
How do I build the shared library under linux using the same files?
I have tried to use the same command /usr/local/bin/g++ -g -o but I got some undefined references, even if those references are defined in one of the object files.

View 3 Replies View Related

General :: Rc.modules Not Loading Modules At Startup?

May 11, 2010

I've been trying to load my pcmcia network card driver "xirc2ps_cs" at startup with no success. I have added "modprobe xirc2ps_cs" to the rc.modules file but it doesn't load at startup. Curiously, though, if I execute rc.modules AFTER the machine has booted it will load the modules just fine. Just not during the boot up process. Thinking that hotstart might have been causing problems I've disabled hotstart (chmod -x) temporarilly to remove it from the picture, but there was no change.

View 5 Replies View Related

General :: Find Memory Usage Of Shared Library Running In System?

Nov 30, 2010

I need to find the memory usage of a shared library loaded in Linux environment.

I need this information for deciding on whether to make the library part in to application or a seperate application itself.

View 3 Replies View Related

General :: Configured KOHA (an Open Source Integrated Library System) On Windows Xp Or Vista?

May 16, 2011

anybody used or configured KOHA (an open source Integrated Library System) on windows Xp or vista

View 1 Replies View Related







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