Excellent. Thank you. That worked.  Hurrah.

David.

On Mon, 8 Oct 2018 at 19:22, Thomas Keffer <[email protected]> wrote:

> Matthew's version of sftp.py has a typo. Go to line 62 and add a closing
> parenthesis to the end of the line. Instead of this:
>
>     logdbg("remote_root=%s" % self.remote_root)
>     logdbg("server=%s port=%s user=%s" % (server, port, user)
>
> def run(self):
>
> you want this:
>
>     logdbg("remote_root=%s" % self.remote_root)
>     logdbg("server=%s port=%s user=%s" % (server, port, user))
>
> def run(self):
>
> -tk
>
> On Mon, Oct 8, 2018 at 11:09 AM <[email protected]> wrote:
>
>> Hi
>>
>> I am trying to use SFTP to upload my files to a domain hosted at 1&1,
>> which seems to use SFTP, so the old FTP process doesn't work.  I installed
>> pysftp, successfully, as required.
>>
>> I am trying to use Matthew Wall's SFTP extension, but get the following
>> errors:
>>
>> Oct  8 18:55:20 raspberrypi weewx[17094]: cheetahgenerator: Generated 14
>> files for report StandardReport in 3.58 seconds
>> Oct  8 18:55:20 raspberrypi weewx[17094]: manager: Daily summary version
>> is 2.0
>> Oct  8 18:55:21 raspberrypi weewx[17094]: imagegenerator: Generated 12
>> images for StandardReport in 0.67 seconds
>> Oct  8 18:55:21 raspberrypi weewx[17094]: copygenerator: copied 9 files
>> to /var/www/html/weewx
>> Oct  8 18:55:21 raspberrypi weewx[17094]: reportengine: Running report
>> sftp
>> Oct  8 18:55:21 raspberrypi weewx[17094]: reportengine: Found
>> configuration file /etc/weewx/skins/sftp/skin.conf for report sftp
>> Oct  8 18:55:21 raspberrypi weewx[17094]: reportengine: Unable to
>> instantiate generator user.sftp.SFTPGenerator
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****  invalid syntax
>> (sftp.py, line 64)
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****  Traceback (most
>> recent call last):
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****    File
>> "/usr/share/weewx/weewx/reportengine.py", line 220, in run
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****      obj =
>> weeutil.weeutil._get_object(generator)(
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****    File
>> "/usr/share/weewx/weeutil/weeutil.py", line 1132, in _get_object
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****      mod =
>> __import__(module)
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****    File
>> "/usr/share/weewx/user/sftp.py", line 64
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****      def run(self):
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****        ^
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****  SyntaxError:
>> invalid syntax
>> Oct  8 18:55:21 raspberrypi weewx[17094]:         ****  Generator ignored
>> Oct  8 18:55:21 raspberrypi weewx[17094]: reportengine: Running report FTP
>> Oct  8 18:55:21 raspberrypi weewx[17094]: reportengine: Found
>> configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
>> Oct  8 18:55:21 raspberrypi weewx[17094]: ftpgenerator: FTP upload not
>> requested. Skipped.
>> Oct  8 18:55:21 raspberrypi weewx[17094]: reportengine: Running report
>> RSYNC
>> Oct  8 18:55:21 raspberrypi weewx[17094]: reportengine: Found
>> configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
>> Oct  8 18:55:21 raspberrypi weewx[17094]: rsyncgenerator: rsync upload
>> not requested. Skipped.
>>
>> The sftp content of weewx conf is as follows (confidential details
>> removed):
>>
>> [[sftp]]
>>         server = xxxxxxx
>>         user = xxxxxxxxx
>>         skin = sftp
>>         path = /weather
>>         password = xxxxxx  [I put this in single quotes, as the default
>> content seemed to suggest that]
>>         port = 22
>>
>> Anyone have any ideas what is going wrong please?
>>
>> Thanks
>>
>> David.
>>
> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/X_5g7D43uVU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to