Error when trying to update to latest Beta

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Error when trying to update to latest Beta

Post by gennapium »

Hello,

When i try to update domoticz on my Ubuntu server is get this error message:

-- Using builtin Mosquitto library
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "3.2")
CMake Error at CMakeLists.txt:72 (MESSAGE):
Python3 not found on your system, use USE_PYTHON_PLUGINS=NO or sudo apt-get
install python3-dev)


-- Configuring incomplete, errors occurred!
See also "/home/domoticz/domoticz/CMakeFiles/CMakeOutput.log".
See also "/home/domoticz/domoticz/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1


I have installed Python 3 but is still get this error.
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Error when trying to update to latest Beta

Post by gennapium »

Anyone ?
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Error when trying to update to latest Beta

Post by gennapium »

I really need to update to the latest Beta version on my Ubuntu server.
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
SweetPants

Re: Error when trying to update to latest Beta

Post by SweetPants »

I had the same issue on my ubuntu server.
If you don't need python3 support:

cmake -DCMAKE_BUILD_TYPE=Release -D USE_PYTHON_PLUGINS=NO CMakeLists.txt

make
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Error when trying to update to latest Beta

Post by Dnpwwo »

Hi gennapium,

The error actually says to

Code: Select all

sudo apt-get install python3-dev
not to install python3 itself.

Give that a go.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
SweetPants

Re: Error when trying to update to latest Beta

Post by SweetPants »

Dnpwwo wrote:Hi gennapium,

The error actually says to

Code: Select all

sudo apt-get install python3-dev
not to install python3 itself.

Give that a go.
That does not work!!!
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Error when trying to update to latest Beta

Post by Dnpwwo »

If installation of python3-dev does not work it is most likely because the cmake version is really old.

It will need to be at least at version 3 to pick up python properly, if you can't upgrade cmake to version 3 (latest I've seen is over 3.6) then you should indeed use:

Code: Select all

cmake -DCMAKE_BUILD_TYPE=Release -D USE_PYTHON_PLUGINS=NO CMakeLists.txt
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Error when trying to update to latest Beta

Post by gennapium »

Hallo,

I did install:

sudo apt-get install python3-dev

But the problem still exists.
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Error when trying to update to latest Beta

Post by gennapium »

Ok,


I will give this:
cmake -DCMAKE_BUILD_TYPE=Release -D USE_PYTHON_PLUGINS=NO CMakeLists.txt

a try this evening. See what happens.
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Error when trying to update to latest Beta

Post by Dnpwwo »

Are you running Ubuntu 12.04? If so that has an ancient cmake. You can tell by running:

Code: Select all

cmake --version
There is a backport avaiable, have a look here https://launchpad.net/~george-edison55/ ... -backports or you can build it from source here http://askubuntu.com/questions/679299/i ... tu-precise and get a newer version
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
SweetPants

Re: Error when trying to update to latest Beta

Post by SweetPants »

Dnpwwo wrote:Are you running Ubuntu 12.04? If so that has an ancient cmake.
14.04 LTS also has an old version by default.
gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Error when trying to update to latest Beta

Post by gennapium »

I am running Ubuntu 14.04.
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
SweetPants

Re: Error when trying to update to latest Beta

Post by SweetPants »

Same problem

sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
tar xf cmake-3.2.2.tar.gz
cd cmake-3.2.2
./configure
make
sudo make install
gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Error when trying to update to latest Beta

Post by gennapium »

sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
tar xf cmake-3.2.2.tar.gz
cd cmake-3.2.2
./configure
make
sudo make install

This is the solution ?
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
SweetPants

Re: Error when trying to update to latest Beta

Post by SweetPants »

gennapium wrote:This is the solution ?
yes
gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Error when trying to update to latest Beta

Post by gennapium »

Great, i will try it this evening.
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Error when trying to update to latest Beta

Post by gennapium »

sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
tar xf cmake-3.2.2.tar.gz
cd cmake-3.2.2
./configure
make
sudo make install


This did not solve the problem, this however did:

cmake -DCMAKE_BUILD_TYPE=Release -D USE_PYTHON_PLUGINS=NO CMakeLists.txt
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
SweetPants

Re: Error when trying to update to latest Beta

Post by SweetPants »

gennapium wrote:This did not solve the problem, this however did:
cmake -DCMAKE_BUILD_TYPE=Release -D USE_PYTHON_PLUGINS=NO CMakeLists.txt
It did for me. If you need python3 support later you will run into the same problem again. Better upgrade cmake to version 3.2.x
Did you get any errors after the install of the new cmake?
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: Error when trying to update to latest Beta

Post by jumbotroll »

Hi.
Trying to cross compile with pluginmanager for all synology NAS.
Compile with cmake -DCMAKE_BUILD_TYPE=Release -D USE_PYTHON_PLUGINS=NO CMakeLists.txt working ok.
The latest Python3 for Synology is Python3.5.1.spk, but if I try to cross compile with Python 3.5.1 it's failed.
If I cross compile with Python3.4.1 all is ok, but domoticz give this error: 2016-12-13 22:07:35.344 Error: PluginSystem: Failed load 'libpython3.5.so', Python probably not installed on system.

Is it possible to change this plugin to accept Python 3.4 and 3.5?
BTW using Cmake 3.2.2
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Error when trying to update to latest Beta

Post by Dnpwwo »

Hi Jumbotroll,

Functionally it will work with Python 3.2 and above (test 3.2, 3.4, 3.51 & 3.5.2), I'm in the process of trying to work out a reliable of locating the libarary on differnt flavours of Unix and different versions of Python and how to have a version out very soon.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest