Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1294

Fix send2trash packaging error on macOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Packaging / Build
    • Environment:
      macOS

      Description

      When Drive is packaged on macOS, it will not start:

      Exception:
      Traceback (most recent call last):
        File "PyInstaller/loader/pyiboot01_bootstrap.py", line 149, in __init__
        File "ctypes/__init__.py", line 348, in __init__
      OSError: dlopen(/Users/tiger-222/projects/nuxeo-drive/dist/ndrive/Foundation, 6): no suitable image found.  Did find:
      	/Users/tiger-222/projects/nuxeo-drive/dist/ndrive/Foundation: not a file
      	/Users/tiger-222/projects/nuxeo-drive/dist/ndrive/Foundation: not a file
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "nxdrive/__main__.py", line 114, in main
        File "nxdrive/commandline.py", line 481, in handle
        File "nxdrive/commandline.py", line 493, in get_manager
        File "<frozen importlib._bootstrap>", line 971, in _find_and_load
        File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
        File "/Users/tiger-222/projects/ven36/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
          exec(bytecode, module.__dict__)
        File "nxdrive/manager.py", line 15, in <module>
        File "<frozen importlib._bootstrap>", line 971, in _find_and_load
        File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
        File "/Users/tiger-222/projects/ven36/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
          exec(bytecode, module.__dict__)
        File "nxdrive/client/local_client.py", line 19, in <module>
        File "<frozen importlib._bootstrap>", line 971, in _find_and_load
        File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
        File "/Users/tiger-222/projects/ven36/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
          exec(bytecode, module.__dict__)
        File "send2trash/__init__.py", line 12, in <module>
        File "<frozen importlib._bootstrap>", line 971, in _find_and_load
        File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
        File "/Users/tiger-222/projects/ven36/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
          exec(bytecode, module.__dict__)
        File "send2trash/plat_osx.py", line 17, in <module>
        File "ctypes/__init__.py", line 426, in LoadLibrary
        File "PyInstaller/loader/pyiboot01_bootstrap.py", line 151, in __init__
      PyInstallerImportError: Failed to load dynlib/dll '/Users/tiger-222/projects/nuxeo-drive/dist/ndrive/Foundation'. Most probably this dynlib/dll was not found when the application was frozen.
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 3 hours
                  1d 3h