visual-chatgpt icon indicating copy to clipboard operation
visual-chatgpt copied to clipboard

Error expected str, bytes or os.PathLike object, not NoneType while executing command pip subprocess to install build dependencies

Open mg0324 opened this issue 1 year ago • 6 comments

(visgpt) mango@mangodeMacBook-Pro visual-chatgpt % pip install -r requirements.txt Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting langchain==0.0.101 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/18/74/13ce0e4ed8b27624ffbc6fbfe31b199bd1e63603ae6078fa601e26260a30/langchain-0.0.101-py3-none-any.whl (344 kB) Collecting torch==1.12.1 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c6/3d/458fd09b2c9f6a4192682b767b62394018711f5c44f366bfce6c3d250aca/torch-1.12.1-cp38-none-macosx_10_9_x86_64.whl (137.8 MB) Collecting torchvision==0.13.1 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c8/e8/7d686bdfbed1a180034e1c06cc68a318728380dc506e0cce0f1ec0716f6f/torchvision-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl (1.3 MB) Collecting gradio==3.20.1 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fc/e8/b8ae7ce27f661ea6dc979bfe185f1575a33a793dc1eb6a3e73ac8af0d382/gradio-3.20.1-py3-none-any.whl (14.3 MB) Collecting accelerate Downloading https://pypi.tuna.tsinghua.edu.cn/packages/0a/ca/96a50d122bd07d06c66e20e6bd275b5c8829602398f4e141f8755a25e31e/accelerate-0.17.1-py3-none-any.whl (212 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.8/212.8 kB 1.3 MB/s eta 0:00:00 Collecting addict Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6a/00/b08f23b7d7e1e14ce01419a467b583edbb93c6cdb8654e54a9cc579cd61f/addict-2.4.0-py3-none-any.whl (3.8 kB) Collecting albumentations Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4f/55/3c2ce84c108fc1d422afd6de153e4b0a3e6f96ecec4cb9afcf0284ce3538/albumentations-1.3.0-py3-none-any.whl (123 kB) Collecting basicsr Using cached https://pypi.tuna.tsinghua.edu.cn/packages/86/41/00a6b000f222f0fa4c6d9e1d6dcc9811a374cabb8abb9d408b77de39648c/basicsr-1.4.2.tar.gz (172 kB) Preparing metadata (setup.py) ... done Collecting controlnet-aux Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9a/94/46ea0a5379cd303b7a80eb9f5eb77237f6a6a53752779b5702acf3258024/controlnet_aux-0.0.1-py3-none-any.whl (26 kB) Collecting diffusers Using cached https://pypi.tuna.tsinghua.edu.cn/packages/eb/b4/5f719d41ebd5dc1c75a992e875cf7a8d402fb4acfe373eb04e4b7d805123/diffusers-0.14.0-py3-none-any.whl (737 kB) Collecting einops Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4b/f7/8557c683501eb14462b60e32d21fc51317ab2ba39688db1b8b7cebe1a274/einops-0.6.0-py3-none-any.whl (41 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.6/41.6 kB 1.4 MB/s eta 0:00:00 Collecting imageio Downloading https://pypi.tuna.tsinghua.edu.cn/packages/dc/0b/202efcb00ba89c749bb7b22634c917f29a58bdf052dabe8041f23743974f/imageio-2.26.0-py3-none-any.whl (3.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 1.4 MB/s eta 0:00:00 Collecting imageio-ffmpeg Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8e/ff/11f41411650d32b9d7051b41d8de6f6eb671e031214b09c1aaa47389682d/imageio_ffmpeg-0.4.8-py3-none-macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (22.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 22.5/22.5 MB 2.7 MB/s eta 0:00:00 Collecting invisible-watermark Downloading https://pypi.tuna.tsinghua.edu.cn/packages/08/98/9e8882afc4bc9cf25128f5870b1773427d46a25a5fc2a2e74f601ad3687e/invisible_watermark-0.1.5-py3-none-any.whl (1.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 3.4 MB/s eta 0:00:00 Collecting kornia Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a3/73/555cafa4fb2f0eb3cb9de779bbe7cb120d36209268225d6acaf43ccec89d/kornia-0.6.10-py2.py3-none-any.whl (612 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 612.0/612.0 kB 4.1 MB/s eta 0:00:00 Collecting numpy Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ff/98/7b71cabcce208f8c67398e812068524e473a143342583d55955cbb92b463/numpy-1.24.2-cp38-cp38-macosx_10_9_x86_64.whl (19.8 MB) Collecting omegaconf Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e3/94/1843518e420fa3ed6919835845df698c7e27e183cb997394e4a670973a65/omegaconf-2.3.0-py3-none-any.whl (79 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.5/79.5 kB 1.3 MB/s eta 0:00:00 Collecting open_clip_torch Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e7/78/bcd317fab28c8bd524c921dd176cb59f38a29a96628908749402486c9cb8/open_clip_torch-2.16.0-py3-none-any.whl (1.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 1.4 MB/s eta 0:00:00 Collecting openai Using cached https://pypi.tuna.tsinghua.edu.cn/packages/47/21/d909d8e92d1867f3daeb8d5c40936e3d37e27ad1ae187c754fefeadcbd4f/openai-0.27.2-py3-none-any.whl (70 kB) Collecting opencv-python Downloading https://pypi.tuna.tsinghua.edu.cn/packages/40/93/655af887bafece2a655998f53b9bd21ad94b0627d81d44aef35c79f40de6/opencv-python-4.7.0.72.tar.gz (91.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.1/91.1 MB 2.5 MB/s eta 0:00:00 ERROR: Error expected str, bytes or os.PathLike object, not NoneType while executing command pip subprocess to install build dependencies Installing build dependencies ... error ERROR: Exception: Traceback (most recent call last): File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper status = run_func(*args) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper return func(self, options, args) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 419, in run requirement_set = resolver.resolve( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve result = self._result = resolver.resolve( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in bool return bool(self._sequence) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool return any(self) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built candidate = func() File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in init super().init( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in init self.dist = self._prepare() File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare dist = self._prepare_distribution() File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 577, in _prepare_linked_requirement dist = _get_prepared_distribution( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution abstract_dist.prepare_distribution_metadata( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 38, in prepare_distribution_metadata self._prepare_build_backend(finder) File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 70, in _prepare_build_backend self.req.build_env.install_requirements( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/build_env.py", line 217, in install_requirements self._install_requirements( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/build_env.py", line 275, in _install_requirements call_subprocess( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/site-packages/pip/_internal/utils/subprocess.py", line 141, in call_subprocess proc = subprocess.Popen( File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/subprocess.py", line 858, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/Users/mango/miniconda/envs/visgpt/lib/python3.8/subprocess.py", line 1639, in _execute_child self.pid = _posixsubprocess.fork_exec( TypeError: expected str, bytes or os.PathLike object, not NoneType

mg0324 avatar Mar 26 '23 02:03 mg0324

hi bro, I met the same issue, have you solved it?

yasinshaw avatar Mar 30 '23 02:03 yasinshaw

no, i give up!

2023年3月30日 上午10:51,Yasin Shaw @.***> 写道:

hi bro, I met the same issue, have you solved it?

— Reply to this email directly, view it on GitHub https://github.com/microsoft/visual-chatgpt/issues/285#issuecomment-1489608111, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMPQWSDNHKGWDLSWBLCNZDW6TYLJANCNFSM6AAAAAAWH4D3V4. You are receiving this because you authored the thread.

mg0324 avatar Mar 31 '23 15:03 mg0324

no, i give up! 2023年3月30日 上午10:51,Yasin Shaw @.***> 写道: hi bro, I met the same issue, have you solved it? — Reply to this email directly, view it on GitHub <#285 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMPQWSDNHKGWDLSWBLCNZDW6TYLJANCNFSM6AAAAAAWH4D3V4. You are receiving this because you authored the thread.

hi bro, I printed the variables, and found that my mirror settings contains some blank, and I fixed it. Maybe it cased this issue. you can check it, hope it will give you some help.

yasinshaw avatar Apr 02 '23 14:04 yasinshaw

thk, now i see!

2023年4月2日 下午10:53,Yasin Shaw @.***> 写道:

no, i give up! … x-msg://8/# 2023年3月30日 上午10:51,Yasin Shaw @.***> 写道: hi bro, I met the same issue, have you solved it? — Reply to this email directly, view it on GitHub <#285 (comment) https://github.com/microsoft/visual-chatgpt/issues/285#issuecomment-1489608111>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMPQWSDNHKGWDLSWBLCNZDW6TYLJANCNFSM6AAAAAAWH4D3V4 https://github.com/notifications/unsubscribe-auth/ABMPQWSDNHKGWDLSWBLCNZDW6TYLJANCNFSM6AAAAAAWH4D3V4. You are receiving this because you authored the thread.

hi bro, I printed the variables, and found that my mirror settings contains some blank, and I fixed it. Maybe it cased this issue. you can check it, hope it will give you some help.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/visual-chatgpt/issues/285#issuecomment-1493363259, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMPQWQ22QIKCOG73MZVBETW7GHHFANCNFSM6AAAAAAWH4D3V4. You are receiving this because you authored the thread.

mg0324 avatar Apr 02 '23 15:04 mg0324

hi bro ,have you solved it?

st929 avatar Jul 19 '23 08:07 st929

hi bro ,have you solved it?

you can look my comment above

yasinshaw avatar Jul 20 '23 02:07 yasinshaw