rdm-builder icon indicating copy to clipboard operation
rdm-builder copied to clipboard

macOS Catalina 10.15.5 无法打开「解决方案」

Open ou-bing opened this issue 4 years ago • 18 comments

macOS Catalina 10.15.5 打开 App 会提示 无法加载 Python 3.7, 直接将 /usr/local/opt/python/Frameworks/Python.framework/Versions/3.8 目录拷贝为 3.7 解决。

ou-bing avatar Jul 16 '20 03:07 ou-bing

编译环境默认使用Python 3.7,自己本地可以加软链接。 https://github.com/onewe/RedisDesktopManager-Mac/issues/26#issuecomment-655605029

FuckDoctors avatar Jul 16 '20 03:07 FuckDoctors

最新的Github Action的macOS镜像默认使用了Python 3.8,但是编译会出错,编译时改成了3.7。 打不开时,除了上面的方法,还可以替换编译后的rdm的依赖:

install_name_tool -change /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7/Python /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.7/Python '/Applications/Redis Desktop Manager.app/Contents/MacOS/Redis Desktop Manager'

python路径改成自己电脑相应路径。

FuckDoctors avatar Aug 09 '20 09:08 FuckDoctors

我是通过如下方式解决的:

brew install [email protected]
sudo pip3 install -r https://raw.githubusercontent.com/uglide/RedisDesktopManager/2020/src/py/requirements.txt --upgrade

搞定

CodingOX avatar Sep 15 '20 08:09 CodingOX

2020.3版启用提示更新到2020.3版,点ok就关了,怎么搞?

Diluka avatar Sep 27 '20 06:09 Diluka

2020.3版启用提示更新到2020.3版,点ok就关了,怎么搞?

请确保安装了[email protected],并按上述任一方式正确配置[email protected]的依赖。

FuckDoctors avatar Sep 27 '20 10:09 FuckDoctors

@FuckDoctors 在打包的时候可以把python拷到app目录中,然后改一下依赖的路径,你试一试唉

onewe avatar Sep 29 '20 03:09 onewe

@FuckDoctors 在打包的时候可以把python拷到app目录中,然后改一下依赖的路径,你试一试唉

嗯,回头试试 主要是现在macOS已经挺大了,再把python打进去感觉体积会更大。。 win下的是把python-embeded的部分内容打进去了,体积还可接受

FuckDoctors avatar Sep 30 '20 04:09 FuckDoctors

Hi! Is there any solution for Catalina?

p-golovin avatar Oct 02 '20 17:10 p-golovin

我是通过如下方式解决的:

brew install [email protected]
sudo pip3 install -r https://raw.githubusercontent.com/uglide/RedisDesktopManager/2020/src/py/requirements.txt --upgrade

搞定

需要在/usr/local/opt ln -s [email protected] python 加个软链接

imchao9 avatar Oct 03 '20 16:10 imchao9

Hi! Is there any solution for Catalina?

Make sure that you have installed Python 3.7.

brew install [email protected]

Then make a soft link like this:

cd /usr/local/opt
ln -s [email protected] python

or, you can change the dependent shared library by install_name_tool -change

install_name_tool -change /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7/Python /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.7/Python '/Applications/Redis Desktop Manager.app/Contents/MacOS/Redis Desktop Manager'

FuckDoctors avatar Oct 09 '20 08:10 FuckDoctors

我是通过如下方式解决的:

brew install [email protected]
sudo pip3 install -r https://raw.githubusercontent.com/uglide/RedisDesktopManager/2020/src/py/requirements.txt --upgrade

搞定

需要在/usr/local/opt ln -s [email protected] python 加个软链接

如果没有其他冲突的话,加软链接比较方便,如果有用到3.8的话,使用install_name_tool -change单独修改rdm的依赖项更好一些。

FuckDoctors avatar Oct 09 '20 08:10 FuckDoctors

mac 11.0.1 打开报错

ccwxl avatar Dec 31 '20 06:12 ccwxl

big sur版本打开就报错

kelvinchanjl avatar Jan 07 '21 06:01 kelvinchanjl

@siaron @kelvinchanjl macOS 11.1亲测可以,修改python的依赖就可以了。

brew install [email protected]
install_name_tool -change /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7/Python /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7/Python /Applications/RDM.app/Contents/MacOS/RDM

FuckDoctors avatar Jan 07 '21 13:01 FuckDoctors

@siaron @kelvinchanjl macOS 11.1亲测可以,修改python的依赖就可以可以了。

酿造安装[email protected]
install_name_tool -change /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7/Python /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7/Python / Applications / RDM.app/内容/ MacOS / RDM

谢谢,解决了,但是不支持ssh

kelvinchanjl avatar Jan 08 '21 02:01 kelvinchanjl

Make sure that you have installed Python 3.7.

brew install [email protected] Then make a soft link like this:

cd /usr/local/opt ln -s [email protected] python

install_name_tool -change /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7/Python /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.7/Python '/Users/xxx/Applications/RDM.app/Contents/MacOS/RDM'

gtfd333 avatar Feb 03 '21 02:02 gtfd333

M1芯片的有支持的吗?

jayzch avatar Jul 30 '21 04:07 jayzch

M1芯片用户,请参考下面的资料,尝试安装不同的版本的Homebrew。 https://github.com/FuckDoctors/rdm-builder/issues/22#issuecomment-1096150738

For Apple M1 users, you may need to install 2 homebrew versions. TIP | The BEST way to install Homebrew (Brew) on Apple Silicon (M1)

FuckDoctors avatar May 11 '22 03:05 FuckDoctors