Prev: Use cases for "setattr" in existing code
Next: trace of Thermite (tm) at WTC, almost no asbestos: if the main beams had been clad, they mightn't have weakened enough to collapse!
From: Dieter on 30 Jul 2010 15:15 Hi there, I installed python 2.7 from the tar ball on python.org. the installation was pretty uneventful. However, I need to run someone elses python code and get the error message ImportError: No module named binascii Any recommendations how to correct this? Is there another tar file somewhere that I can download to install this missing module? Thanks a lot in advance.
From: MRAB on 30 Jul 2010 16:06 Dieter wrote: > Hi there, > > I installed python 2.7 from the tar ball on python.org. the > installation was pretty uneventful. However, I need to run someone > elses python code and get the error message > > ImportError: No module named binascii > > Any recommendations how to correct this? Is there another tar file > somewhere that I can download to install this missing module? > > Thanks a lot in advance. > There isn't a separate binascii module. Have you tried: >>> import binascii at the Python prompt? That works for me (Windows XP) and will show whether it's missing somehow.
From: Dave Angel on 30 Jul 2010 17:04
Dieter wrote: > Hi there, > > I installed python 2.7 from the tar ball on python.org. the > installation was pretty uneventful. However, I need to run someone > elses python code and get the error message > > ImportError: No module named binascii > > Any recommendations how to correct this? Is there another tar file > somewhere that I can download to install this missing module? > > Thanks a lot in advance. > > > You should include the whole error message, including the traceback. But perhaps first you should try importing binascii yourself, in the interpreter. DaveA |