Thank you for your prompt reply.
i forgot in weewx.conf

    [[FTP]]
>         # FTP'ing the results to a webserver is treated as just another 
> report,
>         # albeit one with an unusual report generator!
>         skin = Ftp
>
>         # If you wish to use FTP, set "enable" to "true", then
>         # fill out the next four lines.
>         # Use quotes around passwords to guard against parsing errors.
>         enable = true
>         user = NAME
>         password = PASS
>         server = SERVER
>
           path = /

        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False

        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = public_html

        # Most FTP servers use port 21
        port = 21

        # Set to 1 to use passive mode, zero for active mode
        passive = 1


the error message

Mar  2 19:55:39 wx2013 weewx[31777]: copygenerator: copied 0 files to /home/
weewx/public_html/mobile
Mar  2 19:58:00 wx2013 weewx[31777]: reportengine: Caught unrecoverable 
exception in generator 'weewx.reportengine.FtpGenerator'
Mar  2 19:58:00 wx2013 weewx[31777]:         ****  catching classes that do 
not inherit from BaseException is not allowed
Mar  2 19:58:00 wx2013 weewx[31777]:         ****  Traceback (most recent 
call last):
Mar  2 19:58:00 wx2013 weewx[31777]:         ****    File 
"/home/weewx/bin/weewx/reportengine.py", line 351, in run
Mar  2 19:58:00 wx2013 weewx[31777]:         ****      n = ftp_data.run()
Mar  2 19:58:00 wx2013 weewx[31777]:         ****    File 
"/home/weewx/bin/weeutil/ftpupload.py", line 183, in run
Mar  2 19:58:00 wx2013 weewx[31777]:         ****      self.saveLastUpload(
timestamp, fileset)
Mar  2 19:58:00 wx2013 weewx[31777]:         ****    File 
"/home/weewx/bin/weeutil/ftpupload.py", line 214, in saveLastUpload
Mar  2 19:58:00 wx2013 weewx[31777]:         ****      cPickle.dump(
timestamp, f)
Mar  2 19:58:00 wx2013 weewx[31777]:         ****  TypeError: write() 
argument must be str, not bytes
Mar  2 19:58:00 wx2013 weewx[31777]:         ****
Mar  2 19:58:00 wx2013 weewx[31777]:         ****  During handling of the 
above exception, another exception occurred:
Mar  2 19:58:00 wx2013 weewx[31777]:         ****
Mar  2 19:58:00 wx2013 weewx[31777]:         ****  Traceback (most recent 
call last):
Mar  2 19:58:00 wx2013 weewx[31777]:         ****    File 
"/home/weewx/bin/weewx/reportengine.py", line 208, in run
Mar  2 19:58:00 wx2013 weewx[31777]:         ****      obj.start()
Mar  2 19:58:00 wx2013 weewx[31777]:         ****    File 
"/home/weewx/bin/weewx/reportengine.py", line 304, in start
Mar  2 19:58:00 wx2013 weewx[31777]:         ****      self.run()
Mar  2 19:58:00 wx2013 weewx[31777]:         ****    File 
"/home/weewx/bin/weewx/reportengine.py", line 352, in run
Mar  2 19:58:00 wx2013 weewx[31777]:         ****      except (socket.
timeout, socket.gaierror, ftplib.all_errors, IOError) as e:
Mar  2 19:58:00 wx2013 weewx[31777]:         ****  TypeError: catching 
classes that do not inherit from BaseException is not allowed
Mar  2 19:58:00 wx2013 weewx[31777]:         ****  Generator terminated
Mar  2 20:00:15 wx2013 weewx[31777]: manager: Added record 2019-03-02 20:00:
16 CET (1551553216) to database 'cmon.sdb'


sorry but the installation under Python3 and pip3 went smoothly
Soyy my englisch
Hartmut

Reply via email to