LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-19-2009, 08:39 AM   #1
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Rep: Reputation: 30
(SOLVED) Python import/binding error with compiled VTE library


EDIT: Problem solved. I just use my distributions package source and run their compile scripts after editing whatever source files I want.

I'm working on VTE, so I can use it in Python.

I can compile their source files successfully (using autogen.sh and make), but I do not know how to make a 'vtemodule.so' file that I can actually use in my python programs.

python ./demo-test.py #using the simple demo program they provide in the source files
Code:
#!/usr/bin/env python
import vte
I get the error message:
Code:
Traceback (most recent call last):
  File "./vte-demo.py", line 6, in <module>
    import vte
ImportError: No module named vte
I have no idea what to do. Please help.

My build process so far command line:
Code:
bzr branch lp:vte
cd vte
./autogen.sh
make
sudo make install
sudo ldconfig
cd python/
python ./vte-demo.py
The make and make install process do not seem to produce a vte-module that python sees on my system.

Last edited by sadarax; 09-20-2009 at 04:58 AM.
 
Old 07-21-2009, 06:43 PM   #2
bannock
LQ Newbie
 
Registered: Jun 2009
Location: Toronto
Distribution: Ubuntu, Fedora
Posts: 24

Rep: Reputation: 18
Looks like the build of vtemodule.so may have omitted some source files.
 
Old 07-21-2009, 11:46 PM   #3
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
Indeed. I did eventually figure that out. Now I must learn how to make it build the vtemodule.so file and install it.....
 
Old 07-23-2009, 08:05 AM   #4
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
Bump with new information about the problem. See first post.
 
Old 07-23-2009, 07:32 PM   #5
bannock
LQ Newbie
 
Registered: Jun 2009
Location: Toronto
Distribution: Ubuntu, Fedora
Posts: 24

Rep: Reputation: 18
Try this:
bzr branch lp:vte
cd vte
./autogen.sh
make
cd python
PYTHONPATH=../libs python vte-demo.py
 
  


Reply

Tags
python, symbol, undefined


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled C++ static library not recognized Afante Solaris / OpenSolaris 2 03-15-2009 04:11 PM
Superkaramba can't be compiled because of missing Python libraries/headers. Help! Fear58 Linux - General 6 09-05-2008 01:14 PM
can't import zlib in python when using a compiled 2.3.5 version laggerific Linux - Software 0 11-15-2006 06:09 PM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 11:05 AM
runing library compiled with gcc-2.95.2 when egcs-2.91.66 is installed chrilarc Linux - Software 0 10-04-2001 04:02 PM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration