原因: Mac 在升级为macOS Big Sur系统版本11.1后,之前旧版本的Homebrew在新系统不适配,报in `initialize’: Version value must be a string; got a NilClass ()错误 解决办法: 先给自己homebrew文件夹的权限 sudo chown -R $"你的用户名":admin /usr/local/homebrew 更新到最新版本的Homebrew就可以了 brew ...
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in `initialize': Version value must be a string; got a NilClass () (TypeError) 在网上搜索以后,有的说是因为brew只支持正式发行版。/usr/local/Homebrew/Library/Homebrew/version.rb文件中第368行直接用@version = '10.14.1'给定一个版本号就可以了。
我们快捷打开version.rb这个文件的所在路径并编辑,/usr/local/Homebrew/Library/Homebrew/version.rb,把系统版本写死即可解决。 definitialize(val)raiseTypeError,"Version value must be a string; got a#{val.class}(#{val})"unlessval.respond_to?(:to_str)# 正式版发行版才不会报错,我们暂时写死macOS版本,...
2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in`new'1:from/usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:26:in`initialize' /usr/local/Homebrew/Library/Homebrew/version.rb:368:in`initialize':Version value must be a string;got aNilClass()(TypeError) 解决办法 从错误中可...
version must be a 10 character string问题补充:匿名 2013-05-23 12:21:38 版本必须是10个字符的字符串 匿名 2013-05-23 12:23:18 版本必须是一个10个字符的字符串 匿名 2013-05-23 12:24:58 版本必须是10字符串 匿名 2013-05-23 12:26:38 必须为 10 个字符的字符串版本。 匿名 ...
Version value must be a string; got a NilClass () (TypeError) 执行命令brew update-reset
Version value must be a string; got a NilClass () (TypeError),执行命令brewupdate-reset
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in `initialize': Version value must be a string; got a NilClass () (TypeError) I am using latest macOS version Big Sur 11.2.2 I think this problem is solved . I know that all Big Sur version faced this issue. ...
编译报错“The version number of the module must be a string, but received a xxx.” 错误描述 模块的版本号必须为string类……欲了解更多信息欢迎访问华为HarmonyOS开发者官网
(msg) error in pendulum setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in python-dateutil (>=2.6.0.0,<3.0.0.0) at (>=2.6.0.0,<3.0.0.0) --- Command "python setup.py egg_info" failed ...