General :: Make Use Of An ".so" Module In Python Programme?

May 13, 2011

I am new to linux. I want to make use of an ".so" module in my python programme. I have successfully installed the ".so" module by a setup file. But when I try to import the ".so" module in my python programme I am getting an error like ImportError: /usr/local/lib64/python2.5/site-packages/_first.so: undefined symbol: __fread_chk.I am working on opensuse server. Please let me know if you require any further information.

View 2 Replies


ADVERTISEMENT

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

General :: Install The Python Module For Gnash?

Aug 5, 2011

How do I install the Python module for Gnash?

But apart from that, what basic concept am I not understanding about installing packages on Linux?

I am used to installing packages using package managers - mostly apt-get and zypper. I have occasionally installed from source, often with no trouble. However I recently installed Gnash and discovered that it has a Python binding that must be compiled from source and this has led down a rabbithole making me feel stupider at each turn.

First, I attempt do a ./configure --enable-python in the gnash source dir. This ends up failing with an error that

package pygtk-codegen-2.0 isn't found

The lead developer, Rob Savoye, was kind enough to point me at packages.debian.org, telling me I just need to locate this package. After many failed searches, I found that the python-gtk2-dev package contains this ... file? script? Great, but I couldn't figure out how to obtain the python-gtk2-dev package. It doesn't exist in any of my openSUSE configured repositories.

So I headed to the GNOME site and searched, found that the PyGTK package contains pygtk-codegen. Download the tarball, cd, ./configure, and this fails because I don't have GLIB. After some more searching I use zypper to install glib2-devel (libglib-2.0 was already installed), and now PyGTK fails to configure because I don't have GObject.

Find that, download tarball, cd, ./configure, fail. I don't have gobject-introspection-1.0, apparently. I DO have gobject-introspection installed, and it's version is ≥ 1.0, but that's what the script says.

So I will readily admit I am new to Linux, but I have to be missing some basic step here. Can anyone give me a clue about any of the above? Is it normal to have to install one dependency after another like this? Is OpenSUSE the wrong distro? What would make this process not so horrible?

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

Fedora :: Python Module Urlgrabber

May 12, 2010

After trying to upgrade from fedora 10 to fedora 11 gui and yum will not run. When i try to use yum i get a message that module urlgrabber is missing or wrong version. also libssl.so.7 is missing.

No yum options work.

View 3 Replies View Related

Software :: Yum - Missing Python Module

Oct 7, 2010

I have a testing server (Centos 5.4) with cpanel installed, once i ran a script which erases log files by using the find and rm command.

Anyway looks like this script deleted one of the modules to python, the logging module. so python stopped working, i thought reinstalling it should solve the problem so i downloaded the tar ball and reinstalled python from source and it's all the same.

Now yum command isn't working because it's giving me this error "no module named logging".

I decided to synchronize the whole python folder /usr/lib/python2.4/ from the live server using rsync and it did not help

I searched for the yum rpm package and i downloaded and installed yum-3.2.22-20.el5.centos.src.rpm using rpm and it did not help.

View 5 Replies View Related

Software :: Python 3.1.1 And Module Pycrypto 2.1.0?

Jan 14, 2010

Just throwing out a blanket call to see if anyone has been able to install the Pycrypto module (2.1.0) from source using Python 3.1.1? I have been able to get past two minor errors:

1. Error -
File "setup.py", line 46
raise RuntimeError, ("The Python Cryptography Toolkit require "
SyntaxError: invalid syntax
Solution - remove comma (,) and space prior to bracket

[Code]...

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

Ubuntu :: Missing Zlib Module In Python?

Apr 9, 2010

I'm trying to run a backup script in an application which reports the following error message:

Quote:

** An error occurred while performing the backup process. **
Exception -> ['Traceback (most recent call last):
', ' File "backupdb.py", line 402, in main
', ' File "wtbackup.py", line 2665, in main

[Code]....

View 6 Replies View Related

Server :: OpenIPMI Python Module For Ubuntu?

Feb 3, 2011

I am trying to get the python GUI working for OpenIPMI on Ubuntu and I can't find the required OpenIPMI python module. where to find this module suitable for Ubuntu 8.04.4 (Lucid)? There are RPMs available for different RedHat flavours but I can't find anything for Ubuntu.

View 2 Replies View Related

General :: Writing A Kernel Module And Make Concepts

Mar 13, 2011

i have written some really basic loadable kernel modules. There are a couple of concepts that i'll like to get cleared.

In a tutorial, the Makefile was given as follows-
obj-m += try.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

I understand that -C option of 'make' changes the current directory to /lib/modules/$(shell uname -r)/build (which depends on my kernel).

Now, my question is why to change to that particular directory? Also M=$(PWD) will hold the dir where i have written the module. Why is it required? What does 'modules' at the end of that line indicate?

Q2> We need to include <linux/module.h> and <linux/kernel.h> in a module. If i am right, the module uses kernel headers for these definitions. But how does 'make' find these definitions.

Q3> We are planning to write a custom scheduler for linux kernel. cat /sys/block/sda/queue/scheduler gives us the currently loaded schedulers. How do we expose our scheduler to linux kernel so that we can use it by switching to it.

View 3 Replies View Related

Fedora :: Streamtuner2 - Pyquery Python Module Missing

Jan 14, 2011

Streamtuner2 installed via yum under either F13 or F14 complains that the pyquery python module is missing. My vague understanding is that it is relevant to parsing some xml. Pyquery doesn't seem to be in rpm form in any of the repositories, but can easily be installed from source:

As root:
Code:
yum install mercurial
As a regular user:
Code:
hg clone [URL]
cd pyquery
python setup.py build
As root, in the pyquery directory:
Code:
python setup.py install

Streamtuner2 works without pyquery, but I'm guessing can parse information about more streams with it.

View 2 Replies View Related

OpenSUSE :: Jack Audio Client Module For Python Like Pyjack?

Feb 7, 2010

Why is there no opensuse jack audio client module for python like pyjack.

View 2 Replies View Related

General :: How To Use Fork In My Programme

Aug 31, 2009

1) Write a C program using the fork() system call that that generates the Fibonacci sequence in the child process. The number of the sequence will be provided in the command line. For example, if 5 is provided, the first five numbers in the Fibonacci sequence will be output by the child process. Because the parent and child processes have their own copies of the data, it will be necessary for the child to output the sequence. Have the parent invoke the wait() call to wait for the child process to complete before exiting the program. Perform necessary error checking to ensure that a non-negative number is passed on the command line.

2) Repeat the preceding exercise, this time using the CreateProcess () in the Win32 API. In this instance, you will need to specify a separate program to be invoked from CreateProcess(). It is this separate program that will run as a child process outputting the Fibonacci sequence. Perform necessary error checking to ensure that a non-negative number is passed on the command line.i have done with Fibonacci sequence .but i dont know how to include tht fork() function and win32 api .any one can help to finish?

View 4 Replies View Related

Fedora Servers :: Install MySQLbd (a Module For Python To Connect And Access MySQL)?

Sep 28, 2009

I was trying to install MySQLbd (a module for python to connect and access MySQL) I followed these steps for installation[URL].. but while I am getting some installation errors. When I try to run $ python set.py build I am getting the following errors (I removed few errors as I can post more than 10000 characters here)

[Code]...

View 3 Replies View Related

General :: Is Ubuntu OS Or Just Software Programme?

Sep 21, 2010

When opening ubuntu live cd it appears to me as an operative system. Can it replace an os OR SHOULD IT BE USED ALONG WITH A SUITABLE OS? If it is the second option then what system to adopt? At present Ihave an XP prf.

View 3 Replies View Related

General :: Programme With Grammar Mistake [ Can't Find Out

Apr 25, 2011

i just can't know how to get it work.

Code: #include<stdio.h>
main()
{
int _res;int i=3;int b=5;
asm_ ("add %1,%0"
:"=d"(_res):"a" (b),"0" (i));
printf("%d",_res);
}

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

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 :: Adding A New Kernel Module To Wireless Driver Module?

Apr 22, 2010

I want to add some code in existing linux2.6.33.2 to enhance kernelI want to know how to start and where to add code.

View 2 Replies View Related

Ubuntu :: Make A Program Use An Older Python Version?

Jun 3, 2011

I need to know how to make a program use a version of python older than the newest one. I am trying to run the Traipse fork of OpenRPG. Through their forums, I have learned that one of my problems is that I am running too new a version of python. I have python 2.7.1 installed.

I also have python2.6.6 installed, so I should be able to use that. My first thought was to uninstall 2.7.1 and just use the older version. The problem is that if i uninstall 2.7.1, it wants to also uninstall all the packages dependent on that program. Let's face it, in Natty Narwhal, that is pretty much everything.

Do you know how to force Traipse make it use the 2.6 version?

View 2 Replies View Related

General :: Install Module U32 Into The Netfilter Module For Kernel 2.6.27

Jan 30, 2011

I need to install module u32 into the netfilter module for kernel 2.6.27.

I did not see the source code in the kernel version I have. where can I find the code for U32 module.

I have checked "netfilter.org" and looks like POM is discontinued. Is the u32 module committed to kernel version 2.6.27 or need to patch it. If yes, where can I find the patch?

I building the kernel for a MIPS processor.

View 3 Replies View Related

Programming :: Possible To Make Application Module Similar To LKM?

Feb 8, 2011

Is it possible to create a loadable module for a C app that could be loaded into the app in runtime from a CLI or web interface?I would like the code to handle a particular type of structure to be "swappable" for lack of a better term. This would allow different modules to be used based on the users wants without having to mess with code. A different module could be downloaded into the application directory then loaded. Basicaly the code would be handed a pointer process it then return it.

View 2 Replies View Related

Ubuntu Multimedia :: Nvidia Module Won't Load / Make It Possible?

Jul 23, 2010

This nvidia driver is driving me nuts... I have tried everything I can think of including multiple solutions from threads.

I have a GeForce FX5200 with the nvidia-current drivers installed. On boot I receive the following error messages... code...

If I try and open the nvidia server settings I get the following message.

You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server.

In Jockey I get:

The driver is activated but not currently in use.

I am using headers 2.6.32-23 and have updated to grub2 (something that seems to have fixed a mismatched header issue for others). I have uninstalled and reinstalled drivers, edited the xorg.conf with nvidia-xconfig as well as manually and I don't know what else to do... any suggestions would be appreciated... 640x480 is crap.

View 2 Replies View Related

Ubuntu Servers :: Unable To Make A Vmmon Module?

Jul 31, 2011

Unable to make a vmmon module that can be loaded in the running kernel

View 2 Replies View Related

General :: Failed To Load "canberra-gtk-module": Libcanberra-gtk-module No Such File Or Directory

Mar 25, 2011

i installed firefox 4 and removed the old 3.X version. did a general update that my computer showed me was available then i noticed the first problem. firefox 4 would not launch when i clicked it, it would only launch when i clicked the gnome 3 applications button and then clicked and dragged the firefox logo to the desktop, then it opened. the second problem i am now having which at the moment is more bothersome is that after i closed the lid to my laptop and opened it up again after a while and logged back in and noticed that the ENTIRE gnome 3 environment was gone. no panel no menu nothing just the desktop and a few desktop icons. i tried the command "yum install gnome-shell" but it just sed that gnome 2.31.5-7 .fc14.i686 was already installed so it wasnt gonna do anything, then i tried the "gnome-shell --replace" command and it just said

failed to load "canberra-gtk-module": libcanberra-gtk-module no such file or directory.

View 5 Replies View Related

Ubuntu :: Ssh To A Box And Launch A Programme

Jul 19, 2011

Is that possible to ssh to a box and launch a programme, say firefox, have the session disconnet when not using it and then you can reconnect to the same session again?

View 2 Replies View Related

General :: (EE) Failed To Load Module "vmwgfx" (module Does Not Exist, 0)

Jun 23, 2011

I cannot find the Xorg configuration file on my newly installed Debian on my tablet-pc, so I followed this tutorial [URL] and ran the command "Xorg -configure", to which I got the following error messages:

(EE) Failed to load module "vmwgfx" (module does not exist, 0)
(EE) vmware: Please ignore the above warnings about not being able to load module/driver vmwgfx
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

[code]...

View 2 Replies View Related

Ubuntu :: Launching Programme At Start

Dec 31, 2010

I've written a simple program in C++ that I want the system to launch each time I turn the ubuntu system on. Any idea how to do this?(I'm not an expert either so please be explicit )

View 3 Replies View Related

Programming :: Spawn Web Browser In C Programme?

Sep 23, 2010

i want to spawn the browser in c programme like qtp & selenium.

View 1 Replies View Related







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