473,385 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Unable to make python work properly

Hi all,
I'd greatly appreciate any help. I can configure, make and install
everything fine. I'm using python 2.4 I have ubuntu dapper drake. I am
trying to install hplip which requires python. When I do this, this
also works but while running the following error occurs:
Traceback (most recent call last):
File "/usr/local/bin/hp-setup", line 31, in ?
import readline, gzip
ImportError: No module named readline


It appears as though for some reaosn the readline module is not being
installed on my system. Also, it doesn't really seem like python could
possibly be being installed correctly. If I go to python tools and try
to run ./listmodules I get the following error:

File "/usr/lib/python2.4/doc/tools/listmodules", line 183, in ?
main()
File "/usr/lib/python2.4/doc/tools/listmodules", line 119, in main
os.chdir("Modules")
OSError: [Errno 2] No such file or directory: 'Modules'

Any tool i try to run in the python/doc folder gives me error messages. Any thoughts on why
this is not working at all? I'd gladly erase everything w/ regards to python
and start over if that would help, but i'm unsure how to do that. Thanks for the help
Ben

Sep 9 '06 #1
1 1445
In <ma*************************************@python.or g>, Benjamin Grant
wrote:
Hi all,
I'd greatly appreciate any help. I can configure, make and install
everything fine. I'm using python 2.4 I have ubuntu dapper drake. I am
trying to install hplip which requires python. When I do this, this
also works but while running the following error occurs:
Traceback (most recent call last):
File "/usr/local/bin/hp-setup", line 31, in ?
import readline, gzip
ImportError: No module named readline
`hplip` is available as package in the Ubuntu repositories. Why do you
install it from sources?
It appears as though for some reaosn the readline module is not being
installed on my system.
It's a dependency of the Python packages. That's odd.

Ciao,
Marc 'BlackJack' Rintsch
Sep 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave Patton | last post by:
Can someone point me to a definitive source for the answers to the following two questions: 1) In an environment with Redhat Linux 2.4.21-27.0.1, Apache 1.3.31, PHP 4.3.10, and GNU gettext...
5
by: beliavsky | last post by:
How do you keep Python code properly indented as you modify it? I use an Emacs-type editor that has a Python mode, so the initial indenting is easy. If I later want to put a 'for' loop (or an 'if'...
4
by: Nathan Bullock | last post by:
Okay I have two files: a.py: ----- class cla_a(object): pass class cla_c(object): pass if __name__ == "__main__": mod = __import__("b")
1
by: Harvey | last post by:
Hello: I am trying to use Autosize=true on a long string and it extends off of my form, rather than increasing the number of lines of the Label as the documentation says it should do. Would...
3
by: Will McGugan | last post by:
Hi, I'd love to work in Python, for the sake of my blood pressure, but there doesnt seem to be that many jobs that look for Python as the main skill. I use Python at work from time to time, and...
48
by: Nathan Sokalski | last post by:
Ever since I found out that they didn't give us a way to install both IE6 and IE7 on the same machine, I have been more frustrated and annoyed with Microsoft than I ever have been with any company...
7
by: dmitrey | last post by:
howto make Python list from numpy.array? Thx, D.
0
by: sourpo | last post by:
wonder if anyone can help... I have access db with a whole lot of vb code... If i use access 2000 it works perfectly but when using 2003 it doesn't work properly. The db copies outlook mailboxes......
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.