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

Function calls in Pyxel fail when using Maturin 1.7.1 or later #2290

Open
2 tasks
kitao opened this issue Nov 4, 2024 · 0 comments
Open
2 tasks

Function calls in Pyxel fail when using Maturin 1.7.1 or later #2290

kitao opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kitao
Copy link

kitao commented Nov 4, 2024

Bug Description

Hi.
I tried compiling Pyxel with Maturin 1.7.1+.

I changed an option in Pyxel's makefile from --skip-auditwheel to --auditwheel skip and then the compilation finished.
But when run an application, the following error occurs:

    pyxel.init(300, 300, title="hoge")
    ^^^^^^^^^^
AttributeError: module 'pyxel' has no attribute 'init'

Maturin is called from Pyxel's makefile. https://github.com/kitao/pyxel/blob/main/Makefile#L102

The directory structure of Pyxel may no longer work correctly with Maturin 1.7.1 or later.
https://github.com/kitao/pyxel/blob/main/python/pyproject.toml#L35-L38

kitao/pyxel#574

Your maturin version (maturin --version)

1.7.0 → 1.7.0+

Your Python version (python -V)

Python 3.12.3

Your pip version (pip -V)

pip 24.2

What bindings you're using

pyo3

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

Just build Pyxel and use it.

  • Build with make
  • pyxel edit (which calls some Pyxel functions and invoke the error)
@kitao kitao added the bug Something isn't working label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant