New version python 3 compatible

siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

New version python 3 compatible

Post by siclark »

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.
User avatar
mwoodage
Posts: 189
Joined: Fri Dec 19, 2014 8:35 am
Location: Devon UK

Re: New version python 3 compatible

Post by mwoodage »

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
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: New version python 3 compatible

Post by siclark »

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.
User avatar
mwoodage
Posts: 189
Joined: Fri Dec 19, 2014 8:35 am
Location: Devon UK

Re: New version python 3 compatible

Post by mwoodage »

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


Sent from my iPhone using Tapatalk
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: New version python 3 compatible

Post by jay (support) »

mwoodage wrote:Hello, just wondering if this has been approved yet? Looking forward to trying it out Image
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
User avatar
mwoodage
Posts: 189
Joined: Fri Dec 19, 2014 8:35 am
Location: Devon UK

Re: New version python 3 compatible

Post by mwoodage »

Thanks Jay, no worries,
I’ll give UK trains a try now :D
neilk
Posts: 729
Joined: Mon Jul 13, 2015 1:51 pm
Location: Reading, UK

Re: New version python 3 compatible

Post by neilk »

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
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: New version python 3 compatible

Post by jay (support) »

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
User avatar
mwoodage
Posts: 189
Joined: Fri Dec 19, 2014 8:35 am
Location: Devon UK

Re: New version python 3 compatible

Post by mwoodage »

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
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: New version python 3 compatible

Post by siclark »

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.
neilk
Posts: 729
Joined: Mon Jul 13, 2015 1:51 pm
Location: Reading, UK

Re: New version python 3 compatible

Post by neilk »

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

Neil
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: New version python 3 compatible

Post by siclark »

Thanks. At least the code works, I'll update to include suds.
User avatar
mwoodage
Posts: 189
Joined: Fri Dec 19, 2014 8:35 am
Location: Devon UK

Re: New version python 3 compatible

Post by mwoodage »

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
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: New version python 3 compatible

Post by siclark »

Glad to hear. I'll get some updated documentation up soon, and use autologs nice code to prompt for suds installation.
neilk
Posts: 729
Joined: Mon Jul 13, 2015 1:51 pm
Location: Reading, UK

Re: New version python 3 compatible

Post by neilk »

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
Post Reply

Return to “iTravel”