FTP Plugin Issue

Posted on
Sun Sep 27, 2020 10:02 pm
mclass offline
Posts: 314
Joined: May 13, 2015
Location: Melbourne, Australia

FTP Plugin Issue

Hi!

Have been successfully using the FTP plugin to download FTP weather data on one installation running Indigo 7.4. However in replicating this on a second Indigo installation, with identical configuration of the plugin, I notice that despite the plugin appearing to operate satisfactorily, both installations receive the following error on creating a server device:

Code: Select all
FTP Error                       Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/IndigoPluginHost.app/Contents/Resources/PlugIns/plugin_base.py", line 1179, in deviceUpdated
  File "plugin.py", line 71, in deviceStartComm
NameError: global name 'kCurDevVersCount' is not defined


On reloading the plugin with debug on, the following is logged:

Code: Select all
 Reloading plugin "FTP 0.0.2"
   Stopping plugin "FTP 0.0.2" (pid 4007)
   FTP                             Shutting down FTP
   Stopped plugin "FTP 0.0.2"
   Starting plugin "FTP 0.0.2" (pid 4118)
   FTP Debug                       logLevel = 10
   Started plugin "FTP 0.0.2"
   FTP                             Starting up FTP
   FTP Debug                       updateFrequency = 86400.0
   FTP Error                       exception in deviceStartComm(BoM FTP Server): global name 'kCurDevVersCount' is not defined
   FTP                             Checking for updates...
   FTP Debug                       Plugin version detected: 0.0.2
   FTP Debug                       Current version is: 0.0.2
   FTP Debug                       Getting latest release from FlyingDiver/Indigo-FTP...
   FTP Debug                       GET /repos/FlyingDiver/Indigo-FTP/releases/latest
   FTP Debug                       HTTP Err result:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1893  100  1893    0     0   4523      0 --:--:-- --:--:-- --:--:--  4517

   FTP Debug                       ReturnCode:0
   FTP Debug                       Json results:{u'body': u'', u'assets_url': u'https://api.github.com/repos/FlyingDiver/Indigo-FTP/releases/9814287/assets', u'name': u'GHPU Fix', u'published_at': u'2018-02-23T22:24:02Z', u'author': {u'following_url': u'https://api.github.com/users/FlyingDiver/following{/other_user}', u'events_url': u'https://api.github.com/users/FlyingDiver/events{/privacy}', u'avatar_url': u'https://avatars1.githubusercontent.com/u/72976?v=4', u'url': u'https://api.github.com/users/FlyingDiver', u'gists_url': u'https://api.github.com/users/FlyingDiver/gists{/gist_id}', u'html_url': u'https://github.com/FlyingDiver', u'subscriptions_url': u'https://api.github.com/users/FlyingDiver/subscriptions', u'node_id': u'MDQ6VXNlcjcyOTc2', u'repos_url': u'https://api.github.com/users/FlyingDiver/repos', u'received_events_url': u'https://api.github.com/users/FlyingDiver/received_events', u'gravatar_id': u'', u'starred_url': u'https://api.github.com/users/FlyingDiver/starred{/owner}{/repo}', u'site_admin': False, u'login': u'FlyingDiver', u'type': u'User', u'id': 72976, u'followers_url': u'https://api.github.com/users/FlyingDiver/followers', u'organizations_url': u'https://api.github.com/users/FlyingDiver/orgs'}, u'url': u'https://api.github.com/repos/FlyingDiver/Indigo-FTP/releases/9814287', u'created_at': u'2018-02-23T22:21:04Z', u'target_commitish': u'Indigo7', u'tarball_url': u'https://api.github.com/repos/FlyingDiver/Indigo-FTP/tarball/0.0.2', u'html_url': u'https://github.com/FlyingDiver/Indigo-FTP/releases/tag/0.0.2', u'zipball_url': u'https://api.github.com/repos/FlyingDiver/Indigo-FTP/zipball/0.0.2', u'tag_name': u'0.0.2', u'node_id': u'MDc6UmVsZWFzZTk4MTQyODc=', u'draft': False, u'prerelease': False, u'upload_url': u'https://uploads.github.com/repos/FlyingDiver/Indigo-FTP/releases/9814287/assets{?name,label}', u'id': 9814287, u'assets': []}
   FTP Debug                       Latest release is: 0.0.2
   FTP                             No updates are available


Is this an issue with my installation/configuration of the plugin, or is it a bug? Note that with no plugin devices created the reload error does not appear.

mclass

Posted on
Mon Sep 28, 2020 7:19 am
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: FTP Plugin Issue

Wow. That's a three year old bug.

Try this version: https://github.com/FlyingDiver/Indigo-F ... /tag/1.0.0

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Sep 29, 2020 3:15 pm
mclass offline
Posts: 314
Joined: May 13, 2015
Location: Melbourne, Australia

Re: FTP Plugin Issue

All good! Thanks fo the prompt fix!

mclass


Sent from my iPad using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests