Extension Installer Error

27 views
Skip to first unread message

Joe Percival

unread,
Jan 13, 2018, 5:02:16 PM1/13/18
to weewx-user
 I have tried using the extension installer following the guidance from the github wiki on an extension package created by modifying the mem extension example.  I do not understand the error message I am getting.  Can someone please explain where I've gone wrong?
My extension package is a zipped directory named weewx_snow which contains install.py, a bin directory and a skins directory.
here is the error message I am getting:

raise InstallError("Unable to install from '%s': no common path (the extension archive contains more than a single root directory)" % extension_path)
weecfg.extension.InstallError: Unable to install from '/home/pi/Downloads/weewx_snow.zip': no common path (the extension archive contains more than a single root directory)

gjr80

unread,
Jan 13, 2018, 5:40:09 PM1/13/18
to weewx-user
I know you outlined your zip structure but it wasn't 100% clear to me. I package in tgz format not zip but the structure I have in my tgz file is:

name
 
|
 
-- install.py
 
|
 
-- readme.txt
 
|
 
-- changelog
 
|
 
-- bin
 
|   |
 
|   -- directories/files to go in $BIN directory
 
|
 
-- skins
     
|
     
-- directories/files to go in skin directory

where name is the common name of the extension/driver etc

Alternatively, post your zip.

Gary

Joe Percival

unread,
Jan 13, 2018, 5:47:04 PM1/13/18
to weewx...@googlegroups.com
yes.  though I have taken out the readme and changelog for the time being.
I have found the problem.  I created the zip on a Mac and it created a second directory inside the archive called _MACOS.  That was confusing the installer.
Deleting that directory allowed the installer to proceed (and churn up the next layer of bugs).
Thanks,
joe

--
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/WI_RccEFDNM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gjr80

unread,
Jan 13, 2018, 6:10:14 PM1/13/18
to weewx-user
That would do it, my understanding of the extension installer is that in the archive everything needs to be under a single top level directory.

Gary

Reply all
Reply to author
Forward
0 new messages