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.

Reply via email to