WeeWX 4b15 setup error

50 views
Skip to first unread message

Xant

unread,
Mar 14, 2020, 9:23:32 PM3/14/20
to weewx-development

'setup.cfg' as the following:

[install]
home = /etc/weewx
prefix =
exec-prefix =
install_lib = /usr/share/weewx
install_scripts = /usr/share/weewx

[egg_info]
tag_build =
tag_date = 0

All files were installed correctly at designated folders, but the following:

/usr/bin/python: can't open file '/etc/weewx/bin/wee_config': [Errno 2] No such file or directory

It seems that the correct path would be:

/usr/share/weewx/wee_config

Xant

Thomas Keffer

unread,
Mar 14, 2020, 9:36:48 PM3/14/20
to weewx-development
The setup.py method wasn't really intended to be used to install in the system locations. 

Still, if this is the only problem, it should be possible to get it to work. Let me fiddle with it a bit.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/84c1e996-aa8d-4b32-9a1b-602911097156%40googlegroups.com.

Thomas Keffer

unread,
Mar 14, 2020, 9:42:43 PM3/14/20
to weewx-development
OK. Try 4.0.0b16

-tk

Xant

unread,
Mar 14, 2020, 10:47:40 PM3/14/20
to weewx-development

Good on b16! Acknowledge to be "a minor", but it was inserted in b15 (b14 was ok).

I'm puzzled as though "/etc/weewx" and "/usr/share/weewx" to be the 'original/formal' locations of WeeWX. If not, where is the "official" location? (apologies for this basic inquiry, but there are conflicting info).

Xant

Thomas Keffer

unread,
Mar 15, 2020, 8:40:58 AM3/15/20
to Xant, weewx-development
I didn't phrase that very well. Perhaps it would be better to say that the weewx version of setup.py was intended for installation in /home/weewx. 

But, you're right: generally Python's setup.py does install into /usr/share, /etc, and so on. However, our assumption, good or bad, was that users would use apt-get (or equivalent) if that's what they wanted.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.

Greg Troxel

unread,
Mar 15, 2020, 9:10:25 AM3/15/20
to Thomas Keffer, Xant, weewx-development
Thomas Keffer <tke...@gmail.com> writes:

> But, you're right: generally Python's setup.py does install into
> /usr/share, /etc, and so on. However, our assumption, good or bad, was that
> users would use apt-get (or equivalent) if that's what they wanted.

Fair enough, but I would expect a packaging system to use setup.py to
install in that packaging system's preferred location, in a destdir, and
then tar up.

Vince Skahan

unread,
Mar 15, 2020, 12:01:18 PM3/15/20
to weewx-development
On Saturday, March 14, 2020 at 7:47:40 PM UTC-7, Xant wrote:
I'm puzzled as though "/etc/weewx" and "/usr/share/weewx" to be the 'original/formal' locations of WeeWX. If not, where is the "official" location? 

Reply all
Reply to author
Forward
0 new messages