libpython3.x - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: libpython3.x (/thread-24152.html) |
libpython3.x - Jeff - Feb-02-2020 Running Domoticz which is an application for Home Automation » Sunday 02 February 2020 8:28 Macos Catalina - macOS 10.15.3 (19D76) Error Status: PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform. I have installed Python with PIP which I thought would set everything up for me. I have been searching everywhere to try to find out about libpython3.x I don't have libpython3.x on my machine and google searches made me more confused. on my Machine I have /Users/Jeff/.pyenv/versions/3.7.6/lib/python3.7/config-3.7m-darwin/libpython3.7m.a /Users/Jeff/.pyenv/versions/3.7.6/lib/libpython3.7m.a my $PATH is /Users/Jeff/.rvm/gems/ruby-2.4.1/bin:/Users/Jeff/.rvm/gems/ruby-2.4.1@global/bin:/Users/Jeff/.rvm/rubies/ruby-2.4.1/bin:/Users/Jeff/.pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/Jeff/.rvm/bin so I have /Users/Jeff/.pyenv/shims in my path but neither of the above if these are the correct files RE: libpython3.x - Larz60+ - Feb-02-2020 Quote:I have installed Python with PIP which I thought would set everything up for me.Python is not installed in this manner Find installation tutorials here: https://python-forum.io/Forum-Python-Installation-and-Execution or download latest release here: https://www.python.org/downloads/mac-osx/ run and carefully follow instructions. RE: libpython3.x - Jeff - Feb-07-2020 Read the suggestion and I used pyenv to Install Python 3.8.1 Checked what was installed Jeff@Jeffs-iMac ~ % pyenv version 3.7.6 (set by /Users/Jeff/.pyenv/version) Installed 3.8.1 Jeff@Jeffs-iMac ~ % pyenv install 3.8.1 python-build: use [email protected] from homebrew python-build: use readline from homebrew Downloading Python-3.8.1.tar.xz... -> https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz Installing Python-3.8.1... python-build: use readline from homebrew python-build: use zlib from xcode sdk Installed Python-3.8.1 to /Users/Jeff/.pyenv/versions/3.8.1 Checked what it was using Jeff@Jeffs-iMac ~ % python -V Python 3.7.6 Changed it to 3.8.1 Jeff@Jeffs-iMac ~ % pyenv global 3.8.1 Checked what it was using Jeff@Jeffs-iMac ~ % python -V Python 3.8.1 So Tried again Home Automation Domoticz Ran Domoticz Result Status: PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform. Status: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform. so again Python not running using find I have: ./.pyenv/versions/3.7-dev/lib/python3.7/config-3.7m-darwin/libpython3.7m.a ./.pyenv/versions/3.7-dev/lib/libpython3.7m.a ./.pyenv/versions/3.7-dev/lib/libpython3.x ./.pyenv/versions/3.7.6/lib/python3.7/config-3.7m-darwin/libpython3.7m.a ./.pyenv/versions/3.7.6/lib/libpython3.7m.a ./.pyenv/versions/3.7.6/lib/libpython3.x ./.pyenv/versions/3.7.6/lib/libpython3.xAlias ./.pyenv/versions/3.8.1/lib/libpython3.8.a ./.pyenv/versions/3.8.1/lib/python3.8/config-3.8-darwin/libpython3.8.a but no libpython3.x RE: libpython3.x - TonkaNL - Feb-19-2020 Hi guys, It seems that the only (recent) python version that works on my computer with Domoticz is 3.5.3 Does anyone know why? Thanks. Thomas RE: libpython3.x - TonkaNL - Feb-19-2020 (Feb-19-2020, 10:48 AM)TonkaNL Wrote: Hi guys, Well, it seems to be the “PATH” setting. Don’t forget to check the box! And make the path simple as said in the python install tutorial as posted above. I have 3.8 running now. RE: libpython3.x - Larz60+ - Feb-19-2020 if you have pyenv installed (which you mentioned in post 3), then the proper way to set a version of python as default is: pyenv global 3.8.1 (or whatever version you want to be default)This is the beauty of pyenv, especially with virtual environments. for example if you had 3.6, 3.7 and 3.8.1 installed you can set default to 3.6, create your virtual environment and change default back to 3.8.1 now, any python run in the virtual environment will use 3.6, while anything outside of the venv will use 3.8.1 |