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

Python - Failing to build ModuleNotFoundError: No module named 'cffi' #6

Open
DavidScann opened this issue Oct 15, 2023 · 1 comment

Comments

@DavidScann
Copy link

DavidScann commented Oct 15, 2023

Python version: 3.12
Platform: Win64

Full logs:

PS C:\Users\tavio\Downloads> pip install dpss
Collecting dpss
  Using cached dpss-0.22.0.tar.gz (150 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: dpss
  Building wheel for dpss (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for dpss (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      Running `maturin pep517 build-wheel -i C:\Users\tavio\AppData\Local\Programs\Python\Python312\python.exe --compatibility off`
         Compiling autocfg v1.1.0
         Compiling crossbeam-utils v0.8.8
         Compiling cfg-if v1.0.0
         Compiling lazy_static v1.4.0
         Compiling scopeguard v1.1.0
         Compiling rayon-core v1.9.1
         Compiling num_cpus v1.13.1
         Compiling either v1.6.1
         Compiling itertools v0.10.3
         Compiling memoffset v0.6.5
         Compiling crossbeam-epoch v0.9.8
         Compiling rayon v1.5.1
         Compiling crossbeam-channel v0.5.4
         Compiling crossbeam-deque v0.8.1
         Compiling subset_sum v0.22.0 (C:\Users\tavio\AppData\Local\Temp\pip-install-vt8ik074\dpss_84d1f0c3ac4c4da8b3452018dafd92c1)
          Finished release [optimized] target(s) in 7.60s
      💥 maturin failed
        Caused by: Failed to generate cffi declarations using C:\Users\tavio\AppData\Local\Programs\Python\Python312\python.exe: exit code: 1
      --- Stdout:

      --- Stderr:
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
      ModuleNotFoundError: No module named 'cffi'

      📦 Including license file "LICENSE"
      🔗 Found cffi bindings
      ðŸ\x90\x8d Using CPython 3.12 at C:\Users\tavio\AppData\Local\Programs\Python\Python312\python.exe to generate the cffi bindings
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Users\\tavio\\AppData\\Local\\Programs\\Python\\Python312\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for dpss
Failed to build dpss
ERROR: Could not build wheels for dpss, which is required to install pyproject.toml-based projects

What I tried:

  • Installing and reinstalling Rust
  • Manually installing cffi (despite it already having been installed prior to installing dpss)
  • Installing package maturin from PyPI
@xhayper xhayper mentioned this issue Oct 15, 2023
@europeanplaice
Copy link
Owner

I haven't checked whether this library works with Python 3.12. I'll investigate this issue.

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

Successfully merging a pull request may close this issue.

2 participants