LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2011, 07:21 AM   #1
PhilipRH
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
Import Error: No module named apsw


Python version 2.6 worked fine but since updating to version 3.1 and now 3.2 I cannot get beyond this error. I have also downloaded and installed APSW v3.7.5
 
Old 03-19-2011, 03:52 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Some loose thoughts:
Check the path variable

Quote:
echo $PATH
and look where your system looks for stuff, make sure either
- the path variable caters for the location of the (missing) file/module
or
- make sure the module is "in there" somewhere

I noticed you're an Ubuntu user, you might wanna look here
https://help.ubuntu.com/community/En...nt%20variables
to learn about env vars...if you dont know that already (dont know your profeciency, sorry)

Luck

Thor
 
Old 03-20-2011, 04:50 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Quote "2.6 worked fine but since updating to version 3.1 ..... " :
Python 2.6 can be updated to 2.7.

Python 3.x is not really a simple update, but a change to a new different python.
There is documentation that tells how to convert python 2 programs to use "3.x".
And documentation : How to use python 3.

The command : 'python --version' : Will tell which version you actually use.
( Also: May be you installed apsw-3.7.5 to /usr/lib/python2.6/ ?
Then python3 will not be able to use it, and will not find it.)

.

Last edited by knudfl; 03-20-2011 at 04:53 AM.
 
  


Reply



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
transcode audio import module error voyciz Linux - Software 3 07-21-2009 12:38 AM
Internal Error: No module named Config yuri16 Linux - Software 1 05-22-2009 05:17 AM
yum error: no module named rpm catbird Linux - Newbie 4 02-21-2008 09:55 AM
bitpim No module named apsw jerzeejerome Linux - Software 0 12-25-2007 07:12 PM
gnochm error - No module named gconf raghav Fedora 1 12-14-2005 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration