Cannot start with Python 3.7

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
haden
Posts: 6
Joined: Sunday 28 February 2016 18:11
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Cannot start with Python 3.7

Post by haden » Sunday 07 October 2018 20:01

Running Domoticz 4.9700 on windows server 2016.
Works perfect until I install Python 3.7. There are no plugins installed yet.
It never starts up, but loops in the startup.
after reboot:
Log:

2018-10-07 19:49:46.173 Status: WebServer(HTTP) started on address: :: with port 8080
2018-10-07 19:49:46.468 Status: WebServer(SSL) started on address: :: with port 443
2018-10-07 19:49:46.468 Status: Proxymanager started.
2018-10-07 19:49:46.483 Status: TCPServer: shared server started...
2018-10-07 19:49:46.483 Status: RxQueue: queue worker started...
2018-10-07 19:49:48.944 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2018-10-07 19:49:48.944 Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
2018-10-07 19:49:48.944 Status: Startup Path: C:\Program Files (x86)\Domoticz\
2018-10-07 19:49:49.022 Sunrise: 07:28:00 SunSet: 18:35:00
2018-10-07 19:49:49.022 Day length: 11:07:00 Sun at south: 13:05:00
2018-10-07 19:49:49.022 Civil twilight start: 06:52:00 Civil twilight end: 19:11:00
2018-10-07 19:49:49.022 Nautical twilight start: 06:09:00 Nautical twilight end: 19:54:00
2018-10-07 19:49:49.022 Astronomical twilight start: 05:26:00 Astronomical twilight end: 20:37:00
2018-10-07 19:49:49.100 Active notification Subsystems: email (1/13)
2018-10-07 19:49:49.395 Starting shared server on: :::6144
2018-10-07 19:49:49.022 Status: EventSystem: reset all events...
2018-10-07 19:49:49.084 Status: PluginSystem: Started, Python version '3.7.0'.
2018-10-07 19:49:49.100 Status: WebServer(HTTP) started on address: :: with port 8080
2018-10-07 19:49:49.395 Status: WebServer(SSL) started on address: :: with port 443
2018-10-07 19:49:49.395 Status: Proxymanager started.
2018-10-07 19:49:49.395 Status: TCPServer: shared server started...
2018-10-07 19:49:49.395 Status: RxQueue: queue worker started...
2018-10-07 19:49:51.444 Status: DarkSky: Started...
2018-10-07 19:49:51.444 Status: EventSystem: reset all events...
2018-10-07 19:49:51.444 Status: EventSystem: reset all device statuses...
2018-10-07 19:49:51.568 Status: PluginSystem: Entering work loop.
2018-10-07 19:49:54.855 Sunrise: 07:28:00 SunSet: 18:35:00
2018-10-07 19:49:54.871 Day length: 11:07:00 Sun at south: 13:05:00
2018-10-07 19:49:54.871 Civil twilight start: 06:52:00 Civil twilight end: 19:11:00
2018-10-07 19:49:54.871 Nautical twilight start: 06:09:00 Nautical twilight end: 19:54:00
2018-10-07 19:49:54.871 Astronomical twilight start: 05:26:00 Astronomical twilight end: 20:37:00
2018-10-07 19:49:54.933 Active notification Subsystems: email (1/13)
2018-10-07 19:49:54.793 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2018-10-07 19:49:54.793 Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
2018-10-07 19:49:54.793 Status: Startup Path: C:\Program Files (x86)\Domoticz\
2018-10-07 19:49:54.871 Status: EventSystem: reset all events...
2018-10-07 19:49:54.917 Status: PluginSystem: Started, Python version '3.7.0'.


When I uninstall python, Domoticz starts up again and works.

Anyone got this working?


Thanks

User avatar
Dnpwwo
Posts: 767
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Cannot start with Python 3.7

Post by Dnpwwo » Monday 08 October 2018 4:44

@haden,

I did some testing with Python 3.7 a little while ago and made some code changes to make it work. Our friends maintaining Python made some changes during initialisation of interpreters that were not compatible with the way Domoticz was using them.

I suggest you either switch to the beta channel and pick up those changes if you absolutely *must* have 3.7 or go with Python 3.6 in the short term.
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

haden
Posts: 6
Joined: Sunday 28 February 2016 18:11
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Cannot start with Python 3.7

Post by haden » Monday 08 October 2018 16:36

Thanks. Downgrading to 3.6.6 fixed the issue.

pigloox
Posts: 77
Joined: Wednesday 10 February 2016 0:02
Target OS: Raspberry Pi
Domoticz version: BETA
Location: France
Contact:

Re: Cannot start with Python 3.7

Post by pigloox » Monday 05 November 2018 17:17

haden wrote:
Monday 08 October 2018 16:36
Thanks. Downgrading to 3.6.6 fixed the issue.
question silly, but how to downgrade?
RPI3 Stretch (Hard disk)
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB

Post Reply

Who is online

Users browsing this forum: cencen, Google [Bot] and 5 guests