wee_reports stopped working

45 views
Skip to first unread message

TheChoctlab

unread,
Sep 6, 2017, 11:27:16 PM9/6/17
to weewx-user
wee_reports –config=/etc/weewx/weewx.conf

Now yields the following:

Traceback (most recent call last):
  File "/usr/bin/wee_reports", line 69, in <module>
    main()
  File "/usr/bin/wee_reports", line 40, in main
    config_path, config_dict = weecfg.read_config(options.config_path, args)
  File "/usr/share/weewx/weecfg/__init__.py", line 221, in read_config
    locations=locations, file_name=file_name)
  File "/usr/share/weewx/weecfg/__init__.py", line 196, in find_file
    raise IOError("%s is not a file" % file_path)
IOError: –config=/etc/weewx/weewx.conf is not a file

However, /etc/weewx/weewx.conf does exist and I can bring it up at will in nano.


Andrew Milner

unread,
Sep 6, 2017, 11:46:39 PM9/6/17
to weewx-user
have you tried sudo?

what are the permissions for /etc/weewx/weewx.conf?

TheChoctlab

unread,
Sep 6, 2017, 11:53:49 PM9/6/17
to weewx-user
Same result when using sudo.

ls -l weewx.conf
-rw-r--r-- 1 root root 16493 Sep  6 20:06 weewx.conf

Andrew Milner

unread,
Sep 6, 2017, 11:59:05 PM9/6/17
to weewx-user
I don't know then - sorry.  I got odd results when running wee_reports and specifying a config file unless I used sudo wee_reports --config=

Have no other suggestions apart from moving the file to somewhere else and trying again.  I did my test by copying weew.conf to /home/pi and running reports, and it seemed ok once I used sudo.

Sorry - you'll have to wait for someone else's input!

gjr80

unread,
Sep 7, 2017, 12:01:13 AM9/7/17
to weewx-user
So what does the following show:

ls -l /etc/weewx/weewx.conf

show?

Gary

TheChoctlab

unread,
Sep 7, 2017, 12:01:45 AM9/7/17
to weewx-user
Thank you.

Andrew Milner

unread,
Sep 7, 2017, 12:07:37 AM9/7/17
to weewx-user
oo - I missed that subtlety Gary!!

TheChoctlab

unread,
Sep 7, 2017, 12:11:13 AM9/7/17
to weewx-user
Well, is this not curious?

Running sudo wee_reports without specifying the conf file yields:

$ sudo wee_reports
Using configuration file /etc/weewx/weewx.conf
Generating for all time

It uses the same file, from the same directory without squawking about it.

Andrew to the rescue... Again.

TheChoctlab

unread,
Sep 7, 2017, 12:13:16 AM9/7/17
to weewx-user
Gary,

$ ls -l /etc/weewx/weewx.conf
-rw-r--r-- 1 root root 16493 Sep  6 20:06 /etc/weewx/weewx.conf

gjr80

unread,
Sep 7, 2017, 12:18:46 AM9/7/17
to weewx-user
Ok, I see the problem now

wee_reports –config=/etc/weewx/weewx.conf

is different to

wee_reports --config=/etc/weewx/weewx.conf

Try the latter. As for my earlier post, always wary of files that are not where they should be in Linux when I don't see full paths, too easy to get muddled.

Gary

TheChoctlab

unread,
Sep 7, 2017, 12:26:39 AM9/7/17
to weewx-user
Oh, bruh-ther!

-- vs –

This what happens when one copies/pastes from Libre Writer. I should have caught that before taking up your and Andrew's time.
AUGH!

Thank you both, very much.

Andrew Milner

unread,
Sep 7, 2017, 12:27:56 AM9/7/17
to weewx...@googlegroups.com

Always use a text editor whenever possible

 

 

 

Sent from Mail for Windows 10

--
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/J-5CVTohgy8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

TheChoctlab

unread,
Sep 7, 2017, 12:34:18 AM9/7/17
to weewx-user
Done.
Reply all
Reply to author
Forward
0 new messages