if you had looked a little you would have found the solution and be up and running already ![]()
https://community.tempest.earth/t/weatherflow-piconsole/1933/2280?u=eric
if you had looked a little you would have found the solution and be up and running already ![]()
https://community.tempest.earth/t/weatherflow-piconsole/1933/2280?u=eric
What commands did you use to increase the swap space? Might be useful for other users who are also struggling to compile
might this the answer to your question ?
The error I get when trying to do the update is:

[✗] Updating Python package manager
Error: Unable to update Python package manager: pip
I did a sudo apt update and sudo apt full-upgrade -y before hand, so it’s all up to date. Anyone have any ideas how to get past this?
Touché! I should have done my own Googling ![]()
Can you run this command on the terminal and let me know the full output
python3 -m pip install --upgrade pip
$ python3 -m pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: pip in ./.local/lib/python3.9/site-packages (22.0)
ERROR: Exception:
Traceback (most recent call last):
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/cli/base_command.py”, line 165, in exc_logging_wrapper
status = run_func(*args)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/cli/req_command.py”, line 205, in wrapper
return func(self, options, args)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/commands/install.py”, line 339, in run
requirement_set = resolver.resolve(
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py”, line 94, in resolve
result = self._result = resolver.resolve(
File “/home/pi/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py”, line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py”, line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py”, line 172, in _add_to_criteria
if not criterion.candidates:
File “/home/pi/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/structs.py”, line 151, in bool
return bool(self._sequence)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py”, line 155, in bool
return any(self)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py”, line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py”, line 90, in _iter_built_with_inserted
for version, func in infos:
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py”, line 294, in iter_index_candidate_infos
result = self._finder.find_best_candidate(
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/package_finder.py”, line 868, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/package_finder.py”, line 809, in find_all_candidates
page_candidates = list(page_candidates_it)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/sources.py”, line 134, in page_candidates
yield from self._candidates_from_page(self._link)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/package_finder.py”, line 773, in process_project_url
page_links = list(parse_links(html_page, self._use_deprecated_html5lib))
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/collector.py”, line 310, in wrapper_wrapper
return list(fn(page, use_deprecated_html5lib))
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/collector.py”, line 350, in parse_links
parser.feed(page.content.decode(encoding))
File “/usr/lib/python3.9/html/parser.py”, line 110, in feed
self.goahead(0)
File “/usr/lib/python3.9/html/parser.py”, line 178, in goahead
k = self.parse_html_declaration(i)
File “/usr/lib/python3.9/html/parser.py”, line 269, in parse_html_declaration
self.handle_decl(rawdata[i+2:gtpos])
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/collector.py”, line 405, in handle_decl
self._raise_error()
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/collector.py”, line 426, in _raise_error
raise ValueError(
ValueError: HTML doctype missing or incorrect. Expected .
If you believe this error to be incorrect, try passing the command line option --use-deprecated=html5lib and please leave a comment on the pip issue at [DEPRECATION] Moving away from html5lib to html.parser · Issue #10825 · pypa/pip · GitHub.
pi@weathercon:~ $
update to v22.3.2 went smoothly. . .no problems encountered.
I read this → Unable to upgrade pip using pip install --upgrade pip - Stack Overflow
Should your script be changed to run this instead?
Made no difference.
$ pip install --upgrade pip --user
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: pip in ./.local/lib/python3.9/site-packages (22.0 )
ERROR: Exception:
Traceback (most recent call last):
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/cli/base_comma nd.py”, line 165, in exc_logging_wrapper
status = run_func(*args)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/cli/req_comman d.py”, line 205, in wrapper
return func(self, options, args)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/commands/insta ll.py”, line 339, in run
requirement_set = resolver.resolve(
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/res olvelib/resolver.py”, line 94, in resolve
result = self._result = resolver.resolve(
File “/home/pi/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resol vers.py”, line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resol vers.py”, line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resol vers.py”, line 172, in _add_to_criteria
if not criterion.candidates:
File “/home/pi/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/struc ts.py”, line 151, in bool
return bool(self._sequence)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/res olvelib/found_candidates.py”, line 155, in bool
return any(self)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/res olvelib/found_candidates.py”, line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/res olvelib/found_candidates.py”, line 90, in _iter_built_with_inserted
for version, func in infos:
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/resolution/res olvelib/factory.py”, line 294, in iter_index_candidate_infos
result = self._finder.find_best_candidate(
File “/home/pi/.local/lib/python3.9/site-packages/pip/internal/index/package finder.py”, line 868, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File “/home/pi/.local/lib/python3.9/site-packages/pip/internal/index/package finder.py”, line 809, in find_all_candidates
page_candidates = list(page_candidates_it)
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/sources. py”, line 134, in page_candidates
yield from self._candidates_from_page(self._link)
File “/home/pi/.local/lib/python3.9/site-packages/pip/internal/index/package finder.py”, line 773, in process_project_url
page_links = list(parse_links(html_page, self._use_deprecated_html5lib))
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/collecto r.py”, line 310, in wrapper_wrapper
return list(fn(page, use_deprecated_html5lib))
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/collecto r.py”, line 350, in parse_links
parser.feed(page.content.decode(encoding))
File “/usr/lib/python3.9/html/parser.py”, line 110, in feed
self.goahead(0)
File “/usr/lib/python3.9/html/parser.py”, line 178, in goahead
k = self.parse_html_declaration(i)
File “/usr/lib/python3.9/html/parser.py”, line 269, in parse_html_declaration
self.handle_decl(rawdata[i+2:gtpos])
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/collecto r.py”, line 405, in handle_decl
self._raise_error()
File “/home/pi/.local/lib/python3.9/site-packages/pip/_internal/index/collecto r.py”, line 426, in _raise_error
raise ValueError(
ValueError: HTML doctype missing or incorrect. Expected .
If you believe this error to be incorrect, try passing the command line option - -use-deprecated=html5lib and please leave a comment on the pip issue at https:// [DEPRECATION] Moving away from html5lib to html.parser · Issue #10825 · pypa/pip · GitHub.
The install script already uses the --user option to stop Python packages being installed in the root path. This isn’t anything to do with the PiConsole. Instead, it seems to be a bug in a paticular version of pip, which is the Python package manager. I think I have found a work around though (although use at your own risk, as it is quite drastic!).
Firstly, remove pip from your local path so that it falls back to the system version:
python3 -m pip uninstall pip
Then upgrade pip again to get the latest, bug free version:
python3 -m pip install --upgrade pip
In their defense it is increasingly impossible to find anything successfully in a thread with almost 2400 messages in it.
This particular product needs its own forum (google group?) and its own wiki (github?).
Does 22.3.2 fix the non-responsive touchscreen button issue on pi 4s? I was able to update with no problem, wfpiconsole starts up and runs with no problem, including display updates. But the mouse cursor is showing on the screen (no mouse attached) and the menu buttons at the bottom don’t react to touch.
That did the trick. Thanks so much for your prompt response and continuous efforts! This was the first Raspberry Pi project I worked out and this led me to setting up a bunch of other things. When things work, you end up getting motivated to keep trying to build more stuff ![]()
It should be fixed…! Can you open you wfpiconsole.ini file and make sure the Cursor key under the [Display]section is set to 0. Let me know if that works
( @peter )
Yeah I had the same issue - after today’s update (22.3.2). Arrow cursor on the screen and no touch response.
I do have a mini keyboard/trackpad dongle plugged in but the device is turned off.
If I turn on the KB/TP device it works - press the Menu buttons - however ‘Touchscreen’ still non-functional.
[Display]
TimeFormat = 12 hr
DateFormat = Monday, Jan 01 0000
LightningPanel = 1
IndoorTemp = 0
Cursor = 1
Border = 0
Fullscreen = 1
Width = 800
Height = 480
Cursor was set to 1. Changed it to 0 and rebooted, all is well.
Perfect! I thought I’d fixed it in such a way that this tweak wouldn’t be required, so I’ll have another look at it just in case.
See the post above yours for the fix!
thanks … it half fixed it …
If I hit [ESC] (back to desktop) cursor appears normally and everything works as expected.
Just lost the cursor on the (Kivy) wfpiconsole screen.
Have no problem with that. Just reporting the results.
Thanks again Peter for your instant response!