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


ADVERTISEMENT

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

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

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

Slackware :: ERROR: No /lib/modules/2.6.33.4-smp Kernel Modules Tree Found For Kernel "2.6.33.4-smp" ... For Mkinitrd - Encrypted Installation

Jul 22, 2010

I am trying to setup Slacware 13.1 x86_64 to a encrypted partition. I used the README_CRYPT.TXT howto : [URL] At the step when I create an initrd.gz I get this error: Quote: ERROR: No /lib/modules/2.6.33.4-smp kernel modules tree found for kernel "2.6.33.4-smp"

I tried to look into the directory and there was only modules under 2.6.44.3. So I tried to change the command into: Quote: mkinitrd -c -k 2.6.33.4 -m ext3 -f ext3 -r cryptroot -C /dev/sda2

This command was successful, but I don't know if this is alright. I made the changes in lilo.conf, add initrd = initrd.gz. This is all on unencrypted /boot partition. The boot=/dev/sda1 I also set for the unencrypted boot partition. When I boot the system I get a kernel panic:

[Code]....

View 5 Replies View Related

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 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

CentOS 5 :: Python Module Not Found?

Jan 8, 2011

I installed openxenmanager without a problem. but when I tried to start it I got: ImportError: No module named gtkvnc

the start script is in python, and I am using python2.5 to run it. I already installed

gtk-gtk-vnc.i386 0.3.8-3.el5 installed
gtk-vnc.x86_64 0.3.8-3.el5 installed
gtk-vnc-python.x86_64 0.3.8-3.el5 installed

Note: when I use python2.4 I got another error and it skip the previous one, the error is: ImportError: No module named hashlib

and when I comment it the application is running but with errors.

View 1 Replies View Related

Debian Installation :: Get An Error That Python.h Is Not Found?

May 20, 2010

I am trying to building freeradius from source, but I get an error that python.h is not found ? !

checking for python2.3... python2.3
checking for Python.h... no
checking for Py_Initialize in -lpython2.3... no

But both python and python-dev are installed ?

[Code].....

View 3 Replies View Related

General :: Installed Python Module Is Not Found?

Jul 10, 2010

This borders on stackoverflow/superuser, but I guess it's a simple installation problem.I've installed python-twisted on my ubuntu 10.04 server, but it can't be found.This is what I get when I try to import something:

>>> from twisted.internet import reactor
Traceback (most recent call last):
File "", line 1, in [code]....

I've installed the package through apt-get.That way the module is installed in this folder: /usr/lib/python2.6/dist-packages/twisted with an __init__.py file.When I try to use python setup.py install (on the download from the site) it installs it to /usr/local/lib/python2.6/dist-packages/twisted, but it also does not find it there.

View 1 Replies View Related

Ubuntu Installation :: Live USB 10.04 - GRUB Error "no Modules Name Found"

Dec 17, 2010

I reinstalled 10.04.(finally) on a single partition mounted as "/". everything went fine until I rebooted, GRUB began loading and then came back with "no modules name found". I found other postings with the same problem,[URL] but this method doesn't work with the Dmraid.

View 6 Replies View Related

Ubuntu Installation :: Install The 32bit 10.04 Server To An Atom Machine From A CD - Getting Error - "No Kernel Modules Were Found"?

May 26, 2010

I'm trying to install the 32bit 10.04 server to an atom machine from a CD burned with ubuntu-10.04-server-i386.iso. The installer is presenting me with the:"No kernel modules were found" ..error message. Is the atom cpu and chipsets supported by the 32bit server installer?

View 1 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

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

Ubuntu Installation :: Boot Error "modprobe: FATAL Could Not Load /lib/modules 2.6.35-22 Generic Modules No Such File Or Directory"

Apr 14, 2011

Tonight I installed ubuntu 10.10 (32 bit) on an external usb harddrive with a dvd I burned and I used my older desktop. I disconnected all internal and external drives first so everything had to be put on the usb drive I selected (only option available). I used the option to load extra software, use the entire hard drive, and let the software do it's thing. I basically had no options where to put things and it didn't have much choice.

When I boot the usb drive on my laptop (win 7 64 bit) by telling the bios to boot to it first... I get an error: modprobe: FATAL Could not load /lib/modules 2.6.35-22 generic modules No such file or directory. This message appears twice and then it does boot into ubuntu and seems to work fine. I'm new to this OS so that is an uneducated guess but the things I have done seem to be working. So exactly what is this error referring too? Is there a way to fix the problem or do I just ignore it.

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

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

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 :: Python 3 Want Situation For Python 2 And Become Stop?

Jul 17, 2010

Python 3 want situation for python 2?Python 2 become stop?

View 1 Replies View Related

CentOS 5 :: Yum - Python-devel / Python Dependency

Jan 7, 2011

yum dependency problem please? I am running Centos 5.5. I need to install python-devel, but when I do so I get:

[Code]....

View 2 Replies View Related

OpenSUSE Hardware :: Unable To Start VirtualBox Kernel Modules - Error Stopping VirtualBox Kernel Modules

Mar 23, 2011

I was trying to install VirtualBox through the YaST > Software Management but it is not working, someone in the forum told me that I have to download the OSE version and do it manual way. Finally I am able to start up VB but not able to use the network connection. Thus I am trying to do this:

/etc/init.d/vboxdrv setup. I get this error:

[code]...

When I type dmesg, it shows me a bunch of info which I don't know what should look for. When I type modprobe vboxnetflt, I get the error: FATAL: Error inserting vboxnetflt (/lib/modules/2.6.37.1-1.2-default/updates/vboxnetflt.ko): Invalid module format. what should I do in order to get my VB to be able to connect to the internet?

View 5 Replies View Related

Slackware :: Modules && /etc/rc.d/rc.modules?

Jun 24, 2011

Sometimes I have problems with modules not loaded properly /etc/rc.d/rc.modules, is it recommended to add codes to load modules in other scripts in /etc/rc.d/.

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

Code:

def blah(self, (string1, string2))

View 4 Replies View Related

CentOS 5 :: Upgrade Python-2.4.3 To Python-2.5?

Mar 30, 2011

How can I upgrade python-2.4.3 to python-2.5?

View 1 Replies View Related

Fedora :: Using Python 2.5 With Python 2.6 With F12?

Nov 30, 2009

Fedora 12 officially uses Python 2.6, good. But the Google AppEngine still goes by Python 2.5 and is showing import errors while i try to start the SDK. Here is the stack trace.

[URL]

View 3 Replies View Related

Ubuntu Multimedia :: 06a2:0003 Topro Technology - No Camera Found - Skryba Says No Devices Found

Mar 29, 2010

I have been trying to get this web cam working for a long time. lsusb:

Code:
Bus 004 Device 003: ID 06a2:0003 Topro Technology, Inc.
dmesg

Code:
[ 1990.570050] usb 4-1: new full speed USB device using uhci_hcd and address 3
[ 1990.751460] usb 4-1: configuration #1 chosen from 1 choice
Kernel patch: [URL]
Driver project: [URL]

Cheese simply says no camera found. Skryba says no devices found. Since this kernel patch was 2009-04-07 which is nearly a year ago it should be in latest kernel?

[Code]...

View 3 Replies View Related

Ubuntu Servers :: 9.10 2nd Ethernet PCIe Adapter Found Then Not Found?

Jan 24, 2010

During install of 9.10 server, both ethernet adapters were found. One is built-in to the motherboard, the second is on a PCIe slot. Selected the on-board adapter for eth0 during install, set fixed IP on the web, connected, updated, etc. w/ no problems. The second adapter is for the LAN.BUT, on first and subsequent reboots after installation complete the second adapter is not detected at all, as if it were not even plugged into the PCI or the driver not loaded. This happens on either of two slots, with two different adapters, Intel or Netgear, both pretty recent, and both of which are detected and work in a different box. 'Ethtool eth1' says device not found.This is a fairly recent motherboard 3N78EM).Since the adapter was found during installation I'm assuming that the problem is not with not the board. I've built several server systems with two or three ethernet adapters and have never run into this situation.

View 3 Replies View Related

OpenSUSE Install :: Installed Program Not Found - Kmess: Command Not Found

Oct 1, 2010

I installed a program with Yast (Kmess), but when I try to run it, bash gives me back this message:

Code: kmess: command not found I checked into Yast and it seems to be installed correctly!

View 9 Replies View Related

Ubuntu :: Identify Modules And Drivers Currently In Use?

Jun 30, 2011

Is there anyway of identifying which modules and drivers are being used on my machine? A log or app? I have a minimal install and what to install another, this time with only the hardware drivers/modules my machine needs (for instance, I don't need software for Xeon processors as I don't have one, therefore don't want that stuff hanging around serving no purpose).

View 8 Replies View Related







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