pyinstaller / pyinstaller/pyinstaller

The Built application cannot load module scipy.sparse.linalg

Open
#2,944 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:hooks
Dominant language
Python
Stars
13.1k
Forks
2k
Avg merge
1d 3h
Merged PRs (30d)
11

Description

The error occurred when running the application after it was successfully built.

Following is the minimal code which shows the error.
import scipy.sparse.linalg

The error reads
File "messagestream.pxd", line 5, in init scipy.optimize._trlib._trlib ImportError: No module named messagestream [12496] Failed to execute script Sparse

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the minimal import scipy.sparse.linalg application with the listed Python, PyInstaller, SciPy, and Windows versions, then inspect the resulting messagestream traceback. Done means the built application starts successfully and loads scipy.sparse.linalg without the missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.