On Thursday 29 February 2024 at 17:50:33 UTC+10 remy.l...@gmail.com wrote: *with* : unzip -l AWEKAS.zip *we have* : (weewx-venv) remy@remy-virtual-machine:~/weewx-data$ unzip -l AWEKAS.zip Archive: AWEKAS.zip Length Date Time Name --------- ---------- ----- ---- 0 2024-02-29 08:42 AWEKAS/ 565 2024-02-29 08:42 AWEKAS/install.py 35149 2024-02-26 10:33 AWEKAS/LICENSE.txt 56528 2024-02-26 10:33 AWEKAS*/awekaswx.py* --------- ------- 92242 4 files
And there is your problem, the structure of your extension package/archive does not agree with the instructions you have given to the installer. The line: files=[('bin/user', ['bin/user/awekaswx.py'])], in your installer is telling the extension installer to copy the file awekaswx.py from the bin/user directory in your extension package/archive to the WeeWX bin/user directory. The problem is bin/user/awekaswx.py does not exist in your archive, you have awekaswx.py in the main directory ( AWEKAS) of your archive. Take for example the Ecowitt gateway driver extension package, its structure is: gary@cockatoo1:~ $ unzip -l ./gw1000.zip Archive: ./gw1000.zip Length Date Time Name --------- ---------- ----- ---- 0 2024-02-21 19:39 gw1000/bin/ 0 2024-02-21 19:39 gw1000/bin/user/ 6148 2024-02-11 20:14 gw1000/bin/user/.DS_Store 390698 2024-02-21 19:39 gw1000/bin/user/gw1000.py 8355 2024-02-21 19:39 gw1000/changelog 11114 2024-02-21 19:39 gw1000/install.py 11346 2024-02-21 19:39 gw1000/readme.txt --------- ------- The extension installer has the same line: files=[('bin/user', ['bin/user/gw1000.py'])], (well the same but of course a different file name). Note bin/user/gw1000.py exists in the extension package/extension. To fix you have two choices, change the files = line in your extension installer or change the structure of your extension package/archive. I favour the latter, it keeps the structure of the extension package more akin to the WeeWX file structure and avoids the 'put everything in one directory' approach. Your choice. Gary -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8530a29f-f788-462c-81cc-566982a9540fn%40googlegroups.com.