New version python 3 compatible

Posted on
Thu Mar 30, 2023 6:15 am
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

New version python 3 compatible

I will be taking over this plugin and will be pushing to the plugin store a python 3 compatible version under a new name of UK Trains, to make it a bit more explicit as to what this does.

It's working on my machine and generating the images but will be some more work required to bring it fully up to current best practise for plugins.

Posted on
Thu Mar 30, 2023 6:35 am
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: New version python 3 compatible

That’s great news, I’ve always like this plug-in, but for me it’s not worked for several years.
Happy to help with testing if needs be :D

Martin

Posted on
Thu Mar 30, 2023 7:08 am
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: New version python 3 compatible

Yes I've had to fiddle with bits over the years to keep it working and after releasing my irritation plugin realised I could have a proper look at this.

Once Jay approves you can download. You'll need to set up new route devices but you can use same API key.
Please tick to enable images to ensure settings are correctly setup , in this version.
If you do this first you can migrate any triggers etc from one devices to the new ones.

Posted on
Mon Apr 10, 2023 8:55 am
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: New version python 3 compatible

Hello, just wondering if this has been approved yet? Looking forward to trying it out


Sent from my iPhone using Tapatalk

Posted on
Mon Apr 10, 2023 9:47 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: New version python 3 compatible

mwoodage wrote:
Hello, just wondering if this has been approved yet? Looking forward to trying it out


Odd, not sure why I didn't see the notification email (or perhaps saw it and there was some back and forth or something). Anyway, I've approved it: https://www.indigodomo.com/pluginstore/284/

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Apr 10, 2023 10:31 am
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: New version python 3 compatible

Thanks Jay, no worries,
I’ll give UK trains a try now :D

Posted on
Wed Apr 12, 2023 11:28 am
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: New version python 3 compatible

I got this working fine and it is really cool.

I think the support and GitHub links are broken in the plugin store link for FYI and to install I did the suds and pytz installs via pip3, but FYI you are not prompted for the suds install in the error log but simple to work out.

Neil

Posted on
Wed Apr 12, 2023 11:55 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: New version python 3 compatible

neilk wrote:
I think the support and GitHub links are broken in the plugin store link for FYI and to install I did the suds and pytz installs via pip3, but FYI you are not prompted for the suds install in the error log but simple to work out.


The support link is definitely broken, but the GitHub link worked fine for me.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Apr 12, 2023 1:09 pm
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: New version python 3 compatible

Interestingly i tried this on Monday, but couldn't get it to work (i think the problem is my end and not with the plugin).
I've not had a chance to figure out why it's not working, but will have another look at the weekend when i've got more time.

I also installed suds and pytz via pip3

M

Posted on
Wed Apr 12, 2023 2:05 pm
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: New version python 3 compatible

Apologies, I'll sort out the support link once I get the forum updated
The current version is supposed to prompt for pytz to be installed, but will check on that and suds.

Posted on
Wed Apr 12, 2023 2:53 pm
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: New version python 3 compatible

It does indeed prompt for pytz but not for suds. Apologies, the github issue was actually at my end with my login.

Neil

Posted on
Wed Apr 12, 2023 3:01 pm
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: New version python 3 compatible

Thanks. At least the code works, I'll update to include suds.

Posted on
Thu Apr 13, 2023 10:05 am
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: New version python 3 compatible

Had some time to play with this today and can confirm it’s all working

Thanks for taking the time to update the plugin
Martin


Sent from my iPhone using Tapatalk

Posted on
Thu Apr 13, 2023 12:29 pm
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: New version python 3 compatible

Glad to hear. I'll get some updated documentation up soon, and use autologs nice code to prompt for suds installation.

Posted on
Sat Jun 03, 2023 5:37 am
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: New version python 3 compatible

Morning - It maybe the plugin is on strike like most of the UK train network (and suspect it may be related) but got this in my logs today

Code: Select all
 UK Trains Error                 Error in plugin execution runConcurrentThread:

  File "plugin.py", line 1033, in runConcurrentThread
type: name 'errorFile' is not defined

   UK Trains Error                 plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)



Thanks,
Neil

Who is online

Users browsing this forum: No registered users and 1 guest