Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
libpython3.x
#1
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
Reply
#2
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-Ins...-Execution
or download latest release here: https://www.python.org/downloads/mac-osx/ run and carefully follow instructions.
Reply
#3
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/...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
Reply
#4
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
Reply
#5
(Feb-19-2020, 10:48 AM)TonkaNL Wrote: 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

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.
Reply
#6
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
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020