Repository: pyinstaller/pyinstaller

Issue:
run pyinstaller -D -w xxx.py errors
<!--
Welcome to the PyInstaller issue tracker! Before creating an issue, please heed the following:

1. This tracker should only be used to report bugs and request features / enhancements to PyInstaller
    - For questions and general support, use the discussions forum.
2. Use the search function before creating a new issue. Duplicates will be closed and directed to
   the original discussion.
3. When making a bug report, make sure you provide all required information. The easier it is for
   maintainers to reproduce, the faster it'll be fixed.
-->

<!-- +++ ONLY TEXT +++ DO NOT POST IMAGES +++ -->

## Description of the issue

### Context information (for bug reports)

* Output of `pyinstaller --version`: ```(paste here)```  5.11
* Version of Python: <!-- e.g. 3.7 --> python3.8
* Platform: <!-- e.g GNU/Linux (distribution), Windows (language settings), OS X, FreeBSD --> ubantu20
* How you installed Python: <!-- e.g. python.org/downloads, conda, brew, pyenv, apt, Windows store -->
* Did you also try this on another platform? Does it work there?


* try the latest development version, using the following command:

```shell
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
```

* follow *all* the instructions in our "If Things Go Wrong" Guide
  (https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong) and

### Make sure [everything is packaged correctly](https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs#make-sure-everything-is-packaged-correctly)

  * [ ] start with clean installation
  * [ ] use the latest development version
  * [ ] Run your frozen program **from a command window (shell)** — instead of double-clicking on it
  * [ ] Package your program in **--onedir mode**
  * [ ] Package **without UPX**, say: use the option `--noupx` or set `upx=False` in your .spec-file
  * [ ] Repackage you application in **verbose/debug mode**. For this, pass the option `--debug` to `pyi-makespec` or `pyinstaller` or use `EXE(..., debug=1, ...)` in your .spec file.


### A minimal example program which shows the error

```
(paste text here)
“Minimal“ means: remove everything from your code which is not relevant for this bug,
esp. don't use external programs, remote requests, etc.
A very good example is https://gist.github.com/ronen/024cdae9ff2d50488438. This one helped
us reproducing and fixing a quite complex problem within approx 1 hour.
```

### Stacktrace / full error message

  __import__(package)
3409 INFO: Created a temporary directory at /tmp/tmprree8g7v
3409 INFO: Writing /tmp/tmprree8g7v/_remote_module_non_scriptable.py

Traceback (most recent call last):
  File "/.local/lib/python3.8/site-packages/PyInstaller/isolated/_parent.py", line 372, in call
    return isolated.call(function, *args, **kwargs)
  File "/.local/lib/python3.8/site-packages/PyInstaller/isolated/_parent.py", line 293, in call
    ok, output = loads(b64decode(self._read_handle.readline()))
EOFError: EOF read where object expected

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.local/bin/pyinstaller", line 8, in <module>
    sys.exit(_console_script_run())
  File "/.local/lib/python3.8/site-packages/PyInstaller/__main__.py", line 194, in _console_script_run
    run()
  File "/.local/lib/python3.8/site-packages/PyInstaller/__main__.py", line 180, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/.local/lib/python3.8/site-packages/PyInstaller/__main__.py", line 61, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/.local/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 1006, in main
    build(specfile, distpath, workpath, clean_build)
  File "/.local/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 928, in build
    exec(code, spec_namespace)
  File "SealDetOcr.spec", line 19, in <module>
    a = Analysis(['SealDetOcr.py'],
  File "/.local/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 428, in __init__
    self.__postinit__()
  File "/.local/lib/python3.8/site-packages/PyInstaller/building/datastruct.py", line 184, in __postinit__
    self.assemble()
  File "/.local/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 736, in assemble
    isolated.call(find_binary_dependencies, self.binaries, self.binding_redirects, collected_packages)
  File "/.local/lib/python3.8/site-packages/PyInstaller/isolated/_parent.py", line 372, in call
    return isolated.call(function, *args, **kwargs)
  File "/.local/lib/python3.8/site-packages/PyInstaller/isolated/_parent.py", line 247, in __exit__
    self._write_handle.flush()
BrokenPipeError: [Errno 32] Broken pipe








Discussion:
Can you modify `/.local/lib/python3.8/site-packages/PyInstaller/building/build_main.py`, and add a `print(package)` before this line:

https://github.com/pyinstaller/pyinstaller/blob/413cce49ff28d87fad4472f4953489226ec90c84/PyInstaller/building/build_main.py#L177

Then try to rebuild and see what package the child process is trying to import when it crashes.
> Can you modify `/.local/lib/python3.8/site-packages/PyInstaller/building/build_main.py`, and add a `print(package)` before this line:
> 
> https://github.com/pyinstaller/pyinstaller/blob/413cce49ff28d87fad4472f4953489226ec90c84/PyInstaller/building/build_main.py#L177
> 
> Then try to rebuild and see what package the child process is trying to import when it crashes.
   it shuld modify like this? print except package
    for package in import_packages:
        try:

            __import__(package)
        except Exception:
            print(package)
No, just
```python
    print(package)
    __import__(package)
```
then rebuild and post the error logs.
No, like this:

```python
    # Import collected packages to set up environment
    for package in import_packages:
        try:
            print(package)
            __import__(package)
        except Exception:
            pass
``` 

This will print the package names as they are imported. So the one that crashes this process will be printed last before the `EOFError` your reported earlier.
> No, like this:
> 
> ```python
>     # Import collected packages to set up environment
>     for package in import_packages:
>         try:
>             print(package)
>             __import__(package)
>         except Exception:
>             pass
> ```
> 
> This will print the package names as they are imported. So the one that crashes this process will be printed last before the `EOFError` your reported earlier.

the log as follows:
 __import__(package)
numpy.typing
numpy._typing
scipy.linalg
scipy.fft
scipy.fft._pocketfft
numpy.fft
scipy._lib._uarray
scipy.sparse.linalg._eigen
scipy.sparse.linalg._eigen.lobpcg
scipy.sparse.linalg._eigen.arpack
scipy.sparse.linalg._dsolve
scipy.sparse.linalg._isolve
numpy.random
scipy.integrate._ivp
scipy.interpolate
scipy.spatial
scipy.spatial.transform
scipy.constants
kiwisolver
matplotlib.axes
dateutil.tz
dateutil.zoneinfo
dateutil.parser
dateutil
matplotlib.tri
matplotlib.projections
mpl_toolkits.mplot3d
matplotlib.backends
traitlets.config
IPython.core.magics
jedi.api
jedi.inference.gradual
jedi.plugins
jedi.inference.compiled
jedi.inference.value
jedi.inference.compiled.subprocess
jedi.inference
jedi.api.refactoring
parso.python
parso
parso.pgen2
colorama
jedi
pexpect
ptyprocess
pygments
pygments.styles
importlib_metadata
zipp
pygments.lexers
pygments.formatters
pygments.filters
IPython.utils
IPython.testing
IPython.lib
backcall
prompt_toolkit.eventloop
prompt_toolkit.clipboard
prompt_toolkit.application
prompt_toolkit.input
wcwidth
prompt_toolkit.layout
prompt_toolkit.completion
prompt_toolkit.widgets
prompt_toolkit.lexers
prompt_toolkit.key_binding.bindings
prompt_toolkit.key_binding
IPython.terminal.shortcuts
IPython.terminal.pt_inputhooks
IPython.extensions
IPython.terminal
prompt_toolkit
prompt_toolkit.styles
prompt_toolkit.shortcuts
prompt_toolkit.shortcuts.progress_bar
prompt_toolkit.output
prompt_toolkit.formatted_text
prompt_toolkit.filters
stack_data
asttokens
pure_eval
executing
lib2to3.pgen2
lib2to3
matplotlib_inline
IPython.core
IPython
matplotlib.cbook
matplotlib
matplotlib.style
scipy
scipy.stats
scipy.stats._unuran
scipy.misc
scipy.ndimage
scipy.stats._levy_stable
scipy.stats._boost
scipy.optimize
scipy.optimize._highs
scipy.optimize._shgo_lib
scipy.optimize._lsq
scipy.optimize._trustregion_constr
scipy.optimize._trlib
mpmath.libmp
sympy.multipledispatch
sympy.logic.algorithms
sympy.tensor.array
sympy.sets.handlers
mpmath.calculus
mpmath.functions
sympy.categories
sympy.vector
sympy.physics.control
sympy.plotting.intervalmath
sympy.plotting
sympy.plotting.pygletplot
sympy.testing
sympy.printing.pretty
sympy.printing
sympy.utilities.mathml
lxml
lxml.isoschematron
lxml.includes.libxslt
lxml.includes.libxml
lxml.includes.libexslt
lxml.includes.extlibs
lxml.includes
bs4
soupsieve
bs4.builder
lxml.html
cssselect
sympy.algebras
sympy.calculus
sympy.parsing
sympy.tensor
sympy.integrals
sympy.utilities
sympy.geometry
sympy.matrices
sympy.solvers.diophantine
sympy.solvers
sympy.solvers.ode
sympy.sets
sympy.simplify
sympy.discrete
sympy.concrete
sympy.ntheory
sympy.functions
sympy.series
sympy.polys
sympy.assumptions.relation
sympy.assumptions.predicates
sympy.assumptions.handlers
sympy.assumptions
sympy.logic
sympy.core
mpmath
mpmath.tests
torch._subclasses
torch._prims
torch._dispatch
torch.fx.passes.infra
torch.jit
torch.backends.cudnn
torch.backends
astunparse
torch.testing
torch.distributed.autograd
torch.distributed
torch.nn.parallel
torch.distributed.algorithms._optimizer_overlap
3240 INFO: Created a temporary directory at /tmp/tmp2cymf81l
3240 INFO: Writing /tmp/tmp2cymf81l/_remote_module_non_scriptable.py
torch.distributed.algorithms
torch.distributed.algorithms.ddp_comm_hooks
torch.distributed.optim
torch.distributed.algorithms.model_averaging
torch.optim
torch.distributed.fsdp
torch.distributed._shard.sharding_spec
torch.distributed._shard.sharding_plan
torch.distributed.nn
torch.distributed.nn.api
torch.distributed.nn.jit.templates
torch.distributed.nn.jit
torch.distributed._shard
torch.distributed.algorithms._comm_hooks
torch.distributed._shard.sharded_tensor
torch.distributed._shard.sharded_tensor._ops
torch.distributed._shard.sharding_spec.chunk_sharding_spec_ops
torch.distributed.algorithms._checkpoint
torch.nn.modules
torch.fx.passes
tabulate
tensorflow
keras.wrappers
absl.logging
absl.flags
absl
keras.utils
keras.tests
h5py
h5py.tests
h5py._hl
absl.testing
keras.testing_infra
keras.saving.utils_v1
google.protobuf.pyext
google.protobuf.internal
google.protobuf
wrapt
keras.saving.saved_model
keras.saving.experimental
keras.saving
keras.protobuf
keras.preprocessing
keras.premade_models
keras.optimizers.schedules
keras.optimizers.optimizer_v2
keras.optimizers.optimizer_experimental
keras.optimizers.legacy
keras.optimizers
keras.models
keras.mixed_precision
keras.metrics
keras.legacy_tf_layers
keras.layers.rnn
keras.layers.reshaping
keras.layers.regularization
keras.layers.preprocessing.benchmarks
keras.layers.preprocessing
keras.layers.pooling
keras.layers.normalization
keras.layers.merging
keras.layers.locally_connected
keras.layers.core
keras.layers.convolutional
keras.layers.attention
keras.layers.activation
keras.layers
keras.integration_test
keras.initializers
keras.feature_column
keras.estimator
tensorflow_estimator.python.estimator.export
tensorflow_estimator.python.estimator
tensorflow_estimator.python.estimator.tools
tensorflow_estimator.python.estimator.tpu
pandas
pandas._libs.window
pandas._libs.tslibs
pandas.util
pandas._testing
pyarrow
pandas.core.internals
pandas.core.tools
pandas.core.reshape
pandas.core.array_algos
pandas.io.parsers
pandas.io.clipboard
qtpy
pandas.io.excel
openpyxl.cell
openpyxl.descriptors
openpyxl.xml
et_xmlfile
openpyxl.worksheet
openpyxl.utils
openpyxl.formula
openpyxl.compat
openpyxl.styles
openpyxl
openpyxl.reader
openpyxl.chart
openpyxl.formatting
openpyxl.drawing
openpyxl.chartsheet
openpyxl.packaging
openpyxl.pivot
openpyxl.workbook.external_link
openpyxl.comments
tests
openpyxl.workbook
openpyxl.writer
xlrd
pandas.util.version
pandas.core.computation
pandas.core.util
pyarrow.vendored
pandas.core.arrays.arrow
pandas.core._numba.kernels
pandas.core._numba
pandas.core.groupby
pandas.core.strings
pyarrow.parquet
pandas.core.interchange
pandas.api.types
pandas.plotting._matplotlib
pandas.core.window
pandas.io.formats
pandas.core.ops
pandas.core.dtypes
pandas.compat.numpy
pandas.core.indexes
pandas.core.indexers
pytz
pandas.core
fsspec
fsspec.implementations
tqdm
importlib_resources
setuptools_scm._integration
tomli
setuptools_scm
pandas.core.arrays
pandas.io.json
pandas.io.sas
pandas.plotting
pandas.io
pandas.errors
pandas.arrays
pandas.api
pandas.api.interchange
pandas.api.indexers
pandas.api.extensions
pandas.tseries
pandas.core.arrays.sparse
pandas._config
pandas._libs
pandas.compat
tensorflow_estimator.python.estimator.inputs.queues
tensorflow_estimator.python.estimator.inputs
tensorflow_estimator.python.estimator.hooks
tensorflow_estimator.python.estimator.head
tensorflow_estimator.python.estimator.canned
tensorflow_estimator.python.estimator.canned.linear_optimizer.python.utils
tensorflow_estimator.python.estimator.canned.linear_optimizer.python
tensorflow_estimator.python.estimator.canned.linear_optimizer
tensorflow_estimator.python
tensorflow_estimator
tensorflow_estimator._api.v1.estimator
tensorflow_estimator._api.v1.estimator.tpu
tensorflow_estimator._api.v1.estimator.tpu.experimental
tensorflow_estimator._api.v1.estimator.inputs
tensorflow_estimator._api.v1.estimator.export
tensorflow_estimator._api.v1.estimator.experimental
tensorflow_estimator._api.v1
tensorflow_estimator._api
keras.engine
keras.dtensor
keras.distribute
keras.datasets
tensorboard.plugins.projector
tensorboard.compat
tensorboard.compat.tensorflow_stub
tensorboard.compat.proto
tensorboard.compat.tensorflow_stub.io
tensorboard.compat.tensorflow_stub.compat
tensorboard.compat.tensorflow_stub.compat.v1
tensorboard
tensorboard.plugins
keras.applications
keras.api.keras.wrappers.scikit_learn
keras.api.keras.wrappers
keras.api.keras.utils
keras.api.keras.regularizers
keras.api.keras.preprocessing.text
keras.api.keras.preprocessing.sequence
keras.api.keras.preprocessing.image
keras.api.keras.preprocessing
keras.api.keras.premade
keras.api.keras.optimizers.schedules
keras.api.keras.optimizers.legacy
keras.api.keras.optimizers
keras.api.keras.models
keras.api.keras.mixed_precision
keras.api.keras.metrics
keras.api.keras.losses
keras.api.keras.layers.experimental.preprocessing
keras.api.keras.layers.experimental
keras.api.keras.layers
keras.api.keras.initializers
keras.api.keras.experimental
keras.api.keras.estimator
keras.api.keras.datasets.reuters
keras.api.keras.datasets.mnist
keras.api.keras.datasets.imdb
keras.api.keras.datasets.fashion_mnist
keras.api.keras.datasets.cifar100
keras.api.keras.datasets.cifar10
keras.api.keras.datasets.boston_housing
keras.api.keras.datasets
keras.api.keras.constraints
keras.api.keras.callbacks.experimental
keras.api.keras.callbacks
keras.api.keras.backend
keras.api.keras.applications.xception
keras.api.keras.applications.vgg19
keras.api.keras.applications.vgg16
keras.api.keras.applications.resnet_v2
keras.api.keras.applications.resnet_rs
keras.api.keras.applications.resnet50
keras.api.keras.applications.resnet
keras.api.keras.applications.regnet
keras.api.keras.applications.nasnet
keras.api.keras.applications.mobilenet_v3
keras.api.keras.applications.mobilenet_v2
keras.api.keras.applications.mobilenet
keras.api.keras.applications.inception_v3
keras.api.keras.applications.inception_resnet_v2
keras.api.keras.applications.imagenet_utils
keras.api.keras.applications.efficientnet_v2
keras.api.keras.applications.efficientnet
keras.api.keras.applications.densenet
keras.api.keras.applications.convnext
keras.api.keras.applications
keras.api.keras.activations
keras.api.keras.__internal__.legacy.rnn_cell
keras.api.keras.__internal__.legacy.layers.experimental
keras.api.keras.__internal__.legacy.layers
keras.api.keras.__internal__.legacy
keras.api.keras.__internal__.layers
keras.api.keras.__internal__
keras.api.keras
keras.api._v1.keras.wrappers.scikit_learn
keras.api._v1.keras.wrappers
keras.api._v1.keras.utils
keras.api._v1.keras.regularizers
keras.api._v1.keras.preprocessing.text
keras.api._v1.keras.preprocessing.sequence
keras.api._v1.keras.preprocessing.image
keras.api._v1.keras.preprocessing
keras.api._v1.keras.premade
keras.api._v1.keras.optimizers.schedules
keras.api._v1.keras.optimizers.legacy
keras.api._v1.keras.optimizers
keras.api._v1.keras.models
keras.api._v1.keras.mixed_precision
keras.api._v1.keras.metrics
keras.api._v1.keras.losses
keras.api._v1.keras.layers.experimental.preprocessing
keras.api._v1.keras.layers.experimental
keras.api._v1.keras.layers
keras.api._v1.keras.initializers
keras.api._v1.keras.experimental
keras.api._v1.keras.estimator
keras.api._v1.keras.datasets.reuters
keras.api._v1.keras.datasets.mnist
keras.api._v1.keras.datasets.imdb
keras.api._v1.keras.datasets.fashion_mnist
keras.api._v1.keras.datasets.cifar100
keras.api._v1.keras.datasets.cifar10
keras.api._v1.keras.datasets.boston_housing
keras.api._v1.keras.datasets
keras.api._v1.keras.constraints
keras.api._v1.keras.callbacks.experimental
keras.api._v1.keras.callbacks
keras.api._v1.keras.backend
keras.api._v1.keras.applications.xception
keras.api._v1.keras.applications.vgg19
keras.api._v1.keras.applications.vgg16
keras.api._v1.keras.applications.resnet_v2
keras.api._v1.keras.applications.resnet_rs
keras.api._v1.keras.applications.resnet50
keras.api._v1.keras.applications.resnet
keras.api._v1.keras.applications.regnet
keras.api._v1.keras.applications.nasnet
keras.api._v1.keras.applications.mobilenet_v3
keras.api._v1.keras.applications.mobilenet_v2
keras.api._v1.keras.applications.mobilenet
keras.api._v1.keras.applications.inception_v3
keras.api._v1.keras.applications.inception_resnet_v2
keras.api._v1.keras.applications.imagenet_utils
keras.api._v1.keras.applications.efficientnet_v2
keras.api._v1.keras.applications.efficientnet
keras.api._v1.keras.applications.densenet
keras.api._v1.keras.applications.convnext
keras.api._v1.keras.applications
keras.api._v1.keras.activations
keras.api._v1.keras.__internal__.legacy.rnn_cell
keras.api._v1.keras.__internal__.legacy.layers.experimental
keras.api._v1.keras.__internal__.legacy.layers
keras.api._v1.keras.__internal__.legacy
keras.api._v1.keras.__internal__.layers
keras.api._v1.keras.__internal__
keras.api._v1.keras
keras.api._v1
keras.api
keras
tensorflow.tools.pip_package
tensorflow.tools.docs
pasta
pasta.augment
pasta.base
tensorflow.tools.compatibility
tensorflow.tools.common
tensorflow.tools
tensorflow.python.util.protobuf
tensorflow.python.util
tensorflow.python.user_ops.ops
tensorflow.python.user_ops
tensorflow.python.types
tensorflow.python.training.tracking
tensorflow.python.training.saving
tensorflow.python.training.experimental
tensorflow.python.training
tensorflow.python.trackable
grpc
grpc.aio
grpc.experimental
grpc._cython
tensorflow.python.tpu.profiler
tensorflow.python.tpu.ops
tensorflow.python.tpu.client
tensorflow.python.tpu
tensorflow.python.tools.api.generator
tensorflow.python.tools.api
tensorflow.python.summary.writer
tensorboard.summary
tensorboard.plugins.scalar
tensorboard.util
tensorboard.summary.writer
tensorboard.plugins.text
tensorboard.plugins.pr_curve
tensorboard.plugins.image
tensorboard.plugins.histogram
tensorboard.plugins.custom_scalar
tensorboard.plugins.audio
tensorflow.python.summary
tensorflow.python.saved_model.registration
tensorflow.python.saved_model.model_utils
tensorflow.python.saved_model
tensorflow.python.profiler.internal
tensorflow.python.profiler
tensorflow.python.platform
tensorflow.python.ops.structured
tensorflow.python.ops.signal
tensorflow.python.ops.ragged
tensorflow.python.ops.parallel_for
tensorflow.python.ops.numpy_ops
tensorflow.python.ops.losses
tensorflow.python.ops.linalg.sparse
tensorflow.python.ops.linalg
tensorflow.python.ops.distributions
tensorflow.python.ops
tensorflow.python.module
tensorflow.python.lib.core
tensorflow.python.lib
tensorflow.python.layers
tensorflow.python.kernel_tests.sparse_ops
tensorflow.python.kernel_tests.signal
tensorflow.python.kernel_tests.random
tensorflow.python.kernel_tests.nn_ops
tensorflow.python.kernel_tests
tensorflow.python.keras.utils
tensorflow.python.keras.saving.utils_v1
tensorflow.python.keras.saving.saved_model
tensorflow.python.keras.saving
tensorflow.python.keras.protobuf
tensorflow.python.keras.optimizer_v2
tensorflow.python.keras.mixed_precision
tensorflow.python.keras.legacy_tf_layers
tensorflow.python.keras.layers.legacy_rnn
tensorflow.python.keras.layers
tensorflow.python.keras.initializers
tensorflow.python.keras.engine
tensorflow.python.keras.distribute
tensorflow.python.keras
tensorflow.python.grappler
tensorflow.python.feature_column
tensorflow.python.estimator.inputs.queues
tensorflow.python.estimator.inputs
tensorflow.python.estimator.export
tensorflow.python.estimator.canned
tensorflow.python.estimator
tensorflow.python.eager.memory_tests
tensorflow.python.eager
tensorflow.python.dlpack
tensorflow.python.distribute.v1
tensorflow.python.distribute.parallel_device
dill
dbm
tensorflow.python.distribute.failure_handling
tensorflow.python.distribute.experimental.rpc
tensorflow.python.distribute.experimental
tensorflow.python.distribute.coordinator
tensorflow.python.distribute.cluster_resolver.tpu
tensorflow.python.distribute.cluster_resolver
tensorflow.python.distribute
tensorflow.python.debug.wrappers
tensorflow.python.debug.lib
tensorflow.python.debug.cli
tensorflow.python.debug
tensorflow.python.data.util
tensorflow.python.data.ops
tensorflow.python.data.kernel_tests
tensorflow.python.data.experimental.service
tensorflow.python.data.experimental.ops
tensorflow.python.data.experimental.kernel_tests.service
tensorflow.python.data.experimental.kernel_tests
tensorflow.python.data.experimental
tensorflow.python.data.benchmarks
tensorflow.python.data
tensorflow.python.compiler.xla
tensorflow.python.compiler.tensorrt.test
tensorflow.python.compiler.tensorrt
tensorflow.python.compiler.mlir
tensorflow.python.compiler
tensorflow.python.client
tensorflow.python.checkpoint
tensorflow.python.autograph.utils
gast
tensorflow.python.autograph.pyct.testing
tensorflow.python.autograph.pyct.static_analysis
termcolor
tensorflow.python.autograph.pyct.common_transformers
tensorflow.python.autograph.pyct
tensorflow.python.autograph.operators
tensorflow.python.autograph.lang
tensorflow.python.autograph.impl.testing
tensorflow.python.autograph.impl
tensorflow.python.autograph.core
tensorflow.python.autograph.converters
tensorflow.python.autograph
tensorflow.lite.tools.optimize.debugging.python
tensorflow.lite.tools.optimize.debugging
tensorflow.lite.tools.optimize
flatbuffers
tensorflow.lite.tools
tensorflow.lite.toco.python
tensorflow.lite.toco.logging
tensorflow.lite.toco
tensorflow.lite.python.optimize
tensorflow.lite.python.metrics.wrapper
tensorflow.lite.python.metrics
tensorflow.lite.python.interpreter_wrapper
tensorflow.lite.python.authoring
tensorflow.lite.python.analyzer_wrapper
tensorflow.lite.python
tensorflow.lite.experimental.microfrontend.python.ops
tensorflow.lite.experimental.microfrontend.python
tensorflow.lite.experimental.microfrontend.ops
tensorflow.lite.experimental.microfrontend
tensorflow.lite.experimental
tensorflow.lite
keras.api._v2.keras.wrappers.scikit_learn
keras.api._v2.keras.wrappers
keras.api._v2.keras.utils.experimental
keras.api._v2.keras.utils
keras.api._v2.keras.regularizers
keras.api._v2.keras.preprocessing.text
keras.api._v2.keras.preprocessing.sequence
keras.api._v2.keras.preprocessing.image
keras.api._v2.keras.preprocessing
keras.api._v2.keras.premade
keras.api._v2.keras.optimizers.schedules
keras.api._v2.keras.optimizers.legacy
keras.api._v2.keras.optimizers.experimental
keras.api._v2.keras.models.experimental
keras.api._v2.keras.models
keras.api._v2.keras.mixed_precision
keras.api._v2.keras.layers.experimental.preprocessing
keras.api._v2.keras.layers.experimental
keras.api._v2.keras.layers
keras.api._v2.keras.experimental
keras.api._v2.keras.estimator
keras.api._v2.keras.dtensor.experimental.optimizers
keras.api._v2.keras.dtensor.experimental
keras.api._v2.keras.dtensor
keras.api._v2.keras.datasets.reuters
keras.api._v2.keras.datasets.mnist
keras.api._v2.keras.datasets.imdb
keras.api._v2.keras.datasets.fashion_mnist
keras.api._v2.keras.datasets.cifar100
keras.api._v2.keras.datasets.cifar10
keras.api._v2.keras.datasets.boston_housing
keras.api._v2.keras.datasets
keras.api._v2.keras.constraints
keras.api._v2.keras.callbacks.experimental
keras.api._v2.keras.callbacks
keras.api._v2.keras.backend.experimental
keras.api._v2.keras.backend
keras.api._v2.keras.applications.xception
keras.api._v2.keras.applications.vgg19
keras.api._v2.keras.applications.vgg16
keras.api._v2.keras.applications.resnet_v2
keras.api._v2.keras.applications.resnet_rs
keras.api._v2.keras.applications.resnet50
keras.api._v2.keras.applications.resnet
keras.api._v2.keras.applications.regnet
keras.api._v2.keras.applications.nasnet
keras.api._v2.keras.applications.mobilenet_v3
keras.api._v2.keras.applications.mobilenet_v2
keras.api._v2.keras.applications.mobilenet
keras.api._v2.keras.applications.inception_v3
keras.api._v2.keras.applications.inception_resnet_v2
keras.api._v2.keras.applications.imagenet_utils
keras.api._v2.keras.applications.efficientnet_v2
keras.api._v2.keras.applications.efficientnet
keras.api._v2.keras.applications.densenet
keras.api._v2.keras.applications.convnext
keras.api._v2.keras.applications
keras.api._v2.keras.activations
keras.api._v2.keras.__internal__.utils
keras.api._v2.keras.__internal__.models
keras.api._v2.keras.__internal__.losses
keras.api._v2.keras.__internal__.layers
keras.api._v2.keras.__internal__.backend
keras.api._v2.keras.__internal__
tensorflow.dtensor.python
tensorflow.dtensor.proto
tensorflow.dtensor
tensorflow.distribute.experimental.rpc.proto
tensorflow.distribute.experimental.rpc.kernels
tensorflow.distribute.experimental.rpc
tensorflow.distribute.experimental
tensorflow.distribute
tensorflow.core.util
tensorflow.core.protobuf.tpu
tensorflow.core.protobuf
tensorflow.core.profiler.protobuf
tensorflow.core.profiler
tensorflow.core.lib.core
tensorflow.core.lib
tensorflow.core.kernels
tensorflow.core.grappler.costs
tensorflow.core.grappler
tensorflow.core.function.trace_type
tensorflow.core.function.polymorphism
tensorflow.core.function
tensorflow.core.framework
tensorflow.core.example
tensorflow.core.debug
tensorflow.core.config
tensorflow.core
tensorflow.compiler.xla.service
tensorflow.compiler.xla.python_api
tensorflow.compiler.xla.experimental.xla_sharding
tensorflow.compiler.xla.experimental
tensorflow.compiler.xla
tensorflow.compiler.tf2xla.python
tensorflow.compiler.tf2xla.ops
tensorflow.compiler.tf2xla
tensorflow.compiler.tf2tensorrt.utils
tensorflow.compiler.tf2tensorrt.ops
tensorflow.compiler.tf2tensorrt
tensorflow.compiler.mlir.tensorflow
tensorflow.compiler.mlir
tensorflow.compiler.jit.ops
tensorflow.compiler.jit
tensorflow.compiler
tensorflow._api.v2.xla.experimental
tensorflow._api.v2.types.experimental.distributed
tensorflow._api.v2.types.experimental
tensorflow._api.v2.train.experimental
tensorflow._api.v2.tpu.experimental.embedding
tensorflow._api.v2.tpu.experimental
tensorflow._api.v2.summary.experimental
tensorflow._api.v2.saved_model.experimental
tensorflow._api.v2.random.experimental
tensorflow._api.v2.profiler.experimental.server
tensorflow._api.v2.profiler.experimental.client
tensorflow._api.v2.profiler.experimental
tensorflow._api.v2.nn.experimental
tensorflow._api.v2.mlir.experimental
tensorflow._api.v2.math.special
tensorflow._api.v2.lookup.experimental
tensorflow._api.v2.lite.experimental.microfrontend.python.ops
tensorflow._api.v2.lite.experimental.microfrontend.python
tensorflow._api.v2.lite.experimental.microfrontend
tensorflow._api.v2.lite.experimental.authoring
tensorflow._api.v2.lite.experimental
tensorflow._api.v2.linalg.experimental
tensorflow._api.v2.io.gfile
tensorflow._api.v2.experimental.tensorrt
tensorflow._api.v2.experimental.numpy.random
tensorflow._api.v2.experimental.numpy
tensorflow._api.v2.experimental.dtensor
tensorflow._api.v2.experimental.dlpack
tensorflow._api.v2.distribute.experimental.rpc
tensorflow._api.v2.distribute.experimental.partitioners
tensorflow._api.v2.distribute.experimental.coordinator
tensorflow._api.v2.distribute.experimental
tensorflow._api.v2.distribute.coordinator
tensorflow._api.v2.distribute.cluster_resolver
tensorflow._api.v2.debugging.experimental
tensorflow._api.v2.data.experimental.service
tensorflow._api.v2.data.experimental
tensorflow._api.v2.config.threading
tensorflow._api.v2.config.optimizer
tensorflow._api.v2.config.experimental
tensorflow._api.v2.compat.v2.xla.experimental
tensorflow._api.v2.compat.v2.xla
tensorflow._api.v2.compat.v2.version
tensorflow._api.v2.compat.v2.types.experimental.distributed
tensorflow._api.v2.compat.v2.types.experimental
tensorflow._api.v2.compat.v2.types
tensorflow._api.v2.compat.v2.train.experimental
tensorflow._api.v2.compat.v2.train
tensorflow._api.v2.compat.v2.tpu.experimental.embedding
tensorflow._api.v2.compat.v2.tpu.experimental
tensorflow._api.v2.compat.v2.tpu
tensorflow._api.v2.compat.v2.test
tensorflow._api.v2.compat.v2.sysconfig
tensorflow._api.v2.compat.v2.summary.experimental
tensorflow._api.v2.compat.v2.summary
tensorflow._api.v2.compat.v2.strings
tensorflow._api.v2.compat.v2.sparse
tensorflow._api.v2.compat.v2.signal
tensorflow._api.v2.compat.v2.sets
tensorflow._api.v2.compat.v2.saved_model.experimental
tensorflow._api.v2.compat.v2.saved_model
tensorflow._api.v2.compat.v2.raw_ops
tensorflow._api.v2.compat.v2.random.experimental
tensorflow._api.v2.compat.v2.random
tensorflow._api.v2.compat.v2.ragged
tensorflow._api.v2.compat.v2.queue
tensorflow._api.v2.compat.v2.quantization
tensorflow._api.v2.compat.v2.profiler.experimental.server
tensorflow._api.v2.compat.v2.profiler.experimental.client
tensorflow._api.v2.compat.v2.profiler.experimental
tensorflow._api.v2.compat.v2.profiler
tensorflow._api.v2.compat.v2.nn.experimental
tensorflow._api.v2.compat.v2.nn
tensorflow._api.v2.compat.v2.nest
tensorflow._api.v2.compat.v2.mlir.experimental
tensorflow._api.v2.compat.v2.mlir
tensorflow._api.v2.compat.v2.math.special
tensorflow._api.v2.compat.v2.math
tensorflow._api.v2.compat.v2.lookup.experimental
tensorflow._api.v2.compat.v2.lookup
tensorflow._api.v2.compat.v2.lite.experimental.microfrontend.python.ops
tensorflow._api.v2.compat.v2.lite.experimental.microfrontend.python
tensorflow._api.v2.compat.v2.lite.experimental.microfrontend
tensorflow._api.v2.compat.v2.lite.experimental.authoring
tensorflow._api.v2.compat.v2.lite.experimental
tensorflow._api.v2.compat.v2.lite
tensorflow._api.v2.compat.v2.linalg.experimental
tensorflow._api.v2.compat.v2.linalg
tensorflow._api.v2.compat.v2.io.gfile
tensorflow._api.v2.compat.v2.io
tensorflow._api.v2.compat.v2.image
tensorflow._api.v2.compat.v2.graph_util
tensorflow._api.v2.compat.v2.feature_column
tensorflow._api.v2.compat.v2.experimental.tensorrt
tensorflow._api.v2.compat.v2.experimental.numpy.random
tensorflow._api.v2.compat.v2.experimental.numpy
tensorflow._api.v2.compat.v2.experimental.dtensor
tensorflow._api.v2.compat.v2.experimental.dlpack
tensorflow._api.v2.compat.v2.experimental
tensorflow._api.v2.compat.v2.errors
tensorflow._api.v2.compat.v2.dtypes
tensorflow._api.v2.compat.v2.distribute.experimental.rpc
tensorflow._api.v2.compat.v2.distribute.experimental.partitioners
tensorflow._api.v2.compat.v2.distribute.experimental.coordinator
tensorflow._api.v2.compat.v2.distribute.experimental
tensorflow._api.v2.compat.v2.distribute.coordinator
tensorflow._api.v2.compat.v2.distribute.cluster_resolver
tensorflow._api.v2.compat.v2.distribute
tensorflow._api.v2.compat.v2.debugging.experimental
tensorflow._api.v2.compat.v2.debugging
tensorflow._api.v2.compat.v2.data.experimental.service
tensorflow._api.v2.compat.v2.data.experimental
tensorflow._api.v2.compat.v2.data
tensorflow._api.v2.compat.v2.config.threading
tensorflow._api.v2.compat.v2.config.optimizer
tensorflow._api.v2.compat.v2.config.experimental
tensorflow._api.v2.compat.v2.config
tensorflow._api.v2.compat.v2.compat.v2.compat
tensorflow._api.v2.compat.v2.compat.v2
tensorflow._api.v2.compat.v2.compat.v1.compat
tensorflow._api.v2.compat.v2.compat.v1
tensorflow_estimator.python.estimator.api._v1.estimator
tensorflow_estimator.python.estimator.api._v1.estimator.tpu
tensorflow_estimator.python.estimator.api._v1.estimator.tpu.experimental
tensorflow_estimator.python.estimator.api._v1.estimator.inputs
tensorflow_estimator.python.estimator.api._v1.estimator.export
tensorflow_estimator.python.estimator.api._v1.estimator.experimental
tensorflow_estimator.python.estimator.api._v1
tensorflow_estimator.python.estimator.api
tensorflow._api.v2.compat.v2.compat
tensorflow._api.v2.compat.v2.bitwise
tensorflow._api.v2.compat.v2.autograph.experimental
tensorflow._api.v2.compat.v2.autograph
tensorflow._api.v2.compat.v2.autodiff
tensorflow._api.v2.compat.v2.audio
tensorflow._api.v2.compat.v2.__operators__
tensorflow._api.v2.compat.v2.__internal__.types
tensorflow._api.v2.compat.v2.__internal__.train
tensorflow._api.v2.compat.v2.__internal__.tracking
tensorflow._api.v2.compat.v2.__internal__.tf2
tensorflow._api.v2.compat.v2.__internal__.test.combinations
tensorflow._api.v2.compat.v2.__internal__.test
tensorflow._api.v2.compat.v2.__internal__.smart_cond
tensorflow._api.v2.compat.v2.__internal__.saved_model.load
tensorflow._api.v2.compat.v2.__internal__.saved_model
tensorflow._api.v2.compat.v2.__internal__.ops
tensorflow._api.v2.compat.v2.__internal__.nest
tensorflow._api.v2.compat.v2.__internal__.monitoring
tensorflow._api.v2.compat.v2.__internal__.mixed_precision
tensorflow._api.v2.compat.v2.__internal__.graph_util
tensorflow._api.v2.compat.v2.__internal__.function
tensorflow._api.v2.compat.v2.__internal__.feature_column
tensorflow._api.v2.compat.v2.__internal__.eager_context
tensorflow._api.v2.compat.v2.__internal__.distribute.multi_process_runner
tensorflow._api.v2.compat.v2.__internal__.distribute.interim
tensorflow._api.v2.compat.v2.__internal__.distribute.combinations
tensorflow._api.v2.compat.v2.__internal__.distribute
tensorflow._api.v2.compat.v2.__internal__.dispatch
tensorflow._api.v2.compat.v2.__internal__.decorator
tensorflow._api.v2.compat.v2.__internal__.autograph
tensorflow._api.v2.compat.v2.__internal__
tensorflow._api.v2.compat.v2
tensorflow._api.v2.compat.v1.xla.experimental
tensorflow._api.v2.compat.v1.xla
tensorflow._api.v2.compat.v1.version
tensorflow._api.v2.compat.v1.user_ops
tensorflow._api.v2.compat.v1.types.experimental
tensorflow._api.v2.compat.v1.types
tensorflow._api.v2.compat.v1.train.queue_runner
tensorflow._api.v2.compat.v1.train.experimental
tensorflow._api.v2.compat.v1.train
tensorflow._api.v2.compat.v1.tpu.experimental.embedding
tensorflow._api.v2.compat.v1.tpu.experimental
tensorflow._api.v2.compat.v1.tpu
tensorflow._api.v2.compat.v1.test
tensorflow._api.v2.compat.v1.sysconfig
tensorflow._api.v2.compat.v1.summary
tensorflow._api.v2.compat.v1.strings
tensorflow._api.v2.compat.v1.spectral
tensorflow._api.v2.compat.v1.sparse
tensorflow._api.v2.compat.v1.signal
tensorflow._api.v2.compat.v1.sets
tensorflow._api.v2.compat.v1.saved_model.utils
tensorflow._api.v2.compat.v1.saved_model.tag_constants
tensorflow._api.v2.compat.v1.saved_model.signature_def_utils
tensorflow._api.v2.compat.v1.saved_model.signature_constants
tensorflow._api.v2.compat.v1.saved_model.main_op
tensorflow._api.v2.compat.v1.saved_model.loader
tensorflow._api.v2.compat.v1.saved_model.experimental
tensorflow._api.v2.compat.v1.saved_model.constants
tensorflow._api.v2.compat.v1.saved_model.builder
tensorflow._api.v2.compat.v1.saved_model
tensorflow._api.v2.compat.v1.resource_loader
tensorflow._api.v2.compat.v1.raw_ops
tensorflow._api.v2.compat.v1.random.experimental
tensorflow._api.v2.compat.v1.random
tensorflow._api.v2.compat.v1.ragged
tensorflow._api.v2.compat.v1.queue
tensorflow._api.v2.compat.v1.quantization
tensorflow._api.v2.compat.v1.python_io
tensorflow._api.v2.compat.v1.profiler
tensorflow._api.v2.compat.v1.nn.rnn_cell
tensorflow._api.v2.compat.v1.nn.experimental
tensorflow._api.v2.compat.v1.nn
tensorflow._api.v2.compat.v1.nest
tensorflow._api.v2.compat.v1.mlir.experimental
tensorflow._api.v2.compat.v1.mlir
tensorflow._api.v2.compat.v1.mixed_precision.experimental
tensorflow._api.v2.compat.v1.mixed_precision
tensorflow._api.v2.compat.v1.metrics
tensorflow._api.v2.compat.v1.math.special
tensorflow._api.v2.compat.v1.math
tensorflow._api.v2.compat.v1.manip
tensorflow._api.v2.compat.v1.losses
tensorflow._api.v2.compat.v1.lookup.experimental
tensorflow._api.v2.compat.v1.lookup
tensorflow._api.v2.compat.v1.logging
tensorflow._api.v2.compat.v1.lite.experimental.microfrontend.python.ops
tensorflow._api.v2.compat.v1.lite.experimental.microfrontend.python
tensorflow._api.v2.compat.v1.lite.experimental.microfrontend
tensorflow._api.v2.compat.v1.lite.experimental.authoring
tensorflow._api.v2.compat.v1.lite.experimental
tensorflow._api.v2.compat.v1.lite.constants
tensorflow._api.v2.compat.v1.lite
tensorflow._api.v2.compat.v1.linalg.experimental
tensorflow._api.v2.compat.v1.linalg
tensorflow._api.v2.compat.v1.layers.experimental
tensorflow._api.v2.compat.v1.layers
tensorflow._api.v2.compat.v1.io.gfile
tensorflow._api.v2.compat.v1.io
tensorflow._api.v2.compat.v1.initializers
tensorflow._api.v2.compat.v1.image
tensorflow._api.v2.compat.v1.graph_util
tensorflow._api.v2.compat.v1.gfile
tensorflow._api.v2.compat.v1.feature_column
tensorflow._api.v2.compat.v1.experimental
tensorflow._api.v2.compat.v1.errors
tensorflow._api.v2.compat.v1.dtypes
tensorflow._api.v2.compat.v1.distributions
tensorflow._api.v2.compat.v1.distribute.experimental
tensorflow._api.v2.compat.v1.distribute.cluster_resolver
tensorflow._api.v2.compat.v1.distribute
tensorflow._api.v2.compat.v1.debugging.experimental
tensorflow._api.v2.compat.v1.debugging
tensorflow._api.v2.compat.v1.data.experimental.service
tensorflow._api.v2.compat.v1.data.experimental
tensorflow._api.v2.compat.v1.data
tensorflow._api.v2.compat.v1.config.threading
tensorflow._api.v2.compat.v1.config.optimizer
tensorflow._api.v2.compat.v1.config.experimental
tensorflow._api.v2.compat.v1.config
tensorflow._api.v2.compat.v1.compat.v2.compat
tensorflow._api.v2.compat.v1.compat.v2
tensorflow._api.v2.compat.v1.compat.v1.compat
tensorflow._api.v2.compat.v1.compat.v1
tensorflow._api.v2.compat.v1.compat
tensorflow._api.v2.compat.v1.bitwise
tensorflow._api.v2.compat.v1.autograph.experimental
tensorflow._api.v2.compat.v1.autograph
tensorflow._api.v2.compat.v1.audio
tensorflow._api.v2.compat.v1.app
tensorflow._api.v2.compat.v1
tensorflow._api.v2.autograph.experimental
tensorflow._api.v2.__internal__.types
tensorflow._api.v2.__internal__.train
tensorflow._api.v2.__internal__.tracking
tensorflow._api.v2.__internal__.tf2
tensorflow._api.v2.__internal__.test.combinations
tensorflow._api.v2.__internal__.test
tensorflow._api.v2.__internal__.smart_cond
tensorflow._api.v2.__internal__.saved_model.load
tensorflow._api.v2.__internal__.saved_model
tensorflow._api.v2.__internal__.ops
tensorflow._api.v2.__internal__.nest
tensorflow._api.v2.__internal__.monitoring
tensorflow._api.v2.__internal__.mixed_precision
tensorflow._api.v2.__internal__.graph_util
tensorflow._api.v2.__internal__.function
tensorflow._api.v2.__internal__.feature_column
tensorflow._api.v2.__internal__.eager_context
tensorflow._api.v2.__internal__.distribute.multi_process_runner
tensorflow._api.v2.__internal__.distribute.interim
tensorflow._api.v2.__internal__.distribute.combinations
tensorflow._api.v2.__internal__.distribute
tensorflow._api.v2.__internal__.dispatch
tensorflow._api.v2.__internal__.decorator
tensorflow._api.v2.__internal__.autograph
tensorflow._api
keras.api._v2.keras.initializers
keras.api._v2.keras.optimizers
keras.api._v2.keras.metrics
keras.api._v2.keras.losses
keras.api._v2.keras
keras.api._v2
tensorflow_estimator.python.estimator.api._v2.estimator
tensorflow_estimator.python.estimator.api._v2.estimator.export
tensorflow_estimator.python.estimator.api._v2.estimator.experimental
tensorflow_estimator.python.estimator.api._v2
tensorflow.python.lib.io
tensorflow.python.framework
tensorflow.python.compat
tensorflow_io_gcs_filesystem
tensorflow_io_gcs_filesystem.core.python.ops
tensorflow_io_gcs_filesystem.core.python
tensorflow_io_gcs_filesystem.core
tensorboard.summary._tf.summary
tensorboard.summary._tf
opt_einsum
opt_einsum.backends
tensorflow._api.v2.xla
tensorflow._api.v2.version
tensorflow._api.v2.types
tensorflow._api.v2.train
tensorflow._api.v2.tpu
tensorflow._api.v2.test
tensorflow._api.v2.sysconfig
tensorflow._api.v2.summary
tensorflow._api.v2.strings
tensorflow._api.v2.sparse
tensorflow._api.v2.signal
tensorflow._api.v2.sets
tensorflow._api.v2.saved_model
tensorflow._api.v2.raw_ops
tensorflow._api.v2.random
tensorflow._api.v2.ragged
tensorflow._api.v2.queue
tensorflow._api.v2.quantization
tensorflow._api.v2.profiler
tensorflow._api.v2.nn
tensorflow._api.v2.nest
tensorflow._api.v2.mlir
tensorflow._api.v2.math
tensorflow._api.v2.lookup
tensorflow._api.v2.lite
tensorflow._api.v2.linalg
tensorflow._api.v2.io
tensorflow._api.v2.image
tensorflow._api.v2.graph_util
tensorflow._api.v2.feature_column
tensorflow._api.v2.experimental
tensorflow._api.v2.errors
tensorflow._api.v2.dtypes
tensorflow._api.v2.distribute
tensorflow._api.v2.debugging
tensorflow._api.v2.data
tensorflow._api.v2.config
tensorflow._api.v2.compat
tensorflow._api.v2.bitwise
tensorflow._api.v2.autograph
tensorflow._api.v2.autodiff
tensorflow._api.v2.audio
tensorflow._api.v2.__operators__
tensorflow._api.v2.__internal__
tensorflow._api.v2
tensorflow.python
tensorflow.python.tools
huggingface_hub.utils
yaml
filelock
huggingface_hub
tqdm.contrib
huggingface_hub.commands
datasets
datasets.utils
datasets.tasks
regex
multiprocess.dummy
_multiprocess
test.support
test
multiprocess
Crypto.Random
Crypto
Crypto.Util
Crypto.Cipher
Crypto.Hash
Crypto.Protocol
datasets.filesystems
scipy.io
scipy.io.arff
scipy.io._harwell_boeing
scipy.io.matlab
aiohttp
multidict
yarl
attr
frozenlist
aiosignal
async_timeout
torchaudio.transforms
torchaudio._internal
torchaudio.functional
torchaudio
torchaudio.backend
torchaudio.utils
torchaudio.sox_effects
torchaudio.pipelines
sentencepiece
torchaudio.pipelines._wav2vec2
torchaudio.pipelines._tts
torchaudio.models
torchaudio.models.wav2vec2
torchaudio.models.wav2vec2.utils
torchaudio.io
torchaudio.datasets
torch.utils.data
torch.utils.data.datapipes.iter
torch.utils.data.datapipes.utils
torch.utils.data._utils
torch.utils.data.datapipes.dataframe
torchvision.io
torchvision
torchvision.ops
torch.onnx
torch.onnx._internal
torch.onnx._internal.diagnostics
torch.onnx._internal.diagnostics.infra
torch.onnx._internal.diagnostics.infra.sarif
torchvision.models
torchvision.models.video
torchvision.models.segmentation
torchvision.models.quantization
torch.ao.quantization
torch.nn.intrinsic
torch.nn.intrinsic.modules
torch.ao.nn.intrinsic.modules
torch.ao.nn.intrinsic
torch.ao.nn
torch.ao.nn.quantized
torch.ao.nn.quantized.modules
torch.nn.intrinsic.qat
torch.nn.intrinsic.qat.modules
torch.ao.nn.qat
torch.ao.nn.qat.modules
torch.ao.nn.quantizable
torch.ao.nn.quantizable.modules
torch.ao.nn.sparse
torch.ao.nn.sparse.quantized
torch.ao.nn.sparse.quantized.dynamic
torch.ao.nn.qat.dynamic
torch.ao.nn.qat.dynamic.modules
torch.ao.nn.quantized.dynamic
torch.ao.nn.quantized.dynamic.modules
torch.ao.nn.quantized.reference
torch.ao.nn.quantized.reference.modules
torch.nn.intrinsic.quantized.dynamic
torch.nn.intrinsic.quantized.dynamic.modules
torch.nn.intrinsic.quantized
torch.nn.intrinsic.quantized.modules
torch.ao
torchvision.models.optical_flow
torchvision.models.detection
torchvision.datasets
lmdb
pycocotools
torchvision.transforms
torch.utils.data.datapipes
torch.utils.data.datapipes.map
torch.utils.data.communication
torchaudio.compliance
datasets.packaged_modules
datasets.packaged_modules.text
datasets.packaged_modules.sql
datasets.packaged_modules.parquet
datasets.packaged_modules.pandas
datasets.packaged_modules.json
datasets.packaged_modules.folder_based_builder
datasets.packaged_modules.imagefolder
datasets.packaged_modules.csv
datasets.packaged_modules.audiofolder
datasets.io
datasets.packaged_modules.generator
datasets.formatting
xxhash
datasets.features
datasets.download
transformers.benchmark
apex.optimizers
apex.multi_tensor_apply
apex.amp
apex.parallel
apex.contrib.optimizers
apex.contrib
apex.fp16_utils
apex.amp.lists
apex
apex.transformer
apex.transformer.tensor_parallel
apex.transformer.pipeline_parallel
apex.transformer.pipeline_parallel.schedules
apex.transformer.functional
apex.transformer.amp
apex.normalization
transformers.data.datasets
transformers.data.processors
tokenizers.models
tokenizers.processors
tokenizers.pre_tokenizers
tokenizers.normalizers
tokenizers.decoders
tokenizers
tokenizers.implementations
tokenizers.trainers
transformers.models.mbart50
transformers.models
transformers.models.megatron_gpt2
transformers.models.dit
transformers.models.dialogpt
transformers.models.bort
transformers.models.nllb
transformers.models.mluke
transformers.models.cpm
jieba
jieba.lac_small
paddle.static
Traceback (most recent call last):
  File ".local/lib/python3.8/site-packages/PyInstaller/isolated/_parent.py", line 372, in call
    return isolated.call(function, *args, **kwargs)
  File ".local/lib/python3.8/site-packages/PyInstaller/isolated/_parent.py", line 293, in call
    ok, output = loads(b64decode(self._read_handle.readline()))
EOFError: EOF read where object expected

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".local/bin/pyinstaller", line 8, in <module>
    sys.exit(_console_script_run())
  File ".local/lib/python3.8/site-packages/PyInstaller/__main__.py", line 194, in _console_script_run
    run()
  File ".local/lib/python3.8/site-packages/PyInstaller/__main__.py", line 180, in run
    run_build(pyi_config, spec_file, **vars(args))
  File ".local/lib/python3.8/site-packages/PyInstaller/__main__.py", line 61, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File ".local/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 1007, in main
    build(specfile, distpath, workpath, clean_build)
  File ".local/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 929, in build
    exec(code, spec_namespace)
  File "S.spec", line 19, in <module>
    a = Analysis(['S.py'],
  File ".local/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 429, in __init__
    self.__postinit__()
  File ".local/lib/python3.8/site-packages/PyInstaller/building/datastruct.py", line 184, in __postinit__
    self.assemble()
  File ".local/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 737, in assemble
    isolated.call(find_binary_dependencies, self.binaries, self.binding_redirects, collected_packages)
  File ".local/lib/python3.8/site-packages/PyInstaller/isolated/_parent.py", line 372, in call
    return isolated.call(function, *args, **kwargs)
  File ".local/lib/python3.8/site-packages/PyInstaller/isolated/_parent.py", line 247, in __exit__
    self._write_handle.flush()
BrokenPipeError: [Errno 32] Broken pipe



Hmm, can we also get output of `pip freeze`, so I can try installing the same package versions you are using, and see if I can reproduce this locally?

But as a quick work-around, can you try commenting/removing the whole 
```
    # Import collected packages to set up environment
    for package in import_packages:
        try:
            __import__(package)
        except Exception:
            pass
```
block.  Does this fix this particular error?
> 

absl-py==1.3.0
addict==2.4.0
aiofiles==23.1.0
aiohttp==3.8.4
aiosignal==1.3.1
altair==4.2.2
altgraph==0.17.3
anyconfig==0.13.0
anyio==3.6.2
apex==0.1
appdirs==1.4.4
apturl==0.5.2
asgiref==3.6.0
astor==0.8.1
asttokens==2.2.1
astunparse==1.6.3
async-timeout==4.0.2
attrdict==2.0.1
attrs==22.2.0
Babel==2.12.1
backcall==0.2.0
bce-python-sdk==0.8.79
bcrypt==3.1.7
beautifulsoup4==4.11.1
blinker==1.4
Brlapi==0.7.0
Brotli==1.0.9
bs4==0.0.1
cachetools==5.2.0
certifi==2019.11.28
cffi==1.15.1
cfgv==3.3.1
chardet==3.0.4
charset-normalizer==3.0.1
click==8.1.3
colorama==0.4.3
coloredlogs==15.0.1
colorlog==6.7.0
command-not-found==0.3
commonmark==0.9.1
cryptography==2.8
cssselect==1.2.0
cssutils==2.6.0
cupshelpers==1.0
cycler==0.11.0
datasets==2.10.1
dbus-python==1.2.16
decorator==5.1.1
defer==1.0.6
dill==0.3.4
distlib==0.3.6
distro==1.4.0
distro-info===0.23ubuntu1
docker-pycreds==0.4.0
duplicity==0.8.12.0
easydict==1.10
entrypoints==0.3
et-xmlfile==1.1.0
executing==1.2.0
fast-tokenizer-python==1.0.2
fastapi==0.94.0
fastdeploy-gpu-python==1.0.6
fastdeploy-tools==0.0.5
fasteners==0.14.1
ffmpy==0.3.0
filelock==3.8.0
flake8==6.0.0
Flask==2.2.3
Flask-Babel==2.0.0
flatbuffers==2.0.7
fonttools==4.38.0
frozenlist==1.3.3
fsspec==2023.3.0
future==0.18.2
gast==0.4.0
gevent==22.10.2
geventhttpclient==2.0.2
gitdb==4.0.10
GitPython==3.1.30
google-auth==2.14.1
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
gradio==3.20.1
greenlet==2.0.2
grpcio==1.50.0
h11==0.12.0
h5py==3.7.0
hanlp==2.1.0b44
hanlp-common==0.0.19
hanlp-downloader==0.0.25
hanlp-trie==0.0.5
httpcore==0.15.0
httplib2==0.14.0
httpx==0.23.0
huggingface-hub==0.13.1
humanfriendly==10.0
identify==2.5.19
idna==2.8
imageio==2.22.4
imgaug==0.4.0
imgviz==1.5.1
importlib-metadata==5.0.0
importlib-resources==5.12.0
ipython==8.10.0
itsdangerous==2.1.2
jedi==0.18.2
jieba==0.42.1
Jinja2==3.1.2
jiwer==3.0.1
joblib==1.2.0
jsonschema==4.17.3
keras==2.10.0
Keras-Preprocessing==1.1.2
keyring==18.0.1
kiwisolver==1.4.4
labelImg==1.8.6
labelme==5.0.5
LAC==2.1.0
language-selector==0.1
lanms-neo==1.0.2
launchpadlib==1.10.13
lazr.restfulclient==0.14.2
lazr.uri==1.0.3
Levenshtein==0.20.8
libclang==14.0.6
linkify-it-py==2.0.0
lmdb==1.3.0
lockfile==0.12.2
loguru==0.6.0
louis==3.12.0
lxml==4.9.1
macaroonbakery==1.3.1
Mako==1.1.0
Markdown==3.4.1
markdown-it-py==2.2.0
MarkupSafe==2.1.1
matplotlib==3.2.2
matplotlib-inline==0.1.6
mccabe==0.7.0
mdit-py-plugins==0.3.3
mdurl==0.1.2
monotonic==1.5
mpmath==1.2.1
multidict==6.0.4
multiprocess==0.70.12.2
natsort==8.2.0
netifaces==0.10.4
netron==6.1.8
networkx==2.8.8
ninja==1.11.1
nltk==3.7
nodeenv==1.7.0
numpy==1.23.4
nvidia-pyindex==1.0.9
oauthlib==3.1.0
olefile==0.46
onnx==1.12.0
onnx-simplifier==0.4.10
onnxconverter-common==1.13.0
onnxmltools==1.11.2
onnxoptimizer==0.3.2
onnxruntime==1.13.1
opencv-contrib-python==4.2.0.34
opencv-python==4.2.0.34
openpyxl==3.1.2
opt-einsum==3.3.0
orjson==3.8.7
packaging==21.3
paddle-bfloat==0.1.7
paddle2onnx==1.0.5
paddlefsl==1.1.0
paddlenlp==2.5.2
paddlepaddle-gpu==0.0.0.post116
pandas==1.5.2
paramiko==2.6.0
parso==0.8.3
pathtools==0.1.2
pbr==5.11.1
pexpect==4.6.0
phrasetree==0.0.8
pickleshare==0.7.5
Pillow==8.4.0
pkgutil_resolve_name==1.3.10
platformdirs==3.1.0
Polygon3==3.0.9.1
pre-commit==3.1.1
premailer==3.10.0
presets==0.1.3
prettytable==3.6.0
promise==2.3
prompt-toolkit==3.0.36
protobuf==3.20.2
psutil==5.9.4
pure-eval==0.2.2
pyarrow==11.0.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycairo==1.16.2
pyclipper==1.3.0.post3
pycocotools==2.0.6
pycodestyle==2.10.0
pycorrector==0.4.6
pycparser==2.21
pycryptodome==3.17
pycuda==2022.2.2
pycups==1.9.73
pydantic==1.10.6
pydub==0.25.1
pyflakes==3.0.1
Pygments==2.13.0
PyGObject==3.36.0
pyinstaller==5.11.0
pyinstaller-hooks-contrib==2023.3
PyJWT==1.7.1
pymacaroons==0.13.0
PyNaCl==1.3.0
pynvml==11.4.1
pyparsing==3.0.9
pypinyin==0.47.1
PyQt5==5.15.4
pyqt5-plugins==5.15.4.2.2
PyQt5-Qt5==5.15.2
PyQt5-sip==12.11.0
pyqt5-tools==5.15.4.3.2
pyRFC3339==1.1
pyrsistent==0.19.3
python-apt==2.0.1+ubuntu0.20.4.1
python-dateutil==2.8.2
python-debian===0.1.36ubuntu1
python-docx==0.8.11
python-dotenv==0.21.0
python-multipart==0.0.6
python-rapidjson==1.9
pytools==2022.1.14
pytorch-quantization==2.1.2
pytz==2022.7.1
PyWavelets==1.4.1
pyxdg==0.26
PyYAML==5.3.1
qt5-applications==5.15.2.2.2
qt5-tools==5.15.2.1.2
QtPy==2.3.0
rapidfuzz==2.13.7
rarfile==4.0
regex==2022.10.31
reportlab==3.5.34
requests==2.28.2
requests-oauthlib==1.3.1
requests-unixsocket==0.2.0
responses==0.18.0
rfc3986==1.5.0
rich==12.6.0
rsa==4.9
sacremoses==0.0.53
scikit-image==0.19.3
scikit-learn==1.1.3
scipy==1.9.3
screen-resolution-extra==0.0.0
seaborn==0.12.1
SecretStorage==2.3.1
sentencepiece==0.1.97
sentry-sdk==1.12.1
seqeval==1.2.2
setproctitle==1.3.2
setuptools-scm==7.1.0
Shapely==1.8.5.post1
shortuuid==1.0.11
simplejson==3.16.0
sip==4.19.21
six==1.14.0
skl2onnx==1.14.0
smmap==5.0.0
sniffio==1.3.0
soupsieve==2.3.2.post1
sphinx-glpi-theme==0.3
ssh-import-id==5.10
stack-data==0.6.2
starlette==0.26.0.post1
sympy==1.11.1
systemd-python==234
tabulate==0.9.0
tensorboard==2.10.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow-estimator==2.10.0
tensorflow-gpu==2.10.0
tensorflow-io-gcs-filesystem==0.27.0
termcolor==2.1.0
testresources==2.0.1
tf-slim==1.1.0
tf2onnx==1.13.0
thop==0.1.1.post2209072238
threadpoolctl==3.1.0
tifffile==2022.10.10
tokenizers==0.13.3
tomli==2.0.1
toolz==0.12.0
toposort==1.5
torch==1.13.1+cu116
torch-summary==1.4.5
torchaudio==0.13.1+cu116
torchinfo==1.8.0
torchstat==0.0.7
torchvision==0.14.1+cu116
tqdm==4.64.1
traitlets==5.9.0
transformers==4.24.0
tritonclient==2.31.0
typer==0.7.0
typing_extensions==4.4.0
ubuntu-advantage-tools==8001
ubuntu-drivers-common==0.0.0
uc-micro-py==1.0.1
uff==0.6.9
ufw==0.36
unattended-upgrades==0.1
urllib3==1.26.13
usb-creator==0.3.7
uvicorn==0.16.0
virtualenv==20.20.0
visualdl==2.0.0
wadllib==1.3.3
wandb==0.13.7
wcwidth==0.2.6
websocket-client==1.4.2
websockets==10.4
Werkzeug==2.2.2
wrapt==1.14.1
x2paddle==1.4.0
xkit==0.0.0
xlrd==1.2.0
xxhash==3.2.0
yarl==1.8.2
zipp==3.10.0
zope.event==4.6
zope.interface==5.5.2

@rokm maybe the enviroment is too much
> @rokm maybe the enviroment is too much

Yeah, this does look like a system-installed python environment + a lot of additional packages.

Can you instead try creating a virtual environment and install only requirements for your program? And if that still triggers the issue, provide us again the list of imported packages and the output of `pip freeze`.
I'm interested in reproducing the error to see what exactly is going wrong.

But in general, I think that on non-Windows, we can skip importing packages in the binary dependency scan process. On Windows, packages can modify `PATH` or add DLL search directories, which we then add to extended search paths. But on other OSes, there is no such mechanism, so there is no benefit of going through imports.

I'm actually considering removing the imports on Windows as well, and replacing the automatic search path extension with `dll_search_paths` hook variable that hooks can use to specify additional search paths. It would be more manual work (maintaining hooks), but it would save us from having to deal with issues caused by (non-deterministic) package import order.
> I'm interested in reproducing the error to see what exactly is going wrong.
> 
> But in general, I think that on non-Windows, we can skip importing packages in the binary dependency scan process. On Windows, packages can modify `PATH` or add DLL search directories, which we then add to extended search paths. But on other OSes, there is no such mechanism, so there is no benefit of going through imports.
> 
> I'm actually considering removing the imports on Windows as well, and replacing the automatic search path extension with `dll_search_paths` hook variable that hooks can use to specify additional search paths. It would be more manual work (maintaining hooks), but it would save us from having to deal with issues caused by (non-deterministic) package import order.

did you Repetition the error?
> > I'm interested in reproducing the error to see what exactly is going wrong.
> > But in general, I think that on non-Windows, we can skip importing packages in the binary dependency scan process. On Windows, packages can modify `PATH` or add DLL search directories, which we then add to extended search paths. But on other OSes, there is no such mechanism, so there is no benefit of going through imports.
> > I'm actually considering removing the imports on Windows as well, and replacing the automatic search path extension with `dll_search_paths` hook variable that hooks can use to specify additional search paths. It would be more manual work (maintaining hooks), but it would save us from having to deal with issues caused by (non-deterministic) package import order.
> 
> did you Repetition the error?

No, I'm having trouble installing all packages; some of them (even the ones that are clearly not ubuntu-specific) seem to be pinned to non-existent versions or require external repositories.

But like I said, as a work-around you can remove or comment the complete following code block

https://github.com/pyinstaller/pyinstaller/blob/d44373a8ba07fc8719dad6de0ad834b8012578ad/PyInstaller/building/build_main.py#L159-L192

because it has no real effect on non-Windows. That should get you past the sub-process crash, whatever is causing it.

> > > I'm interested in reproducing the error to see what exactly is going wrong.
> > > But in general, I think that on non-Windows, we can skip importing packages in the binary dependency scan process. On Windows, packages can modify `PATH` or add DLL search directories, which we then add to extended search paths. But on other OSes, there is no such mechanism, so there is no benefit of going through imports.
> > > I'm actually considering removing the imports on Windows as well, and replacing the automatic search path extension with `dll_search_paths` hook variable that hooks can use to specify additional search paths. It would be more manual work (maintaining hooks), but it would save us from having to deal with issues caused by (non-deterministic) package import order.
> > 
> > 
> > did you Repetition the error?
> 
> No, I'm having trouble installing all packages; some of them (even the ones that are clearly not ubuntu-specific) seem to be pinned to non-existent versions or require external repositories.
> 
> But like I said, as a work-around you can remove or comment the complete following code block
> 
> https://github.com/pyinstaller/pyinstaller/blob/d44373a8ba07fc8719dad6de0ad834b8012578ad/PyInstaller/building/build_main.py#L159-L192
> 
> because it has no real effect on non-Windows. That should get you past the sub-process crash, whatever is causing it.

you can just install paddle command like  if you have gpu in your computer:
python -m pip install paddlepaddle-gpu==2.4.2.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html

cpu:
python -m pip install paddlepaddle==2.4.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
It's not just paddle; the pinned versions of packages seem to have conflicting requirements (for example, regarding the version of `protobuf`, which itself is also pinned). I don't think it makes much sense to waste time trying to resolve and reproduce this mess.

I assume removing the block of code fixed the problem for you, since you opened a different issue with `paddle`?

I'll leave this open and close it with a PR that disables package importing for non-Windows...

Resolving patch:
diff --git a/PyInstaller/building/build_main.py b/PyInstaller/building/build_main.py
--- a/PyInstaller/building/build_main.py
+++ b/PyInstaller/building/build_main.py
@@ -159,32 +159,37 @@ def find_binary_dependencies(binaries, binding_redirects, import_packages):
     if compat.is_win:
         extra_libdirs.append(compat.base_prefix)
 
-    # On Windows with python >= 3.8, attempt to track calls to os.add_dll_directory() to obtain DLL search paths that
-    # are dynamically set during packages' initialization.
-    if compat.is_win and compat.is_py38:
-        added_dll_directories = []
-        _orig_add_dll_directory = os.add_dll_directory
+    # On Windows, packages' initialization code might register additional DLL search paths, either by modifying the
+    # `PATH` environment variable, or (on pythonn >= 3.8) by calling `os.add_dll_directory`. Therefore, we import
+    # all collected packages, and track changes made to the environment.
+    if compat.is_win:
+        # Track changes made via `os.add_dll_directory`.
+        if compat.is_py38:
+            added_dll_directories = []
+            _orig_add_dll_directory = os.add_dll_directory
 
-        def _pyi_add_dll_directory(path):
-            added_dll_directories.append(path)
-            return _orig_add_dll_directory(path)
+            def _pyi_add_dll_directory(path):
+                added_dll_directories.append(path)
+                return _orig_add_dll_directory(path)
 
-        os.add_dll_directory = _pyi_add_dll_directory
+            os.add_dll_directory = _pyi_add_dll_directory
 
-    # Import collected packages to set up environment
-    for package in import_packages:
-        try:
-            __import__(package)
-        except Exception:
-            pass
+        # Import collected packages to set up environment.
+        for package in import_packages:
+            try:
+                __import__(package)
+            except Exception:
+                pass
 
-    # Process extra search paths on Windows
-    if compat.is_win:
+        # Process extra search paths...
         # Directories added via os.add_dll_directory() calls.
         if compat.is_py38:
             logger.info("Extra DLL search directories (AddDllDirectory): %r", added_dll_directories)
             extra_libdirs += added_dll_directories
 
+            # Restore original function
+            os.add_dll_directory = _orig_add_dll_directory
+
         # Directories set via PATH environment variable.
         # NOTE: PATH might contain empty entries that need to be filtered out.
         path_directories = [directory for directory in os.environ.get("PATH", '').split(os.pathsep) if directory]


Test patch: