Unable to publish to previmeteo

55 views
Skip to first unread message

Kruse Ludington

unread,
Jun 30, 2022, 10:00:50 PM6/30/22
to weewx-user

 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?

vince

unread,
Jun 30, 2022, 10:19:41 PM6/30/22
to weewx-user
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"

rklud...@gmail.com

unread,
Jun 30, 2022, 10:35:01 PM6/30/22
to weewx...@googlegroups.com

I’ll give them both a shot - thanks

 

-Kruse

📱(M): +1.201.925.4410

📞(O): +1.862.308.7040

📞(H): +1.201.857.8307

📠(F): +1.201.857.7188

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/76727a09-c125-4f57-bd4a-26df9cb66df4n%40googlegroups.com.

rklud...@gmail.com

unread,
Jun 30, 2022, 10:50:12 PM6/30/22
to weewx...@googlegroups.com

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): +1.201.925.4410

📞(O): +1.862.308.7040

📞(H): +1.201.857.8307

📠(F): +1.201.857.7188

 

From: rklud...@gmail.com <rklud...@gmail.com>
Sent: Thursday, June 30, 2022 10:35 PM
To: 'weewx...@googlegroups.com' <weewx...@googlegroups.com>
Subject: RE: [weewx-user] Re: Unable to publish to previmeteo

 

I’ll give them both a shot - thanks

 

-Kruse

📱(M): +1.201.925.4410

📞(O): +1.862.308.7040

📞(H): +1.201.857.8307

📠(F): +1.201.857.7188

 

From: weewx...@googlegroups.com <weewx...@googlegroups.com> On Behalf Of vince
Sent: Thursday, June 30, 2022 10:20 PM
To: weewx-user <weewx...@googlegroups.com>
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

--

Glenn McKechnie

unread,
Jul 1, 2022, 12:01:35 AM7/1/22
to weewx...@googlegroups.com
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.
> 📱(M): <tel:+1.201.925.4410> +1.201.925.4410
>
> 📞(O): <tel:+1.201.857.8307> +1.862.308.7040
>
> 📞(H): <tel:+1.201.857.8307> +1.201.857.8307
>
> 📠(F): <tel:+1.201.857.7718> +1.201.857.7188
>
>
>
> From: rklud...@gmail.com <rklud...@gmail.com>
> Sent: Thursday, June 30, 2022 10:35 PM
> To: 'weewx...@googlegroups.com' <weewx...@googlegroups.com>
> 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> +1.201.925.4410
>
> 📞(O): <tel:+1.201.857.8307> +1.862.308.7040
>
> 📞(H): <tel:+1.201.857.8307> +1.201.857.8307
>
> 📠(F): <tel:+1.201.857.7718> +1.201.857.7188
>
>
>
> From: weewx...@googlegroups.com <mailto:weewx...@googlegroups.com>
> <weewx...@googlegroups.com <mailto:weewx...@googlegroups.com> > On
> Behalf Of vince
> Sent: Thursday, June 30, 2022 10:20 PM
> To: weewx-user <weewx...@googlegroups.com
> <mailto:weewx...@googlegroups.com> >
> 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 rklud...@gmail.com
> <mailto:rklud...@gmail.com> 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
> weewx-user+...@googlegroups.com
> <mailto:weewx-user+...@googlegroups.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 weewx-user+...@googlegroups.com.
> 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

vince

unread,
Jul 1, 2022, 12:20:20 AM7/1/22
to weewx-user

I'm guessing you're a new Linux user perhaps (?)

If you run "sudo wee_extension --install something.tar.gz" then the file something.tar.gz has to be in the same directory you are currently cd'd into in your shell session.    If it's somewhere else, you can specify "sudo wee_extension --install /some/path/here/something.tar.gz" to tell the shell where you have that file.


My 'guess' in the absence of seeing what exactly you did is that you ran 'wget' in one directory and tried to run the wee_extension in another shell session in a different directory.

Try the following - I modified the wget command to tell it 'where' to download the file to.

wget https://github.com/previmeteo/weewx-previmeteo/archive/v0.1.tar.gz -O /var/tmp/weewx-previmeteo-v0.1.tar.gz
sudo wee_extension --install /var/tmp/weewx-previmeteo-v0.1.tar.gz


Kruse Ludington

unread,
Jul 1, 2022, 12:25:18 AM7/1/22
to weewx...@googlegroups.com, vince
1. Yes I am new to Linux!
2. The file is already in the current directory that I am already in - I placed it there beforehand.

Hope that helps and look forward to hearing more details from you soon!

Best Regards,

-R. Kruse Ludington
--
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 weewx-user+...@googlegroups.com.

Kruse Ludington

unread,
Jul 1, 2022, 8:42:08 AM7/1/22
to weewx-user
When I do a simple "ls" command, the file is right there!

Glenn McKechnie

unread,
Jul 1, 2022, 9:09:01 AM7/1/22
to weewx...@googlegroups.com
On 01/07/2022, Kruse Ludington <rklud...@gmail.com> wrote:
> When I do a simple "ls" command, the file is right there!

Okay.
type in the first part of your command...

sudo wee_extension --install weewx-p

At that 'w' press the tab key once and the rest of the filename should
auto complete ... be filled in. If it does that then the command line,
recognizes that file is there (assuming you don't get a choice of
files, in which case select the correct one.)

If that does complete okay and it still doesn't install then it may
pay to check the actual file... Is it a gzip archive?

In the terminal, use the command 'file'.
What does it return?

10:56 PM $ file weewx-previmeteo-v0.1.tar.gz
weewx-previmeteo-v0.1.tar.gz: gzip compressed data, from Unix,
original size modulo 2^32 10240

If it's anything other than above - html? then it's a corrupted file.
Download it again.

Glenn McKechnie

unread,
Jul 1, 2022, 9:09:59 AM7/1/22
to weewx...@googlegroups.com
make that at the 'weewx-p'. The last character you type.

Glenn McKechnie

unread,
Jul 1, 2022, 9:13:21 AM7/1/22
to weewx...@googlegroups.com
also, there technically should be an equals sign in that command.

wee_extension --help

with that it becomes...

sudo wee_extension --install=weewx-previmeteo-v0.1.tar.gz

It's never made a difference for me, perhaps your installation requires it?

vince

unread,
Jul 1, 2022, 11:51:09 AM7/1/22
to weewx-user
I just did a clean package install of weewx on a pi3 and then installed the extension with the two commands I posted above. Worked fine.

My guess in the absence of much info is that you don't have a good copy of the .tar.gz for the extension.

Check your file size and checksum:

pi@pi3jr-wifi:/var/tmp $ ls -al weewx-previmeteo-v0.1.tar.gz
-rw-r--r-- 1 pi pi 1446 Jul  1 08:46 weewx-previmeteo-v0.1.tar.gz


pi@pi3jr-wifi:/var/tmp $ sha1sum weewx-previmeteo-v0.1.tar.gz
ca62d2821862de3dbad53707ca41761300b75487  weewx-previmeteo-v0.1.tar.gz


Your size and sha1sum should match 'exactly'.  If it doesn't, you have a truncated/corrupted download.


Reply all
Reply to author
Forward
0 new messages