[solution] psutil missing in build for macOS Intel, ptx2pdf version 3.0.39
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- build-system, desktop
Research direction
Start with the packaging configuration for the macOS PTXprint.app build and inspect the import path through ptxprint/multiprint.py, where the failure occurs. Check how PyInstaller handles psutil and add the required packaging entry if needed. Done means rebuilding the Intel macOS app and launching it without the ModuleNotFoundError.
Written by the indexing model from the issue text.
Description
PROBLEM:
mm@MMs-iMac ptx2pdf-3.0.39 % ./dist/PTXprint.app/Contents/MacOS/PTXprint-app
Adding .../_PTXprint
Traceback (most recent call last):
File "ptxprint.py", line 20, in <module>
File "ptxprint/main.py", line 533, in main
File "pyimod02_importers.py", line 457, in exec_module
File "ptxprint/gtkview.py", line 58, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "ptxprint/multiprint.py", line 10, in <module>
ModuleNotFoundError: No module named 'psutil'
[PYI-10615:ERROR] Failed to execute script 'ptxprint' due to unhandled exception: No module named 'psutil'
[PYI-10615:ERROR] Traceback:
Traceback (most recent call last):
File "ptxprint.py", line 20, in <module>
File "ptxprint/main.py", line 533, in main
File "pyimod02_importers.py", line 457, in exec_module
File "ptxprint/gtkview.py", line 58, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "ptxprint/multiprint.py", line 10, in <module>
ModuleNotFoundError: No module named 'psutil'
SOLUTION:
% python3 -m venv _venv
% source ./_venv/bin/activate
% python3 -m pip install psutil
Collecting psutil
Downloading psutil-7.2.2-cp36-abi3-macosx_10_9_x86_64.whl.metadata (22 kB)
Downloading psutil-7.2.2-cp36-abi3-macosx_10_9_x86_64.whl (129 kB)
Installing collected packages: psutil
Successfully installed psutil-7.2.2
[notice] A new release of pip is available: 26.1.2 -> 26.2.1
[notice] To update, run: pip install --upgrade pip
% python3 -c "import psutil; print(psutil.__version__)"
7.2.2
Or maybe missing in pyinstaller ? (Not tested)
hiddenimports=[
"psutil",
]
- Dominant language
- Python
- Stars
- 33
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sillsdev/ptx2pdf
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
-
Publications Tab Open
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 64/100
All issues in sillsdev/ptx2pdf
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100