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

Build failure: python312Packages.etebase (for etesync-dav) #328382

Closed
wanderer opened this issue Jul 19, 2024 · 1 comment · Fixed by #329671
Closed

Build failure: python312Packages.etebase (for etesync-dav) #328382

wanderer opened this issue Jul 19, 2024 · 1 comment · Fixed by #329671
Labels

Comments

@wanderer
Copy link
Contributor

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix shell nixpkgs#etesync-dav or build

Build log

Check whether the following modules can be imported: etebase
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 1, in <lambda>
  File "/nix/store/z7xxy35k7620hs6fn6la5fg2lgklv72l-python3-3.12.4/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/nix/store/v3cgxmb6n78vyc8rq7gd7irgl423xlhd-python3.12-etebase-0.31.6/lib/python3.12/site-packages/etebase/__init__.py", line 6, in <module>
    from .etebase_python import CollectionAccessLevel, PrefetchOption, Utils  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: /nix/store/v3cgxmb6n78vyc8rq7gd7irgl423xlhd-python3.12-etebase-0.31.6/lib/python3.12/site-packages/etebase/etebase_python.cpython-312-x86_64-linux-gnu.so: undefined symbol: _PyUnicode_Ready

Notify maintainers

@thyol
@Valodim

Metadata

 - host os: `Linux 6.6.39-gnu, NixOS, 24.11 (Vicuna), 24.11.20240716.ad0b5ee`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(null): `"nixos"`
 - nixpkgs: `/nix/store/70y8v9qfn34sdfsnwh3l9772lk4rpfiy-source`

@wanderer wanderer added the 0.kind: build failure A package fails to build label Jul 19, 2024
@eclairevoyant eclairevoyant changed the title Build failure: etesync-dav Build failure: python312Packages.etebase (for etesync-dav) Jul 20, 2024
@ghpzin
Copy link
Contributor

ghpzin commented Jul 23, 2024

Looked through etebase upstream and there is an issue about it:
etesync/etebase-py#50

It mentioned that support for python312 in rust-cpython (that is used in flapigen-rs) is unlikely.
But 3 week ago PR was merged that supposedly fixed python312 support (also has something related to _PyUnicode_Ready from this error):
dgrunwald/rust-cpython#295
Tag with fix:
https://github.com/dgrunwald/rust-cpython/tree/0.7.2

So there may be an upstream fix, if somebody who understands it all can pass it through flapigen-rs and etebase-py.

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

Successfully merging a pull request may close this issue.

3 participants