Hallo Harry,

Sorry for the delay in getting back to you, I think this is a permissions 
problem. Try prefixing the wee_extension command with sudo, ie:

$ sudo /usr/share/weewx/wee_extension --install=/usr/share/doc/weewx/
examples/basic

Gary

On Monday, 25 November 2019 19:41:11 UTC+10, Harry Nieuwdorp wrote:
>
> Hello Garry,
>
> I have tried this:
> pi@Rpb4:~ $ sudo rm -rf /etc/weewx/skins/basic
> pi@Rpb4:~ $ /usr/share/weewx/wee_extension 
> --install=/usr/share/doc/weewx/examples/basic
> Request to install '/usr/share/doc/weewx/examples/basic'
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_extension", line 82, in <module>
>     main()
>   File "/usr/share/weewx/wee_extension", line 74, in main
>     ext.install_extension(options.install)
>   File "/usr/share/weewx/weecfg/extension.py", line 123, in 
> install_extension
>     self.install_from_dir(extension_path)
>   File "/usr/share/weewx/weecfg/extension.py", line 174, in 
> install_from_dir
>     shutil.copy(source_path, destination_path)
>   File "/usr/lib/python2.7/shutil.py", line 139, in copy
>     copyfile(src, dst)
>   File "/usr/lib/python2.7/shutil.py", line 97, in copyfile
>     with open(dst, 'wb') as fdst:
> IOError: [Errno 2] No such file or directory: 
> '/etc/weewx/skins/basic/basic.css'
> pi@Rpb4:~ $ 
>
> Seems this does not work.
>
> Regards Harry de PE1IAA
>
>
> Op maandag 30 september 2019 23:06:20 UTC+2 schreef Harry Nieuwdorp:
>>
>> I found the following errors when  installing basic report.
>>
>> Please explain.
>>
>> pi@REpb4:~$ wee_extension --install=home/pi/Weewx?Examples/basic
>> Request to install '/home/pi/Weewx/Examples/basic'
>> Traceback (most recent call last):
>> File "/usr/bin/wee_extension", line 82, in <module> main()
>> File üsr/bin/wee_extension", line 74, in main
>> ext.install_extension(option.install)
>> File üsr/share/weewx/weecfg/extension.py", line 123, in
>> install_extension
>>    self.install_from_dir(extension_path)
>> File "/usr/share/weewx/weecfg/__init__.py"line 1601, in 
>> get_extension_installer_
>>       raise ExtensionError("Cannot find ínstall'module in %s" % 
>> extension_installer_dir)
>> weecfg.ExtensionError: Cannot find ínstall'module
>> in home/pi/Weewx/Examples/basic.
>>
>> ttf-dejavu-core and ttf-dejavu-extra installed.
>>
>> {Extras] updated to
>> Current = /home/pi/Weewx/Skins/basic/current.inc
>> hilo =  /home/pi/Weewx/skins/basic/hilo.inc
>>
>> Installed in Weewx.conf
>> [StdReport]
>>       ...
>>       [[basic]]
>>             skin = basic
>>             HTML_ROOT = public_html/basic
>>
>> Hope to hear from you. Thanks in advance
>>
>> Regards Harry de PE1IAA. (beginner with Raspberry
>>
>> PS: i cannot change file in /ectc/weewx/weewx.conf 
>> I saw somthing like chmod 777, please explain.
>>
>>

-- 
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/baf570a6-91b6-4740-9694-5a9acef835ab%40googlegroups.com.

Reply via email to