Opened 10 years ago

Closed 17 months ago

#42792 closed defect (fixed)

py27-python-daemon @1.5.5: missing dependency

Reported by: petrrr Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-python-daemon

Description

The port does not declare some dependency. It might be py-lockfile, but I after installing, it I still get some error, see below.

Note: The port is nomaintainer, so I leave CC empty.

In [1]: import daemon.runner
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-af5e622233f1> in <module>()
----> 1 import daemon.runner

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/daemon/runner.py in <module>()
     23 import errno
     24 
---> 25 import pidlockfile
     26 
     27 from daemon import DaemonContext

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/daemon/pidlockfile.py in <module>()
     17 import errno
     18 
---> 19 from lockfile import (
     20     LinkFileLock,
     21     AlreadyLocked, LockFailed,

ImportError: No module named lockfile

With lockfile installed:

In [1]: import daemon.runner
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-af5e622233f1> in <module>()
----> 1 import daemon.runner

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/daemon/runner.py in <module>()
     23 import errno
     24 
---> 25 import pidlockfile
     26 
     27 from daemon import DaemonContext

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/daemon/pidlockfile.py in <module>()
     31 
     32 
---> 33 class PIDLockFile(LinkFileLock, object):
     34     """ Lockfile implemented as a Unix PID file.
     35 

TypeError: Error when calling the metaclass bases
    function() argument 1 must be code, not str

Change History (4)

comment:1 Changed 10 years ago by petrrr

From what I understand now, is that python-daemon is broken with logfile @0.9.1.

http://stackoverflow.com/questions/4790876/what-is-the-de-facto-library-for-creating-python-daemons

comment:2 Changed 10 years ago by petrrr

There seems to be a 1.6 version of this port https://pypi.python.org/pypi/python-daemon/1.6

comment:3 Changed 10 years ago by petrrr

And this looks like a Py3 branch https://code.launchpad.net/~garyvdm/+junk/python-daemon-py3, but it does not look very active, neither.

comment:4 Changed 17 months ago by petrrr

Resolution: fixed
Status: newclosed
  • Port py-python-daemon has moved to @2.2.4;
  • Port py-lockfile is now @0.12.2;
  • The py27 subport is gone

This ticket is obsolete.

Note: See TracTickets for help on using tickets.