Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7723733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:30:59+00:00 2026-06-01T04:30:59+00:00

I have a python file that will not correctly perform an import. If I

  • 0

I have a python file that will not correctly perform an import.

If I go to the python prompt I can manually import the module without error.

Python 2.4.3 (#1, Feb 22 2012, 16:06:13) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from amqplib import client_0_8 as amqp

When I step through the program with pdb, the result of executing the import:

-> from amqplib import client_0_8 as amqp
(Pdb) s
--Call--
> /home/ralphie/Desktop/Projects/catamaran/build/bdist.linux-i686/egg/amqplib/__init__.py(0)?()

When I check sys.path:

Python 2.4.3 (#1, Feb 22 2012, 16:06:13) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from amqplib import client_0_8 as amqp
>>> import sys  
>>> print sys.path
['', '/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg',
'/usr/lib  /python2.4/site-packages/mechanize-0.2.5-py2.4.egg',
'/usr/lib/python2.4/site-packages/ClientForm-0.2.10-py2.4.egg',
'/usr/lib/python2.4/site-packages/simplejson-2.3.2-py2.4-linux-i686.egg',
'/usr/lib/python2.4/site-packages/amqplib-1.0.0-py2.4.egg',
'/usr/lib/python24.zip',
'/usr/lib/python2.4',
'/usr/lib/python2.4/plat-linux2',
'/usr/lib/python2.4/lib-tk',
'/usr/lib/python2.4/lib-dynload',
'/usr/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages/Numeric',
'/usr/lib/python2.4/site-packages/PIL', 
'/usr/lib/python2.4/site-packages/gtk-2.0']

It is not coming from environment variables, I’ve deleted all .pyo & .pyc files.

I just have no idea where that crazy egg reference is coming from.

Any clues sincerely appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:31:00+00:00Added an answer on June 1, 2026 at 4:31 am

    Try upgrading python to a more recent version, I had a lot of issues with python2.4 and amqp.

    Even though the import statement succeeded the functional logic is not tested or executed until called.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been given a task to create a Python file that will take
I have a python program/file that I want to run repeatedly and calculate the
I have a python application that relies on a file that is downloaded by
I have a file that I want to include in Python but the included
I have a binary file that I have to parse and I'm using Python.
Let's assume I have a main script, main.py, that imports another python file with
I have a Python script that reads through a text csv file and creates
I have an existing python script that, among other things checks a file against
I have a very simple python script that should scan a text file, which
I have a python file testHTTPAuth.py which uses module deliciousapi and is kept in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.