microsoft / showwhy

MIT License
200 stars 28 forks source link

Poetry installation failed. #424

Closed wuzhipeng2014 closed 7 months ago

wuzhipeng2014 commented 11 months ago

failed to solve: process "/bin/sh -c curl -sSL https://install.python-poetry.org | python - --version 1.3.2" did not complete successfully: exit code: 1

Exception: Traceback (most recent call last): File "/home/q/test/.local/share/pypoetry/venv/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 228, in main status = self.run(options, args) File "/home/q/test/.local/share/pypoetry/venv/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 241, in run with self._build_session(options) as session: File "/home/q/test/.local/share/pypoetry/venv/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 78, in _build_session if options.cache_dir else None File "/home/q/test/anaconda3/envs/tf2_2/lib/python3.6/posixpath.py", line 80, in join a = os.fspath(a) TypeError: expected str, bytes or os.PathLike object, not int

Traceback:

File "", line 923, in main File "", line 560, in run File "", line 581, in install File "/home/q/test/anaconda3/envs/tf2_2/lib/python3.6/contextlib.py", line 81, in enter return next(self.gen) File "", line 653, in make_env File "", line 639, in make_env File "", line 352, in make File "", line 375, in pip File "", line 372, in python File "", line 367, in run

dayesouza commented 10 months ago

Hi @wuzhipeng2014! Only thing I can see different in your installation is that you're using python 3.6. We used 3.8+, can you try with a newer version and see if you get the same error?