Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IronPython.Runtime.Exceptions.ImportException: 'No module named 'pygame'' #1674

Open
1 of 3 tasks
Michael-Tang-2009 opened this issue Mar 19, 2023 · 3 comments
Open
1 of 3 tasks

Comments

@Michael-Tang-2009
Copy link

Michael-Tang-2009 commented Mar 19, 2023

Prerequisites

The issue tracker is used to report bugs and request new features, NOT to ask questions.

Questions should be posted in Discussions or to the users mailing list which can be accessed at
https://ironpython.groups.io/g/users.

  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you perform a cursory search?

Description

I downloaded the pygame package using the pip virtual environment, and copied the entire Lib folder generated by the pip virtual environment to the Debug folder and referenced it in the program. However, why would an error be reported?

001

Steps to Reproduce

  1. Install Ironpython 3.4 in nuget package manager
  2. Run "python - m venv env" to create a python virtual environment
  3. Run "env Scripts activate. bat" to enable the Python virtual environment
  4. Run "pip install pygame" to download the latest package for pygame
  5. Copy the Lib folder under the env folder created by pip to the project output path

Versions

IronPython 3.4
Python 3.9 (64-bit)

@slozier
Copy link
Contributor

slozier commented Mar 27, 2023

The ImportError you're seeing occurs when the import system fails to find the module (usually because system paths are not properly set). However, pygame uses of C extensions and so won't work with IronPython.

@Michael-Tang-2009
Copy link
Author

So you means that IronPython is not support 'pygame' lib?

@GeorgeS2019
Copy link

GeorgeS2019 commented Apr 9, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants