Page 1 of 2

Error when trying to update to latest Beta

Posted: Monday 12 December 2016 17:43
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.

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 10:36
by gennapium
Anyone ?

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 13:45
by gennapium
I really need to update to the latest Beta version on my Ubuntu server.

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 13:55
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

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 13:56
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.

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 13:58
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!!!

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 14:04
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

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 14:04
by gennapium
Hallo,

I did install:

sudo apt-get install python3-dev

But the problem still exists.

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 14:08
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.

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 14:10
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

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 14:31
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.

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 14:36
by gennapium
I am running Ubuntu 14.04.

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 14:48
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

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 14:59
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 ?

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 15:00
by SweetPants
gennapium wrote:This is the solution ?
yes

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 15:21
by gennapium
Great, i will try it this evening.

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 18:25
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

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 21:08
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?

Re: Error when trying to update to latest Beta

Posted: Tuesday 13 December 2016 22:22
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

Re: Error when trying to update to latest Beta

Posted: Thursday 15 December 2016 12:36
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.