Stable Diffusion在Mac上运行时的错误解决-1

Standard

在Mac上用webui.sh运行Stable Diffusion时出现文中最后这大段的错误时,只需要在“终端”中运行“xcode-select –install”,就会安装Xcode的命令行工具更新。安装好后就能正常启动SD了。

解决方法参考自:https://developer.apple.com/forums/thread/673827

错误如下:

################################################################

Launching launch.py…

################################################################

Python 3.10.6 (v3.10.6:9c7b4bd164, Aug  1 2022, 17:13:48) [Clang 13.0.0 (clang-1300.0.29.30)]

Commit hash: <none>

Traceback (most recent call last):

  File “/Users/bianqianwei/Desktop/StableDiffusion/stable-diffusion-webui/launch.py”, line 355, in <module>

    prepare_environment()

  File “/Users/bianqianwei/Desktop/StableDiffusion/stable-diffusion-webui/launch.py”, line 288, in prepare_environment

    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_commit_hash)

  File “/Users/bianqianwei/Desktop/StableDiffusion/stable-diffusion-webui/launch.py”, line 143, in git_clone

    current_hash = run(f'”{git}” -C “{dir}” rev-parse HEAD’, None, f”Couldn’t determine {name}’s hash: {commithash}”).strip()

  File “/Users/bianqianwei/Desktop/StableDiffusion/stable-diffusion-webui/launch.py”, line 97, in run

    raise RuntimeError(message)

RuntimeError: Couldn’t determine Stable Diffusion’s hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf.

Command: “git” -C “/Users/bianqianwei/Desktop/StableDiffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai” rev-parse HEAD

Error code: 1

stdout: <empty>

stderr: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Mac安装PhoneGap

Standard

网上提的都中间少一句多几句的,下面的方法是我亲测的,管用!

1、像官网上说的,先下载NodeJS并安装。当安装过程中出现“安装器无法安装软件,因为找不到要安装的软件”,说明你因为网速太慢,只下了半个NodeJS浏览器就说下完了,你装的只是半个程序当然装不上。这时你需要一个下载器,比如迅雷,尽管速度可能一样慢,但它起码能给你把程序下全。

2、下载PhoneGap,可以找Archives栏目下的比较新的安装包。下载解压后,找到解压后文件夹中的”lib -> iOS -> bin”中的create文件,双击执行,复制下图虚线所标示位置地址。2014-11-9

3、建一个你准备放Xcode项目的文件夹。

4、打开一个新的“控制台Console”,把刚才的地址粘贴进去,再在后面加上你刚建的Xcode项目文件夹地址,再加上Bundle Identifier,再加上项目名称,最终形成一个很长的命令行… 点击回车执行后就能在你刚刚建的Xcode里出现一个PhoneGap项目啦!
2014-11-9-2

搞网络搞mac

Standard

cg网上个星期因为实验室装修停掉了。今天我跑来实验室,连上两根10米的网线,爬到窗外把网口引到没装修的实验室,把网线接到服务器上。可服务器插电后除了报警声没有任何反映。我打了hp客服,结果人家过周末;上网查了维修手册,结果手册语焉不详。最后干脆直接拆机,把内存拔下来擦了再插上,启动电脑,done。

楷翔那里有一些mac上用的软件,他今天也来实验室,拷给我了一些常用的,3ks~