# New install pi3 with bookworm HELP

**URL:** <https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765>\
**Category:** WeatherFlow PiConsole\
**Created:** [October 28, 2023, 4:28pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765 "2023-10-28T16:28:17Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/eric/32/13553_2.png) [@eric](https://community.tempest.earth/u/eric)\
**Post date:** [October 29, 2023, 7:00pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/21 "2023-10-29T19:00:36Z")

</div>

if we already switch from UDP to the rest version, at least for now we take one problem away, see if this isn’t the real error and X just ok ?

```auto
Connection = UDP
rest_api = 1
SagerInterval = 6
Timeout = 20
Hardware = Pi3
Version = v23.10.1

```

guess I have to set something else for connection = ??

---

<div class="post-metadata">

**Author:** ![vinceskahan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vinceskahan/32/2785_2.png) [@vinceskahan](https://community.tempest.earth/u/vinceskahan)\
**Post date:** [October 29, 2023, 7:43pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/22 "2023-10-29T19:43:49Z")

</div>

@peter - I did some retesting on a pi4.

- For 32bit bookworm it installs and works fine with demo mode, UDP mode, and UDP+websockets mode as far as I can tell.

- For 64bit bookworm it installs fine but I get the ‘Unable to connect to X server’ message here too and no gui comes up even in demo mode. I did not do any poking around under the hood to see if there were any ‘dpkg -l’ differences resulting in missing dpkg(s) or the like for the 64bit os but my guess is there’s a package or two missing perhaps

Let me know if you want me to nuke my SD card to 64bit again and try my handcrafted installer that I last emailed to you a week ago. I can’t recall any more if I tested that on 64bit or not.

But 32bit bookworm definitely installs and runs ok in all configurations on a pi4 in brief testing here…

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [October 29, 2023, 7:55pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/23 "2023-10-29T19:55:28Z")

</div>

Try changing `Connection = UDP` to `Connection = Websocket` to switch back to the REST version. Do you still see the X error?

Can you also let me know the output of `dpkg --print-architecture`. Is there any chance you are running 64 bit by mistake?

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [October 29, 2023, 8:01pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/24 "2023-10-29T20:01:15Z")

</div>

> [@vinceskahan](#):
>
> For 64bit bookworm it installs fine but I get the ‘Unable to connect to X server’ message here too and no gui comes up even in demo mode.

OK, that’s interesting. I have never tested 64 bit as it is still technically unsupported (the installer should throw a warning), but I will dig into it now. The 64 bit version appears as the ‘recommended’ version of Bookworm in the Raspberry Pi Imager, so that might be catching people out.

Feel free to give your installer a spin if you have the time. It might help identify a missing package

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/eric/32/13553_2.png) [@eric](https://community.tempest.earth/u/eric)\
**Post date:** [October 29, 2023, 8:10pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/25 "2023-10-29T20:10:03Z")

</div>

> [@peter](#):
>
> `dpkg --print-architecture`

**eric@raspberrypi** : **~/wfpiconsole $** dpkg --print-architecture

armhf

```INFO
[INFO] [Kivy] v2.2.0
[INFO] [Kivy] Installed at "/home/eric/wfpiconsole/venv/lib/python3.11/site-packages/kivy/ __init__.py"
[INFO] [Python] v3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
[INFO] [Python] Interpreter at "/home/eric/wfpiconsole/venv/bin/python3"
[INFO] [Logger] Purge log fired. Processing...
[INFO] [Logger] Purge finished!
[INFO] [Config] Verifying station details
[INFO] [Factory] 190 symbols loaded
[INFO] [Image] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO] [Window] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO] [GL] Using the "OpenGL ES 2" graphics system
[INFO] [GL] Backend used <sdl2>
[INFO] [GL] OpenGL version <b'2.1 Mesa 23.2.1-0+rpt2'>
[INFO] [GL] OpenGL vendor <b'Broadcom'>
[INFO] [GL] OpenGL renderer <b'VC4 V3D 2.1'>
[INFO] [GL] OpenGL parsed version: 2, 1
[INFO] [GL] Shading version <b'1.20'>
[INFO] [GL] Texture max size <2048>
[INFO] [GL] Texture max units <16>
[INFO] [Window] auto add sdl2 input provider
[INFO] [Window] virtual keyboard not allowed, single mode, not docked
[INFO] [Text] Provider: sdl2(['text_pango'] ignored)
[INFO] [GL] NPOT texture support is available
Unable to connect to X server
[INFO] [ProbeSysfs] device match: /dev/input/event1
[INFO] [HIDInput] Read event from </dev/input/event1>
[INFO] [ProbeSysfs] device match: /dev/input/event0
[INFO] [HIDInput] Read event from </dev/input/event0>
[INFO] [Base] Start application main loop
[INFO] [HIDMotionEvent] using <generic ft5x06 (79)>
[INFO] [HIDMotionEvent] <generic ft5x06 (79)> range ABS X position is 0 - 799
[INFO] [HIDMotionEvent] <generic ft5x06 (79)> range ABS Y position is 0 - 479
[INFO] [HIDMotionEvent] <generic ft5x06 (79)> range position X is 0 - 799
[INFO] [HIDMotionEvent] using <vc4-hdmi>
[INFO] [HIDMotionEvent] <generic ft5x06 (79)> range position Y is 0 - 479

```

boots with same X server issue

---

<div class="post-metadata">

**Author:** ![vinceskahan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vinceskahan/32/2785_2.png) [@vinceskahan](https://community.tempest.earth/u/vinceskahan)\
**Post date:** [October 29, 2023, 8:34pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/26 "2023-10-29T20:34:38Z")

</div>

ok - burned a 64bit SD to be able to test here…

My quickie installer ‘does’ result in a working piconsole on 64bit on a pi4.

For pip:

- I use kivy==2.2.1 and you use 2.2.0

For dpkg:

- I do not install libopenblas-dev, but you do

I don’t see any other differences. Try the installer I PM’d you a week ago and see if you get the same result. I’m running the 10-10-2023 os and it does report arm64 to ‘dpkg --list-architecture’

---

<div class="post-metadata">

**Author:** ![vinceskahan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vinceskahan/32/2785_2.png) [@vinceskahan](https://community.tempest.earth/u/vinceskahan)\
**Post date:** [October 29, 2023, 8:50pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/27 "2023-10-29T20:50:26Z")

</div>

sigh - moved my working hand-crafted installation aside and ran the official installer and it also worked on arm64. I can’t explain in the least. I’ll do another cycle and try to make it break/fail again and then see if I can see what made it work this last time (sigh).

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/eric/32/13553_2.png) [@eric](https://community.tempest.earth/u/eric)\
**Post date:** [October 29, 2023, 8:50pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/28 "2023-10-29T20:50:50Z")

</div>

You folks are on a pi4 or better ?

bookworm is not using X11 server anymore on those but Wayland.  
Only older models rely still on X

> **[Raspberry Pi OS upgraded to Debian 12 "Bookworm" - CNX Software](https://www.cnx-software.com/2023/10/12/raspberry-pi-os-upgraded-to-debian-12-bookworm/)**
>
> Raspberry Pi has announced a new release of Raspberry Pi OS based on Debian 12 "Bookworm" upgrading from Debian 11 "Bullseye" which served as the base for

---

<div class="post-metadata">

**Author:** ![vinceskahan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vinceskahan/32/2785_2.png) [@vinceskahan](https://community.tempest.earth/u/vinceskahan)\
**Post date:** [October 29, 2023, 9:06pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/29 "2023-10-29T21:06:07Z")

</div>

On a pi4 ‘today’ a clean 64bit installation piconsole works fine in repeated tests. Yesterday it failed with the unable to connect to X server message. I can not explain it.

I am definitely on wayland in both failed (yesterday) and working (today) tests using the same image from 10-10-2023. “dpkg --print-architecture” returns arm64 as expected.

---

<div class="post-metadata">

**Author:** ![vinceskahan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vinceskahan/32/2785_2.png) [@vinceskahan](https://community.tempest.earth/u/vinceskahan)\
**Post date:** [October 30, 2023, 7:09pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/30 "2023-10-30T19:09:12Z")

</div>

@pete - just an update - I did a couple more installs on pi4 64bit while fiddling with other things and all succeeded. I can not explain why a couple of us were seeing periodic unable to connect to X server messages. All I can suggest is in that case folks save their wfpiconsole.ini file, rename the tree, and try another clean installation.

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/eric/32/13553_2.png) [@eric](https://community.tempest.earth/u/eric)\
**Post date:** [October 30, 2023, 8:21pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/31 "2023-10-30T20:21:13Z")

</div>

I’ll try this week end, no time for now 🫤  
will install weewx on a vm on my proxmox to avoid the share udp thing.  
Now re install means a lot of work to get both running.

---

<div class="post-metadata">

**Author:** ![pete](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/pete/32/15904_2.png) [@pete](https://community.tempest.earth/u/pete)\
**Post date:** [October 30, 2023, 10:26pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/32 "2023-10-30T22:26:35Z")

</div>

CC @peter fyi, wrong peter tagged

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [November 2, 2023, 10:49am UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/33 "2023-11-02T10:49:06Z")

</div>

I’ve made a couple of tweaks to the UDP code which should make sure the PiConsole correctly shares the UDP port. The changes are on the development branch. Would you mind testing them out?

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/eric/32/13553_2.png) [@eric](https://community.tempest.earth/u/eric)\
**Post date:** [November 2, 2023, 11:01am UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/34 "2023-11-02T11:01:22Z")

</div>

switched to beta branch but stil that X server issue.  
I have migrated weewx away and will (if time permits later tonight) re install bookworm and wfpiconsole

first see if I can eliminate the X server issue and once that is ok, I’ll re install a weewx and test the share again

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [November 2, 2023, 11:31am UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/35 "2023-11-02T11:31:08Z")

</div>

> [@eric](#):
>
> first see if I can eliminate the X server issue and once that is ok

Try activating the autostart with `wfpiconsole autostart-enable`. Someone over on Github found that this fixed the issue

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/eric/32/13553_2.png) [@eric](https://community.tempest.earth/u/eric)\
**Post date:** [November 2, 2023, 11:58am UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/36 "2023-11-02T11:58:34Z")

</div>

> [@peter](#):
>
> `wfpiconsole autostart-enable`

starts but not nice, once I wantto go in settings it crashes  
Get forecast and sunrise … all except the station data

```Nov

Nov 02 12:55:58 raspberrypi systemd[1]: wfpiconsole.service: Failed with result 'exit-code'.

Nov 02 12:55:58 raspberrypi systemd[1]: wfpiconsole.service: Consumed 14.036s CPU time.

Nov 02 12:55:58 raspberrypi systemd[1]: wfpiconsole.service: Scheduled restart job, restart counter is at 2.

Nov 02 12:55:58 raspberrypi systemd[1]: Stopped wfpiconsole.service - WeatherFlow PiConsole.

Nov 02 12:55:58 raspberrypi systemd[1]: wfpiconsole.service: Consumed 14.036s CPU time.

Nov 02 12:55:58 raspberrypi systemd[1]: Starting wfpiconsole.service - WeatherFlow PiConsole...

Nov 02 12:56:03 raspberrypi systemd[1]: Started wfpiconsole.service - WeatherFlow PiConsole.

```

 ![IMG_9923](https://us1.discourse-cdn.com/flex020/uploads/sws/original/3X/9/9/994258e9c80154abffe8a6440becfa9fd77ac601.jpeg)

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [November 2, 2023, 2:04pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/37 "2023-11-02T14:04:26Z")

</div>

More things to fix 😂. Are you using Websocket or UDP? Can you see whether the develop branch is any better? Navigate to the `wfpiconsole` directory and run `git checkout develop`. Then try and enable the auto start again

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/eric/32/13553_2.png) [@eric](https://community.tempest.earth/u/eric)\
**Post date:** [November 2, 2023, 4:40pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/38 "2023-11-02T16:40:10Z")

</div>

> [@peter](#):
>
> `git checkout develop`

am on dev channel already and this is extract of the ini file

````auto
Connection = UDP to Connection = Websocket
rest_api = 1
SagerInterval = 6
Timeout = 20
Hardware = Pi3
Version = v23.10.1```
````

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [November 2, 2023, 4:56pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/39 "2023-11-02T16:56:45Z")

</div>

OK - this is such a weird problem. I have been testing the autostart again on 64 bit Bookworm and see no issues with the console starting or the X window problem. Almost at this point it seems like you just need to install, re-flash the sd card, install again and repeat until you don’t get an error.

There are a couple of things to try though. First, run the raspi-config tool using `sudo raspi-config`. Navigate to `Advanced` and then `Wayland` and try toggling between the `Wayland` option and the `X11` option. Does that change the behaviour in any way?

---

<div class="post-metadata">

**Author:** ![vinceskahan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vinceskahan/32/2785_2.png) [@vinceskahan](https://community.tempest.earth/u/vinceskahan)\
**Post date:** [November 2, 2023, 5:02pm UTC](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765/40 "2023-11-02T17:02:18Z")

</div>

@eric if you want to do a “dpkg -l” and “pip3 list” after activating your python venv and post it somewhere, I can compare it to mine here that works for some reason. The dpkg list is going to be a long file so you’d need to stick it someplace online we can download it from.

[Previous page](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765.md?page=1)

[Next page](https://community.tempest.earth/t/new-install-pi3-with-bookworm-help/22765.md?page=3)
