ome / omero-dropbox

OMERO.dropbox server for watching directories
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
1 stars 6 forks source link

Drop or fix omero_ext.pyinotify #6

Closed joshmoore closed 4 years ago

joshmoore commented 4 years ago

From testing with: https://github.com/ome/omero-server-docker/pull/33/commits/a17db2b1de80e8184413ed7dee27ab98d9cb0109

2019-11-13 20:06:11,108 WARNI [                                  stderr] (Thread-5  ) Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/opt/omero/server/venv3/lib64/python3.6/site-packages/fsNotificationScheduler.py", line 36, in run
    self.log.info('Notification Scheduler running')
  File "/usr/lib64/python3.6/logging/__init__.py", line 1308, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/lib64/python3.6/logging/__init__.py", line 1443, in _log
    exc_info, func, extra, sinfo)
TypeError: makeRecord() takes from 8 to 10 positional arguments but 11 were given
2019-11-13 20:06:11,109 WARNI [                                  stderr] (Thread-4  ) Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/opt/omero/server/venv3/lib64/python3.6/site-packages/omero_ext/pyinotify.py", line 1419, in run
    self.loop()
  File "/opt/omero/server/venv3/lib64/python3.6/site-packages/omero_ext/pyinotify.py", line 1409, in loop
    self.read_events()
  File "/opt/omero/server/venv3/lib64/python3.6/site-packages/omero_ext/pyinotify.py", line 1175, in read_events
    rawevent = _RawEvent(wd, mask, cookie, fname)
  File "/opt/omero/server/venv3/lib64/python3.6/site-packages/omero_ext/pyinotify.py", line 481, in __init__
    'name': name.rstrip('\0')}
TypeError: a bytes-like object is required, not 'str'