Installing new driver, question

117 views
Skip to first unread message

Craig Young

unread,
Sep 19, 2023, 6:20:58 PM9/19/23
to weewx-user
I am installing the TWI.py driver and have run into an error:

pi@CLOWeatherStation:~ $ wee_extension --install weewx-twi.zip
Request to install 'weewx-twi.zip'
Extracting from zip archive weewx-twi.zip
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 130, in install_extension
    self.install_from_dir(extension_dir)
  File "/usr/share/weewx/weecfg/extension.py", line 183, in install_from_dir
    shutil.copy(source_path, destination_path)
  File "/usr/lib/python3.7/shutil.py", line 245, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.7/shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/usr/share/weewx/user/twi.py'
pi@CLOWeatherStation:~ $

How do I change permissions?

Craig

p q

unread,
Sep 19, 2023, 6:24:56 PM9/19/23
to weewx...@googlegroups.com

--
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/e7d5f0b0-2ca2-43b9-85c4-9f58821563b5n%40googlegroups.com.


--
Peter Quinn
(415)794-2264

p q

unread,
Sep 19, 2023, 6:25:17 PM9/19/23
to weewx...@googlegroups.com
gahh. sudo
--
Peter Quinn
(415)794-2264

Craig Young

unread,
Sep 19, 2023, 6:28:53 PM9/19/23
to weewx-user
I tried "gahh.sudo" and got command not found, then tried "gahh.sudo wee_extension --install etc" and also got command not found.  Maybe I am doing this wrong?

Craig Young

unread,
Sep 19, 2023, 6:29:57 PM9/19/23
to weewx-user
This is on a raspberry pi ..

Kidney

unread,
Sep 19, 2023, 6:35:31 PM9/19/23
to weewx...@googlegroups.com
sudo wee_extension --install weewx-twi.zip

On Sep 19, 2023, at 18:29, Craig Young <craig.y...@gmail.com> wrote:

This is on a raspberry pi ..

Craig Young

unread,
Sep 19, 2023, 6:36:41 PM9/19/23
to weewx-user
That worked .. thank you heaps.

vince

unread,
Sep 19, 2023, 6:46:07 PM9/19/23
to weewx-user
Please tell me you're joking there.  Please.

(if not, I'd strongly suggest you do some of the nice free self-paced Linux courses and tutorials available online.  The edx.org Linux fundamentals course used to be pretty good).

p q

unread,
Sep 19, 2023, 7:10:21 PM9/19/23
to weewx...@googlegroups.com
Sorry for being short. I thought the link would explain it. I do hope that was a joke.



--
Peter Quinn
(415)794-2264

Craig Young

unread,
Sep 19, 2023, 7:25:09 PM9/19/23
to weewx-user
It was not a joke.  I was following the instructions in the driver documentation about how to install it.  Most documentation always used sudo, this did not, so rather than experiment and screw up my entire installation I executed it verbatim.  So simply a matter of not seeing the forest for the trees.

vince

unread,
Sep 20, 2023, 10:12:46 PM9/20/23
to weewx-user
I'd suggest you devote a little time to consult the FAQ (link) for this and other things new users frequently run into.   It'll help explain this one as well as other things you might run into as you get more familiar with.  Your particular issue has its own page (link) as it might be the most frequent of the frequently asked questions.


Craig Young

unread,
Sep 20, 2023, 11:46:07 PM9/20/23
to weewx-user
Thanks Vince, am doing that now and making much better progress.
Reply all
Reply to author
Forward
0 new messages