IronLanguages / IronLanguages/ironpython3
Ipyc not including json in standalone executable
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2.8k
- Forks
- 316
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 1
Description
Description
IronPython is not including the json module in a standalone executable when compiling one, resulting in an error message.
Steps to Reproduce
- Create a python script that imports json
- Compile using ipyc your-python-file.py /target:exe /standalone
- Run your-python-file.exe
Expected behavior:
Python script works
Actual behavior:
IronPython outputs this error message: Error occurred: No module named 'json'
Version Information
Microsoft Windows
Version 22H2 (OS Build 22621.2283)
IronPython 3.4.1 (3.4.1.1000)
[.NETFramework,Version=v4.6.2 on .NET Framework 4.8.9181.0 (64-bit)]
Contributor guide
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.
Research direction
Reproduce the issue with the reported ipyc command using a script that imports json, then inspect the standalone executable packaging path for module inclusion. Done means the generated executable runs successfully and imports json without reporting No module named 'json'.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, python
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100