Skip to content

pip install fails #370

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

Closed
screig opened this issue Jan 24, 2025 · 6 comments
Closed

pip install fails #370

screig opened this issue Jan 24, 2025 · 6 comments

Comments

@screig
Copy link

screig commented Jan 24, 2025

Python 3.9.13
Windows
pip 24.3.1

(.venv) PS C:\Users\sc\_CODE\testing_curve_solvers> pip install proxsuite
Collecting proxsuite
  Downloading proxsuite-0.7.0-0-cp39-cp39-win_amd64.whl.metadata (12 kB)
Collecting cmeel (from proxsuite)
  Downloading cmeel-0.56.0-py3-none-any.whl.metadata (4.7 kB)
Requirement already satisfied: numpy in c:\users\sc\_code\testing_curve_solvers\.venv\lib\site-packages (from proxsuite) (2.0.2)
Collecting scipy (from proxsuite)
  Downloading scipy-1.13.1-cp39-cp39-win_amd64.whl.metadata (60 kB)
Requirement already satisfied: tomli>=2.1.0 in c:\users\sc\_code\testing_curve_solvers\.venv\lib\site-packages (from cmeel->proxsuite) (2.2.1)
Downloading proxsuite-0.7.0-0-cp39-cp39-win_amd64.whl (7.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 9.7 MB/s eta 0:00:00
Downloading cmeel-0.56.0-py3-none-any.whl (20 kB)
Downloading scipy-1.13.1-cp39-cp39-win_amd64.whl (46.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.2/46.2 MB 16.5 MB/s eta 0:00:00
Installing collected packages: scipy, cmeel, proxsuite
ERROR: Exception:
Traceback (most recent call last):
  File "c:\Users\sc\_CODE\testing_curve_solvers\.venv\lib\site-packages\pip\_internal\cli\base_command.py", line 105, in _run_wrapper
    status = _inner_run()
  File "c:\Users\sc\_CODE\testing_curve_solvers\.venv\lib\site-packages\pip\_internal\cli\base_command.py", line 96, in _inner_run
    return self.run(options, args)
  File "c:\Users\sc\_CODE\testing_curve_solvers\.venv\lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
    return func(self, options, args)
  File "c:\Users\sc\_CODE\testing_curve_solvers\.venv\lib\site-packages\pip\_internal\commands\install.py", line 457, in run
    installed = install_given_reqs(
  File "c:\Users\sc\_CODE\testing_curve_solvers\.venv\lib\site-packages\pip\_internal\req\__init__.py", line 70, in install_given_reqs
    requirement.install(
  File "c:\Users\sc\_CODE\testing_curve_solvers\.venv\lib\site-packages\pip\_internal\req\req_install.py", line 867, in install
    install_wheel(
  File "c:\Users\sc\_CODE\testing_curve_solvers\.venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 732, in install_wheel       
    _install_wheel(
  File "c:\Users\sc\_CODE\testing_curve_solvers\.venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 590, in _install_wheel      
    file.save()
  File "c:\Users\sc\_CODE\testing_curve_solvers\.venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 380, in save
    shutil.copyfileobj(f, dest, blocksize)
  File "C:\Users\sc\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 205, in copyfileobj
    buf = fsrc_read(length)
  File "C:\Users\sc\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 924, in read
    data = self._read1(n)
  File "C:\Users\sc\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1014, in _read1
    self._update_crc(data)
  File "C:\Users\sc\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1014, in _read1
  File "C:\Users\sc\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1014, in _read1
    self._update_crc(data)
  File "C:\Users\sc\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 942, in _update_crc
    raise BadZipFile("Bad CRC-32 for file %r" % self.name)
zipfile.BadZipFile: Bad CRC-32 for file 'cmeel.prefix/lib/cmake/proxsuite/proxsuiteTargets-debug.cmake'

@screig
Copy link
Author

screig commented Jan 24, 2025

FYI v0.6.7 installs

@jcarpent
Copy link
Member

jcarpent commented Feb 9, 2025

@nim65s Could you handle this issue?

@nim65s
Copy link
Member

nim65s commented Feb 10, 2025

I can't do anything about windows for now, sorry.

@jcarpent
Copy link
Member

One quick fix is to move to conda instead of pip for installing proxsuite.

@nim65s
Copy link
Member

nim65s commented Feb 12, 2025

yes, or use WSL

@jcarpent
Copy link
Member

@screig Please look at this stack overflow issue to solve your local problem: https://stackoverflow.com/questions/5624669/strange-badzipfile-bad-crc-32-problem

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

No branches or pull requests

3 participants