IronLanguages / IronLanguages/ironpython3

Ipyc not including json in standalone executable

Open
#1,748 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ipyc
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
  1. Create a python script that imports json
  2. Compile using ipyc your-python-file.py /target:exe /standalone
  3. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.