简化的安装在Gitlab CI上失败了
在gitlab ci上,在升级sleatlit
to to 1.10.0之后,我在运行pip install intermlit stream
:我检查了错误的编码字符时,我有以下错误
ERROR: Exception:
Traceback (most recent call last):
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
status = run_func(*args)
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 413, in run
pycompile=options.compile,
File "/builds/lproject/venv/lib/python3.6/site-packages/pip/_internal/req/__init__.py", line 81, in install_given_reqs
pycompile=pycompile,
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 810, in install
requested=self.user_supplied,
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/operations/install/wheel.py", line 737, in install_wheel
requested=requested,
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/operations/install/wheel.py", line 589, in _install_wheel
file.save()
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/operations/install/wheel.py", line 383, in save
if os.path.exists(self.dest_path):
File "/builds/project/venv/lib/python3.6/genericpath.py", line 19, in exists
os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character '\U0001f4f9' in position 76: ordinal not in range(128)
On GitLab CI, after upgrading streamlit
to 1.10.0, I have the following error while running pip install streamlit
:
ERROR: Exception:
Traceback (most recent call last):
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
status = run_func(*args)
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 413, in run
pycompile=options.compile,
File "/builds/lproject/venv/lib/python3.6/site-packages/pip/_internal/req/__init__.py", line 81, in install_given_reqs
pycompile=pycompile,
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 810, in install
requested=self.user_supplied,
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/operations/install/wheel.py", line 737, in install_wheel
requested=requested,
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/operations/install/wheel.py", line 589, in _install_wheel
file.save()
File "/builds/project/venv/lib/python3.6/site-packages/pip/_internal/operations/install/wheel.py", line 383, in save
if os.path.exists(self.dest_path):
File "/builds/project/venv/lib/python3.6/genericpath.py", line 19, in exists
os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character '\U0001f4f9' in position 76: ordinal not in range(128)
I checked the faulty encoded character and it corresponds to the video camera emoji ???? = \U0001f4f9
.
How can I solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该错误是由简报1.10.0引入的。摄像机表情符号已添加到
简化hello
命令之后,介绍了多页面功能: https://github.com/streamlit/streamlit/streamlit/tree/release/release/1.10.0/lib/streamlit/streamlit/hello/hello/pages在我的CI中,编码如下:
我使用它们重置它们:
现在它有效。
感谢比尔的答案。
The bug has been introduced by Streamlit 1.10.0. The video camera emoji has been added to the
streamlit hello
command after the introduction of the multi-page feature: https://github.com/streamlit/streamlit/tree/release/1.10.0/lib/streamlit/hello/pagesIn my CI, the encodings were the following:
I reset them using:
and now it works.
Thanks to Bill's answer.