Skip to content

Run fails if the built app contains more than 65535 files or is over 2GB #224

@pombredanne

Description

@pombredanne

I am trying to build an app for scancode-toolkit and while the build works fine, the built app is failing to run with this error:

$ python3 scancode
....python3: can't find '__main__' module in 'scancode'

I scratched my head and I think this may be subject to these issues python/cpython#77140 and python/cpython#89739

scancode-toolkit happens to contain a good number of data files (~ 68K)

What I did as a proof was to:

  1. unzip the built app
  2. remove enough files to go below the 65K limit
  3. rezip and run the app... and things work fine

Since shiv depends on the boostrapping mechanisms of Python zip importer, this is dependent on @thatch Zip64 support in import being merged in python/cpython#94146 ... therefore I am not sure that there is anything to do here beyond some documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy