Modify

Ticket #668 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Can't import hashlib on python 2.4

Reported by: Jack Neely <[email protected]…> Owned by: desai
Priority: major Milestone: Bcfg2 1.0.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:

Description

Looks like we're importing hashlib without checking if we are running in a new enough python version.

Starting Configuration Management Server: Traceback (most recent call last):
  File "/usr/sbin/bcfg2-server", line 14, in ?
    from Bcfg2.Server.Core import CoreInitError
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 5, in ?
    import hashlib
ImportError: No module named hashlib

This on RHEL 5 with python-2.4.3-24.el5.

Attachments

Change History

comment:1 Changed 14 years ago by kisielk

There's a standalone version of hashlib for 2.4 and 2.3: http://pypi.python.org/pypi/hashlib/20060408a

Perhaps it should marked as a dep for versions < 2.5

comment:2 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.