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

error with Apple M1 #39

Open
virologist opened this issue Jan 12, 2024 · 0 comments
Open

error with Apple M1 #39

virologist opened this issue Jan 12, 2024 · 0 comments

Comments

@virologist
Copy link

Hi, @joshquick @aresti

I got an error on my Mac M1 when i trieding to install it.

Collecting reportlab<4,>=3 (from primalscheme)
  Downloading reportlab-3.6.13.tar.gz (4.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 56.8 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/vn/c8v46nts0ql7qr5yqg81xtfm0000gn/T/pip-install-aev4uxp1/reportlab_9772f22759564f5180ff38f0cc776ba2/setup.py", line 866, in <module>
          main()
        File "/private/var/folders/vn/c8v46nts0ql7qr5yqg81xtfm0000gn/T/pip-install-aev4uxp1/reportlab_9772f22759564f5180ff38f0cc776ba2/setup.py", line 774, in main
          ftv, I, L = inc_lib_dirs('freetype')
                      ^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/vn/c8v46nts0ql7qr5yqg81xtfm0000gn/T/pip-install-aev4uxp1/reportlab_9772f22759564f5180ff38f0cc776ba2/setup.py", line 256, in __call__
          ensureResourceStuff('m1stuff.tar.gz','m1stuff','tar',
        File "/private/var/folders/vn/c8v46nts0ql7qr5yqg81xtfm0000gn/T/pip-install-aev4uxp1/reportlab_9772f22759564f5180ff38f0cc776ba2/setup.py", line 437, in ensureResourceStuff
          tarfile.open(fileobj=url2data(url), mode='r:gz').extractall(path=target)
                               ^^^^^^^^^^^^^
        File "/private/var/folders/vn/c8v46nts0ql7qr5yqg81xtfm0000gn/T/pip-install-aev4uxp1/reportlab_9772f22759564f5180ff38f0cc776ba2/setup.py", line 415, in url2data
          raw = remotehandle.read()
                ^^^^^^^^^^^^^^^^^^^
        File "/Users/biodog/miniconda3/envs/bio/lib/python3.12/http/client.py", line 488, in read
          s = self._safe_read(self.length)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/biodog/miniconda3/envs/bio/lib/python3.12/http/client.py", line 635, in _safe_read
          raise IncompleteRead(data, amt-len(data))
      http.client.IncompleteRead: IncompleteRead(343681 bytes read, 768243 more expected)
      ##### setup-python-3.12.0-macosx-11.0-arm64: ================================================
      ##### setup-python-3.12.0-macosx-11.0-arm64: Attempting build of _rl_accel
      ##### setup-python-3.12.0-macosx-11.0-arm64: extensions from 'src/rl_addons/rl_accel'
      ##### setup-python-3.12.0-macosx-11.0-arm64: ================================================
      ##### setup-python-3.12.0-macosx-11.0-arm64: ===================================================
      ##### setup-python-3.12.0-macosx-11.0-arm64: Attempting build of _renderPM
      ##### setup-python-3.12.0-macosx-11.0-arm64: extensions from 'src/rl_addons/renderPM'
      ##### setup-python-3.12.0-macosx-11.0-arm64: ===================================================
      ##### setup-python-3.12.0-macosx-11.0-arm64: will use package libart 2.3.21
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Yang

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

1 participant