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

poetry install issue on windows #8

Open
prabhu opened this issue Sep 29, 2023 · 4 comments
Open

poetry install issue on windows #8

prabhu opened this issue Sep 29, 2023 · 4 comments
Assignees

Comments

@prabhu
Copy link
Contributor

prabhu commented Sep 29, 2023

Collecting uvloop<0.18.0,>=0.17.0 (from appthreat-chen)
  Downloading uvloop-0.17.0.tar.gz (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 2.6 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "C:\Users\prabhu\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\prabhu\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\prabhu\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\prabhu\AppData\Local\Temp\pip-build-env-kr6yxyu5\overlay\Lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\prabhu\AppData\Local\Temp\pip-build-env-kr6yxyu5\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "C:\Users\prabhu\AppData\Local\Temp\pip-build-env-kr6yxyu5\overlay\Lib\site-packages\setuptools\build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "C:\Users\prabhu\AppData\Local\Temp\pip-build-env-kr6yxyu5\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 8, in <module>
      RuntimeError: uvloop does not support Windows at the moment
      [end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
@prabhu
Copy link
Contributor Author

prabhu commented Oct 11, 2023

@cerrussell, I have made some improvements to make the project install on windows. But could you also take a look at your convenience?

@cerrussell
Copy link
Member

cerrussell commented Oct 12, 2023

@prabhu This workflow might be helpful for testing the Windows install...
Here's a run on my fork. As you can see, the poetry install runs ok, but chen --download and chen --download --with-science have some issues.

As of now, python 3.8 - 3.10 are able to do chen --download while 3.11 and 3.12 cannot as they can't build a wheel for rocksdb-py.

Chen --download --with-science doesn't work on any of the versions due to not being able to build a wheel for pygraphviz.

@prabhu prabhu mentioned this issue Oct 12, 2023
@prabhu
Copy link
Contributor Author

prabhu commented Oct 12, 2023

Thanks @cerrussell. Have removed rocksdb with this PR. PyGraphviz is a difficult dependency to install on Windows. Scientific work is too difficult for Windows users anyways, so that we can document and focus on Linux and mac users.

https://pygraphviz.github.io/documentation/stable/install.html

@prabhu
Copy link
Contributor Author

prabhu commented Oct 15, 2023

Try the new conda-based installer which is working reliably.

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

When branches are created from issues, their pull requests are automatically linked.

2 participants