Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark Reaper does not work with Python 3 #4256

Closed
dchristidis opened this issue Jan 20, 2021 · 0 comments · Fixed by #4257
Closed

Dark Reaper does not work with Python 3 #4256

dchristidis opened this issue Jan 20, 2021 · 0 comments · Fixed by #4257
Assignees
Milestone

Comments

@dchristidis
Copy link
Contributor

Motivation

Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.6/site-packages/rucio/daemons/reaper/dark_reaper.py", line 84, in reaper
    hash_executable = hashlib.sha256(sys.argv[0] + ''.join(rses)).hexdigest()
TypeError: Unicode-objects must be encoded before hashing
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/rucio/daemons/reaper/dark_reaper.py", line 114, in reaper
    operation='delete', scheme=scheme).values()[0])
TypeError: 'dict_values' object does not support indexing

Modification

Port to Python 3.

@dchristidis dchristidis self-assigned this Jan 20, 2021
dchristidis added a commit to dchristidis/rucio that referenced this issue Jan 20, 2021
dchristidis added a commit to dchristidis/rucio that referenced this issue Jan 20, 2021
bari12 added a commit that referenced this issue Jan 21, 2021
…ort_Dark_Reaper_to_Python_3

Consistency: Port Dark Reaper to Python 3 #4256
@bari12 bari12 added this to the 1.24.2 milestone Jan 21, 2021
maany pushed a commit to maany/rucio that referenced this issue Jan 21, 2021
dchristidis added a commit to dchristidis/rucio that referenced this issue Jan 25, 2021
This is a stopgap solution. It should be followed up in issue rucio#4269.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants