You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After converting to Python3 regional-diff.py fails with following error:
root@9ce9c82d1ce7:/code# scripts/regional-diff.py -f scripts/637.osc.gz
Traceback (most recent call last):
File "/code/scripts/regional-diff.py", line 554, in <module>
posm = PlanetOsm()
^^^^^^^^^^^
File "/code/scripts/regional-diff.py", line 130, in __init__
self.update()
File "/code/scripts/regional-diff.py", line 517, in update
self.__osmosis()
File "/code/scripts/regional-diff.py", line 206, in __osmosis
changed_stream = re.sub('delete>','modify>',simplified_diff)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/__init__.py", line 185, in sub
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot use a string pattern on a bytes-like object
The text was updated successfully, but these errors were encountered:
After converting to Python3
regional-diff.py
fails with following error:The text was updated successfully, but these errors were encountered: