kyokenn / python-port25

Automatically exported from code.google.com/p/python-port25
Other
3 stars 2 forks source link

Get Setup to fail with intelligent message if PowerMTA's api is not installed #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. setup.py install on a machine without the libpmta.so

What is the expected output? 

Install Error: Port25's PowerMTA C API is required to install.  if you do
not have libpmta.so this will not be able to be installed.

What do you see instead?

    Traceback (most recent call last):
      File "<string>", line 13, in <module>
      File "/Users/phalliday/Desktop/build/python-port25/setup.py", line
24, in <module>
        from port25 import __author__, __license__, __version__
      File "src/port25/__init__.py", line 23, in <module>
        pmta = CDLL("libpmta.so")
      File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ctypes/_
_init__.py",
line 325, in __init__
        self._handle = _dlopen(self._name, mode)
    OSError: dlopen(libpmta.so, 6): image not found
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 13, in <module>

  File "/Users/phalliday/Desktop/build/python-port25/setup.py", line 24, in
<module>

    from port25 import __author__, __license__, __version__

  File "src/port25/__init__.py", line 23, in <module>

    pmta = CDLL("libpmta.so")

  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ctypes/_
_init__.py",
line 325, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(libpmta.so, 6): image not found

Original issue reported on code.google.com by peter%nu...@gtempaccount.com on 20 May 2009 at 7:11