When I do a simple "ls" command, the file is right there!

On Friday, July 1, 2022 at 12:01:35 AM UTC-4 Glenn McKechnie wrote:

> I've just run through those instructions here and it works for me.
>
> What directory are you in, the one that you are running that command
> from? Does it contain the file weewx-previmeteo-v0.1.tar.gz ?
>
> wee_extension is running okay, it just complains about a read error
> for the target file - "file could not be opened successfully". Meaning
> it can't read (or find) the file that you've specified (which is your
> current directory).
>
> Give the full path to that file... eg:-
> /where/it/was/stored/weewx-previmeteo-v0.1.tar.gz
>
> There is an odd chance that the downloaded file is corrupt, but my
> first instinct is that it literally can't find the file with the
> instruction you gave it.
>
> On 01/07/2022, [email protected] <[email protected]> wrote:
> > Well here are the two attempts…. All the other extensions worked fine 
> for me
> > (I did have to use sudo for those as well) but they were all zip files. 
> As
> > this one is a ‘tar.gz’ am I missing the utility for doing so on my rpi
> > maybe? – or I was searching around and is it possible someone tried to
> > compress it twice?
> >
> >
> >
> > pi@kruse-pi:~ $ sudo wee_extension --install weewx-previmeteo-v0.1.tar.gz
> >
> > Request to install 'weewx-previmeteo-v0.1.tar.gz'
> >
> > Extracting from tar archive weewx-previmeteo-v0.1.tar.gz
> >
> > Traceback (most recent call last):
> >
> > File "/usr/share/weewx/wee_extension", line 92, in <module>
> >
> > main()
> >
> > File "/usr/share/weewx/wee_extension", line 84, in main
> >
> > ext.install_extension(options.install)
> >
> > File "/usr/share/weewx/weecfg/extension.py", line 122, in
> > install_extension
> >
> > member_names = weecfg.extract_tar(extension_path,
> >
> > File "/usr/share/weewx/weecfg/__init__.py", line 1805, in extract_tar
> >
> > tar_archive = tarfile.open(filename, mode='r')
> >
> > File "/usr/lib/python3.9/tarfile.py", line 1616, in open
> >
> > raise ReadError("file could not be opened successfully")
> >
> > tarfile.ReadError: file could not be opened successfully
> >
> >
> >
> > pi@kruse-pi:~ $ sudo /home/weewx/bin/wee_extension --install
> > weewx-previmeteo-v0.1.tar.gz
> >
> > sudo: /home/weewx/bin/wee_extension: command not found
> >
> >
> >
> > -Kruse
> >
> > 📱(M): <tel:+1.201.925.4410 <(201)%20925-4410>> +1.201.925.4410 
> <(201)%20925-4410>
> >
> > 📞(O): <tel:+1.201.857.8307 <(201)%20857-8307>> +1.862.308.7040 
> <(862)%20308-7040>
> >
> > 📞(H): <tel:+1.201.857.8307 <(201)%20857-8307>> +1.201.857.8307 
> <(201)%20857-8307>
> >
> > 📠(F): <tel:+1.201.857.7718 <(201)%20857-7718>> +1.201.857.7188 
> <(201)%20857-7188>
> >
> >
> >
> > From: [email protected] <[email protected]>
> > Sent: Thursday, June 30, 2022 10:35 PM
> > To: '[email protected]' <[email protected]>
> > Subject: RE: [weewx-user] Re: Unable to publish to previmeteo
> >
> >
> >
> > I’ll give them both a shot - thanks
> >
> >
> >
> > -Kruse
> >
> > 📱(M): <tel:+1.201.925.4410 <(201)%20925-4410>> +1.201.925.4410 
> <(201)%20925-4410>
> >
> > 📞(O): <tel:+1.201.857.8307 <(201)%20857-8307>> +1.862.308.7040 
> <(862)%20308-7040>
> >
> > 📞(H): <tel:+1.201.857.8307 <(201)%20857-8307>> +1.201.857.8307
> >
> > 📠(F): <tel:+1.201.857.7718 <(201)%20857-7718>> +1.201.857.7188
> >
> >
> >
> > From: [email protected] <mailto:[email protected]>
> > <[email protected] <mailto:[email protected]> > On
> > Behalf Of vince
> > Sent: Thursday, June 30, 2022 10:20 PM
> > To: weewx-user <[email protected]
> > <mailto:[email protected]> >
> > Subject: [weewx-user] Re: Unable to publish to previmeteo
> >
> >
> >
> > If you did a package install of weewx, try "sudo wee_extension --install
> > weewx-previmeteo-v0.1.tar.gz", assuming you are in the same working
> > directory as the .tar.gz file
> >
> >
> >
> > If you did a setup.py install of weewx, it would be "sudo
> > /home/weewx/bin/wee_extension --install weewx-previmeteo-v0.1.tar.gz"
> >
> >
> >
> > On Thursday, June 30, 2022 at 7:00:50 PM UTC-7 [email protected]
> > <mailto:[email protected]> wrote:
> >
> > Regarding this:
> >
> > https://github.com/previmeteo/weewx-previmeteo#readme
> >
> > Running this:
> >
> > setup.py install --extension weewx-previmeteo-v0.1.tar.gz
> >
> > ends up giving me this error:
> >
> > bash: setup.py: command not found
> >
> > So I also tried….
> >
> > python3 setup.py install --extension weewx-previmeteo-v0.1.tar.gz
> >
> > which gives me a similar error about not being able to fins setup.py
> >
> > FYI, there are about a gazillion “setup.py” files all over my machine – 
> all
> > different sizes - but none in any weewx directory I can find –
> >
> > Thoughts? Anyone publishing to previmeteo?
> >
> > --
> > 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/WN4vQOyNFrQ/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to
> > [email protected]
> > <mailto:[email protected]> .
> > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/weewx-user/76727a09-c125-4f57-bd4a-26df9cb66df4n%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/weewx-user/76727a09-c125-4f57-bd4a-26df9cb66df4n%40googlegroups.com?utm_medium=email&utm_source=footer
> >
> > .
> >
> > --
> > 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].
> > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/weewx-user/001801d88cf5%24464a72f0%24d2df58d0%24%40gmail.com
> .
> >
>
>
> -- 
>
>
> Cheers
> Glenn
>
> rorpi - read only raspberry pi & various weewx addons
> https://github.com/glennmckechnie
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b47de330-93c6-4a91-b40a-21338f9f5c07n%40googlegroups.com.

Reply via email to