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

arm-Linux安装插件失败 #2

Closed
Peins opened this issue Mar 13, 2023 · 9 comments
Closed

arm-Linux安装插件失败 #2

Peins opened this issue Mar 13, 2023 · 9 comments

Comments

@Peins
Copy link
Contributor

Peins commented Mar 13, 2023

执行:# nb plugin install nonebot-plugin-chatgpt-on-qq
报错部分: 升级pip试了也不行

Building wheels for collected packages: tiktoken
  Building wheel for tiktoken (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for tiktoken (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [37 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-cpython-311
      creating build/lib.linux-aarch64-cpython-311/tiktoken
      copying tiktoken/core.py -> build/lib.linux-aarch64-cpython-311/tiktoken
      copying tiktoken/__init__.py -> build/lib.linux-aarch64-cpython-311/tiktoken
      copying tiktoken/load.py -> build/lib.linux-aarch64-cpython-311/tiktoken
      copying tiktoken/model.py -> build/lib.linux-aarch64-cpython-311/tiktoken
      copying tiktoken/registry.py -> build/lib.linux-aarch64-cpython-311/tiktoken
      creating build/lib.linux-aarch64-cpython-311/tiktoken_ext
      copying tiktoken_ext/openai_public.py -> build/lib.linux-aarch64-cpython-311/tiktoken_ext
      running egg_info
      writing tiktoken.egg-info/PKG-INFO
      writing dependency_links to tiktoken.egg-info/dependency_links.txt
      writing requirements to tiktoken.egg-info/requires.txt
      writing top-level names to tiktoken.egg-info/top_level.txt
      reading manifest file 'tiktoken.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching 'Makefile'
      adding license file 'LICENSE'
      writing manifest file 'tiktoken.egg-info/SOURCES.txt'
      copying tiktoken/py.typed -> build/lib.linux-aarch64-cpython-311/tiktoken
      running build_ext
      running build_rust
      error: can't find Rust compiler
      
      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
      
      To update pip, run:
      
          pip install --upgrade pip
      
      and then retry package installation.
      
      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tiktoken
Failed to build tiktoken
ERROR: Could not build wheels for tiktoken, which is required to install pyproject.toml-based projects
@Peins
Copy link
Contributor Author

Peins commented Mar 13, 2023

知道了,armLinux不支持。openai/tiktoken#23

@Suxmx
Copy link
Owner

Suxmx commented Mar 13, 2023

晚上我把这个库去掉再发一个版本吧

@Peins
Copy link
Contributor Author

Peins commented Mar 13, 2023

晚上我把这个库去掉再发一个版本吧

去掉tiktokens,支持arm的版本么?

@Suxmx
Copy link
Owner

Suxmx commented Mar 13, 2023

晚上我把这个库去掉再发一个版本吧

去掉tiktokens,支持arm的版本么?

对 现在tiktoken主要的作用是检测用户历史记录的长度并且定期清除,感觉有点低能。
准备改成保留n条历史记录,多了再清除。
(不过去掉tiktoken是不是就支持armlinux我也不知道orz)

@Peins Peins changed the title nb-cli安装插件失败 arm-Linux安装插件失败 Mar 13, 2023
@Peins
Copy link
Contributor Author

Peins commented Mar 13, 2023

建议再加一个cf workers的支持,只用加一句就行,参考https://zhuanlan.zhihu.com/p/613370610

#域名后面这个/v1感觉不用加
openai.api_base = "https://自己的域名/v1"

@Suxmx
Copy link
Owner

Suxmx commented Mar 13, 2023

建议再加一个cf workers的支持,只用加一句就行,参考https://zhuanlan.zhihu.com/p/613370610

#域名后面这个/v1感觉不用加
openai.api_base = "https://自己的域名/v1"

ok

@Peins
Copy link
Contributor Author

Peins commented Mar 13, 2023

好像0.3.1新版本支持aarch64 了
openai/tiktoken#23 (comment)

@Suxmx
Copy link
Owner

Suxmx commented Mar 13, 2023

好像0.3.1新版本支持aarch64 了 openai/tiktoken#23 (comment)

已经去掉了.. 你现在试一下?

@Peins
Copy link
Contributor Author

Peins commented Mar 13, 2023

好像0.3.1新版本支持aarch64 了 openai/tiktoken#23 (comment)

已经去掉了.. 你现在试一下?

0.3.1新版本支持aarch64了,所以当时就安装成功了,已经在用

@Peins Peins closed this as completed Mar 13, 2023
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

2 participants