visualcurrent / Notion-2-Obsidan

Conversion routines to convert all Notion .md exports to full Obsidian compatibility
262 stars 47 forks source link

[Error]'PosixPath' object has no attribute 'seek' #9

Closed rosuH closed 3 years ago

rosuH commented 3 years ago

Env:

After select zip file, the following error occurred:

objc[36412]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff8dbd73f0) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x117db4f50). One of the two will be used. Which one is undefined.
Traceback (most recent call last):
  File "N2O.py", line 22, in <module>
    notionsData = ZipFile(NotionZip, 'r')
  File "/Users/rosu/.pyenv/versions/3.6.1/lib/python3.6/zipfile.py", line 1100, in __init__
    self._RealGetContents()
  File "/Users/rosu/.pyenv/versions/3.6.1/lib/python3.6/zipfile.py", line 1164, in _RealGetContents
    endrec = _EndRecData(fp)
  File "/Users/rosu/.pyenv/versions/3.6.1/lib/python3.6/zipfile.py", line 241, in _EndRecData
    fpin.seek(0, 2)
AttributeError: 'PosixPath' object has no attribute 'seek'
rosuH commented 3 years ago

Fixed by using Python 3.8.6.