Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-08 Thread Blaise Cacramp

Hello this good morning

Here, it's +/- relaunched : There are 6 errors of this type there: ERROR 
weewx.manager: Unable to add record 2023-03-07 20:25:00 CET (1678217100) 
to database 'weewx': (1062, "Duplicate entry '1678217100' for key 
'PRIMARY'")


How to fix this?

Have I lost more than a week of recordings?

Thank you already for your good will

Note: I cut the MQTT so as not to clutter the report even more


Mar  9 07:37:13 PiMeteo weewx[5424]: Stopping weewx weather system: weewx.
Mar  9 07:37:13 PiMeteo systemd[1]: weewx.service: Succeeded.
Mar  9 07:37:13 PiMeteo systemd[1]: Stopped LSB: weewx weather system.
Mar  9 07:37:13 PiMeteo systemd[1]: Starting LSB: weewx weather system...
Mar  9 07:37:13 PiMeteo weewx[5455] INFO __main__: Initializing weewx 
version 4.10.2
Mar  9 07:37:13 PiMeteo weewx[5455] INFO __main__: Using Python 3.7.3 
(default, Oct 31 2022, 14:04:00) #012[GCC 8.3.0]

Mar  9 07:37:13 PiMeteo weewx[5455] INFO __main__: Located at /bin/python3
Mar  9 07:37:13 PiMeteo weewx[5455] INFO __main__: Platform 
Linux-5.10.103-v7l+-armv7l-with-debian-10.13

Mar  9 07:37:13 PiMeteo weewx[5455] INFO __main__: Locale is 'fr_BE.UTF-8'
Mar  9 07:37:13 PiMeteo weewx[5455] INFO __main__: Using configuration 
file /etc/weewx/weewx.conf

Mar  9 07:37:13 PiMeteo weewx[5455] INFO __main__: Debug is 1
Mar  9 07:37:13 PiMeteo weewx[5455] INFO __main__: PID file is 
/var/run/weewx.pid

Mar  9 07:37:13 PiMeteo weewx[5459] DEBUG __main__: Initializing engine
Mar  9 07:37:13 PiMeteo weewx[5459] INFO weewx.engine: Loading station 
type Vantage (weewx.drivers.vantage)
Mar  9 07:37:13 PiMeteo weewx[5459] DEBUG weewx.drivers.vantage: Driver 
version is 3.5.2
Mar  9 07:37:13 PiMeteo weewx[5459] DEBUG weewx.drivers.vantage: Option 
loop_request=1
Mar  9 07:37:13 PiMeteo weewx[5459] DEBUG weewx.drivers.vantage: Opened 
up serial port /dev/ttyUSB0; baud 19200; timeout 4.00

Mar  9 07:37:13 PiMeteo weewx[5444]: Starting weewx weather system: weewx.
Mar  9 07:37:13 PiMeteo systemd[1]: Started LSB: weewx weather system.
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.drivers.vantage: 
Successfully woke up Vantage console
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.drivers.vantage: 
Hardware type is 16

Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.drivers.vantage: ISS ID is 1
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.drivers.vantage: 
Hardware name: Vantage Pro2
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.engine.StdTimeSynch
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdTimeSynch
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.engine.StdConvert
Mar  9 07:37:14 PiMeteo weewx[5459] INFO weewx.engine: StdConvert target 
unit is 0x10
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdConvert
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.engine.StdCalibrate
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdCalibrate
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.engine.StdQC
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdQC
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.wxservices.StdWXCalculate
Mar  9 07:37:14 PiMeteo weewx[5459] INFO weewx.wxservices: 
StdWXCalculate will use data binding wx_binding
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.manager: Daily summary 
version is 4.0
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Finished loading 
service weewx.wxservices.StdWXCalculate
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdWXXTypes
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdWXXTypes
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdPressureCooker
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdPressureCooker
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdRainRater
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdRainRater
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdDelta
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdDelta
Mar  9 07:37:14 PiMeteo weewx[5459] DEBUG weewx.engine: Loading service 
weewx.engine.StdArchive
Mar  9 07:37:14 PiMeteo weewx[5459] INFO weewx.engine: Archive will use 
data binding wx_binding
Mar  9 07:37:14 PiMeteo weewx[5459] INFO weewx.engine: Record generation 
will be attempted in 'hardware'
Mar  9 07:37:14 PiMeteo weewx[5459] INFO weewx.engine: Using archive 
interval of 300 seconds (specified by hardware)
Mar  9 07:37:14 PiM

Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-08 Thread vince
Not a problem. 

Yes, the operating system learning curve can be painful if you are using 
unusual hardware.

In your case, your FTDI adaptor seems to be the problem, as it requires an 
extra kernel module to be enabled.  If you instead used a PL2303 compatible 
serial adaptor it would have worked fine the first time with no 
customization required.

So your choices are:

   - buy a PL2303 serial adaptor and use that as your hardware
   - or update your os to current and hope the module will modprobe 
   successfully
   - or try to follow the link I provided with what seems to be one way to 
   get the modprobe to work
   - or reflash your os to current, after saving your setup someplace and 
   restoring it so you don't lose your skin customizations

Warren provided a link to how to backup and restore your configuration in 
his reply.  Eventually you will need to know how to do that no matter how 
you solve today's problem.

(hope the translation works ok)

On Wednesday, March 8, 2023 at 12:07:36 PM UTC-8 Blaise Cacramp wrote:

Sorry to have bothered you (your sigh) 
I have been self-taught since 1978. With my financial means, I learned 
to program on a Ti-57 (49 programming step!) Then a pokcet-PC limited to 
2 kB and 26 variables. We learn to be concise. 
But you know like me that IT is vast. And that you cannot be competent 
in everything. 
Thank you for your help and to animate this group. 

Le 08-03-23 à 20:48, vince a écrit : 
> Sigh 

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/03594105-c1dc-4f4a-a897-6524475dc896n%40googlegroups.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-08 Thread Blaise Cacramp

Sorry to have bothered you (your sigh)
I have been self-taught since 1978. With my financial means, I learned 
to program on a Ti-57 (49 programming step!) Then a pokcet-PC limited to 
2 kB and 26 variables. We learn to be concise.
But you know like me that IT is vast. And that you cannot be competent 
in everything.

Thank you for your help and to animate this group.

Le 08-03-23 à 20:48, vince a écrit :

Sigh


--
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/75aaecf6-1f60-64f5-da60-c36987ef6072%40gmail.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-08 Thread Warren Gill
It's very easy to make a backup, including all your customizations and
database, store them offsite, and restore on top of a new installation (as
long as they are the same weewx version)
Check https://weewx.com/docs/usersguide.htm#backup for details

On Wed, Mar 8, 2023 at 1:48 PM vince  wrote:

> Sigh - best I can do then is to say to try "sudo apt-get update" and "sudo
> apt-get upgrade -y" and hope it helps.
>
> Or try the suggestion in the link I provided to the Raspberry Pi forums.
>
> On Wednesday, March 8, 2023 at 11:02:16 AM UTC-8 Blaise Cacramp wrote:
>
>> Thank you,
>>
>> but is this procedure no longer sure to keep the database and the
>> customization of the skin
>>
>> Le 08-03-23 à 18:37, vince a écrit :
>> > A longer description and possible fix is
>> > in https://forums.raspberrypi.com/viewtopic.php?t=262963#p1601067
>>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/22cec8a1-3e99-4795-b0a9-0339e97aac71n%40googlegroups.com
> 
> .
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CA%2Bz%2BvD5_kZRebKCQg9PjwR1UZ8vmCEdtEtNZKWgz%2B2wGAM%2Bkfg%40mail.gmail.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-08 Thread vince
Sigh - best I can do then is to say to try "sudo apt-get update" and "sudo 
apt-get upgrade -y" and hope it helps.

Or try the suggestion in the link I provided to the Raspberry Pi forums.

On Wednesday, March 8, 2023 at 11:02:16 AM UTC-8 Blaise Cacramp wrote:

> Thank you,
>
> but is this procedure no longer sure to keep the database and the 
> customization of the skin
>
> Le 08-03-23 à 18:37, vince a écrit :
> > A longer description and possible fix is 
> > in https://forums.raspberrypi.com/viewtopic.php?t=262963#p1601067 
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/22cec8a1-3e99-4795-b0a9-0339e97aac71n%40googlegroups.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-08 Thread Blaise Cacramp

Thank you,

but is this procedure no longer sure to keep the database and the 
customization of the skin


Le 08-03-23 à 18:37, vince a écrit :
A longer description and possible fix is 
in https://forums.raspberrypi.com/viewtopic.php?t=262963#p1601067 


--
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/18d03e48-0e80-68bc-8691-fbf7347ed188%40gmail.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-08 Thread vince
You have a very old os and python version from your logs and this thread. 
 It is far simpler to just put a new SD card in and start over on a clean 
installation.

A longer description and possible fix is 
in https://forums.raspberrypi.com/viewtopic.php?t=262963#p1601067 

My recommendation is to just flash a new SD card with current RaspiOS and 
start over.  That only takes a few minutes and is known to work.
On Wednesday, March 8, 2023 at 6:53:13 AM UTC-8 Blaise Cacramp wrote:

> Well, anyway I was not at home and almost without internet.
> Unanswered, I was going to start doing research elsewhere on the web.
> Well, it still doesn't work:
>
> pi@PiMeteo:~ $ sudo modprobe ftdi_sio
> modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not 
> open moddep file '/lib/modules/5.10.63-v7l+/modules.dep.bin'
> modprobe: FATAL: Module ftdi_sio not found in directory 
> /lib/modules/5.10.63-v7l+
>
> Le 08-03-23 à 03:32, vince a écrit :
>
> sudo modprobe ftdi_sio
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7b1cd3b7-50e9-40eb-ae97-f9e48a65c93bn%40googlegroups.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-08 Thread Blaise Cacramp

Well, anyway I was not at home and almost without internet.
Unanswered, I was going to start doing research elsewhere on the web.
Well, it still doesn't work:

pi@PiMeteo:~ $ sudo modprobe ftdi_sio
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not 
open moddep file '/lib/modules/5.10.63-v7l+/modules.dep.bin'
modprobe: FATAL: Module ftdi_sio not found in directory 
/lib/modules/5.10.63-v7l+


Le 08-03-23 à 03:32, vince a écrit :

sudo modprobe ftdi_sio


--
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fa34c2d0-e9cb-4a99-f32c-4632b8ae9086%40gmail.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-07 Thread vince
Sorry - I did not see your reply.

Try "sudo modprobe ftdi_sio"

Then run 'sudo dmesg' again and see if it attached a device in /dev 
successfully...

On Sunday, March 5, 2023 at 10:02:09 AM UTC-8 Blaise Cacramp wrote:

> "lsmod" does not see much.
> And when I try this with "insmod", it's not terrible.
> Sorry, I'm far from being a Linuxien guru
>
> pi@PiMeteo:~ $ lsmod
> Module  Size  Used by
>
> ---
>
> pi@PiMeteo:~ $ insmod /dev/ttyUSB0
> insmod: ERROR: could not load module /dev/ttyUSB0: No such file or 
> directory
>
> Le 05-03-23 à 18:34, vince a écrit :
> > So the pi is seeing the device, but it is not allocating a tty in /dev 
> > to it.
> > You might just need to insmod a kernel module so it assigns a device 
> > in /dev to it.
> >
> > Check your 'lsmod' output and see if the ftdi_sio device is loaded. 
> >  If not, load it with 'insmod' and see if that helps.
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/894f99e4-03d2-4d3e-9796-957a7e43426en%40googlegroups.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-05 Thread Blaise Cacramp

"lsmod" does not see much.
And when I try this with "insmod", it's not terrible.
Sorry, I'm far from being a Linuxien guru

pi@PiMeteo:~ $ lsmod
Module  Size  Used by

---

pi@PiMeteo:~ $ insmod /dev/ttyUSB0
insmod: ERROR: could not load module /dev/ttyUSB0: No such file or directory

Le 05-03-23 à 18:34, vince a écrit :
So the pi is seeing the device, but it is not allocating a tty in /dev 
to it.
You might just need to insmod a kernel module so it assigns a device 
in /dev to it.


Check your 'lsmod' output and see if the ftdi_sio device is loaded. 
 If not, load it with 'insmod' and see if that helps.


--
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/31d65f55-28b1-62c9-b574-95009f441bd8%40gmail.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-05 Thread vince
[56543.148991] usb 1-1.4: USB disconnect, device number 3
[56604.597374] usb 1-1.4: new full-speed USB device number 4 using xhci_hcd
[56604.745456] usb 1-1.4: New USB device found, idVendor=0403, 
idProduct=6015, bcdDevice=10.00
[56604.745478] usb 1-1.4: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[56604.745497] usb 1-1.4: Product: FT231X USB UART
[56604.745514] usb 1-1.4: Manufacturer: FTDI
[56604.745530] usb 1-1.4: SerialNumber: D309M352

pi@PiMeteo:~ $ lsusb 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0403:6015 Future Technology Devices International, 
Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub

So the pi is seeing the device, but it is not allocating a tty in /dev to 
it.
You might just need to insmod a kernel module so it assigns a device in 
/dev to it.

Check your 'lsmod' output and see if the ftdi_sio device is loaded.  If 
not, load it with 'insmod' and see if that helps.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e766be12-73f6-4f87-856c-65c790ad4dbcn%40googlegroups.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-05 Thread Blaise Cacramp

Hello and thank you
It's very verbose and I don't see anything clear. Here is the 2nd dmesg

pi@PiMeteo:~ $ dmesg
[    0.00] Booting Linux on physical CPU 0x0
[    0.00] Linux version 5.10.63-v7l+ (dom@buildbot) 
(arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld 
(GNU Binutils for Ubuntu) 2.34) #1496 SMP Wed Dec 1 15:58:56 GMT 2021
[    0.00] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), 
cr=30c5383d

[    0.00] CPU: div instructions available: patching division code
[    0.00] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction 
cache

[    0.00] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1
[    0.00] random: fast init done
[    0.00] Memory policy: Data cache writealloc
[    0.00] Reserved memory: created CMA memory pool at 
0x1ac0, size 320 MiB
[    0.00] OF: reserved mem: initialized node linux,cma, compatible 
id shared-dma-pool

[    0.00] Zone ranges:
[    0.00]   DMA  [mem 0x-0x2fff]
[    0.00]   Normal   empty
[    0.00]   HighMem  [mem 0x3000-0xfbff]
[    0.00] Movable zone start for each node
[    0.00] Early memory node ranges
[    0.00]   node   0: [mem 0x-0x3b3f]
[    0.00]   node   0: [mem 0x4000-0xfbff]
[    0.00] Initmem setup node 0 [mem 
0x-0xfbff]

[    0.00] On node 0 totalpages: 1012736
[    0.00]   DMA zone: 1728 pages used for memmap
[    0.00]   DMA zone: 0 pages reserved
[    0.00]   DMA zone: 196608 pages, LIFO batch:63
[    0.00]   HighMem zone: 816128 pages, LIFO batch:63
[    0.00] percpu: Embedded 20 pages/cpu s50828 r8192 d22900 u81920
[    0.00] pcpu-alloc: s50828 r8192 d22900 u81920 alloc=20*4096
[    0.00] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.00] Built 1 zonelists, mobility grouping on.  Total pages: 
1011008
[    0.00] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 
snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 
video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=DC:A6:32:51:75:1D 
vc_mem.mem_base=0x3ec0 vc_mem.mem_size=0x4000  
console=ttyS0,115200 console=tty1 root=PARTUUID=b9db7205-02 
rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash 
plymouth.ignore-serial-consoles

[    0.00] Kernel parameter elevator= does not have any effect anymore.
   Please use sysfs to set IO scheduler for individual devices.
[    0.00] Dentry cache hash table entries: 131072 (order: 7, 524288 
bytes, linear)
[    0.00] Inode-cache hash table entries: 65536 (order: 6, 262144 
bytes, linear)

[    0.00] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.00] software IO TLB: mapped [mem 
0x1489-0x1889] (64MB)
[    0.00] Memory: 3601132K/4050944K available (10240K kernel code, 
1364K rwdata, 3192K rodata, 2048K init, 891K bss, 122132K reserved, 
327680K cma-reserved, 3264512K highmem)

[    0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.00] ftrace: allocating 34315 entries in 68 pages
[    0.00] ftrace: allocated 68 pages with 2 groups
[    0.00] rcu: Hierarchical RCU implementation.
[    0.00]     Rude variant of Tasks RCU enabled.
[    0.00]     Tracing variant of Tasks RCU enabled.
[    0.00] rcu: RCU calculated value of scheduler-enlistment delay 
is 10 jiffies.

[    0.00] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.00] GIC: Using split EOI/Deactivate mode
[    0.00] random: get_random_bytes called from 
start_kernel+0x3c8/0x59c with crng_init=1
[    0.08] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps 
every 2147483647500ns
[    0.27] clocksource: timer: mask: 0x max_cycles: 
0x, max_idle_ns: 1911260446275 ns

[    0.86] bcm2835: system timer (irq = 25)
[    0.000730] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000748] clocksource: arch_sys_counter: mask: 0xff 
max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000766] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps 
every 4398046511102ns

[    0.000781] Switching to timer-based delay loop, resolution 18ns
[    0.001034] Console: colour dummy device 80x30
[    0.001102] printk: console [tty1] enabled
[    0.001158] Calibrating delay loop (skipped), value calculated using 
timer frequency.. 108.00 BogoMIPS (lpj=54)

[    0.001190] pid_max: default: 32768 minimum: 301
[    0.001355] LSM: Security Framework initializing
[    0.001539] Mount-cache hash table entries: 2048 (order: 1, 8192 
bytes, linear)
[    0.001564] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 
bytes, linear)

[    0.003019] cgroup: Disabling memory control group subsystem
[    0.003249] CPU: Testing write buffer coherency: ok
[    0.003699] CPU0: thread -1, cpu 0, socket 0, mpi

Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-04 Thread vince
Unplug the device.
Run the 'dmesg' command.
Plug in the device.
Run the 'dmesg' command again
It will tell you which device it attached it to.

On Saturday, March 4, 2023 at 12:44:41 PM UTC-8 Blaise Cacramp wrote:

> I have already tried the 4 ports, without success
>
> pi@PiMeteo:~ $ sudo geany /etc/weewx/weewx.conf
> pi@PiMeteo:~ $ sudo /etc/init.d/weewx restart
> [ ok ] Restarting weewx (via systemctl): weewx.service.
> pi@PiMeteo:~ $ sudo tail -f /var/log/syslog | tee /var/tmp/SysLog
> Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> self.serial_port = serial.Serial(self.port, self.baudrate, 
> timeout=self.timeout)
> Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
> File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in 
> __init__
> Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> self.open()
> Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
> File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in 
> open
> Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> raise SerialException(msg.errno, "could not open port {}: 
> {}".format(self._port, msg))
> Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> serial.serialutil.SerialException: [Errno 2] could not open port 
> /dev/ttyUSB0: [Errno 2] Aucun fichier ou dossier de ce type: '/dev/ttyUSB0'
> Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL __main__: Unable to load 
> driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] Aucun fichier 
> ou dossier de ce type: '/dev/ttyUSB0'
> Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL __main__:   Waiting 
> 60 seconds then retrying...
> Mar  4 21:39:39 PiMeteo weewx[3459]: Starting weewx weather system: weewx.
> Mar  4 21:39:39 PiMeteo systemd[1]: Started LSB: weewx weather system.
> Mar  4 21:40:39 PiMeteo weewx[3474] INFO __main__: retrying...
> Mar  4 21:40:39 PiMeteo weewx[3474] DEBUG __main__: Initializing engine
> Mar  4 21:40:39 PiMeteo weewx[3474] INFO weewx.engine: Loading station 
> type Vantage (weewx.drivers.vantage)
> Mar  4 21:40:39 PiMeteo weewx[3474] DEBUG weewx.drivers.vantage: Driver 
> version is 3.5.2
> Mar  4 21:40:39 PiMeteo weewx[3474] DEBUG weewx.drivers.vantage: Option 
> loop_request=1
> Mar  4 21:40:39 PiMeteo weewx[3474] ERROR weewx.engine: Import of driver 
> failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] Aucun fichier 
> ou dossier de ce type: '/dev/ttyUSB0' ( 'serial.serialutil.SerialException'>)
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> Traceback (most recent call last):
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
> File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in 
> open
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 
> '/dev/ttyUSB0'
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> During handling of the above exception, another exception occurred:
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> Traceback (most recent call last):
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
> File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> self.console = loader_function(config_dict, self)
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
> File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> return VantageService(engine, config_dict)
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
> File "/usr/share/weewx/weewx/drivers/vantage.py", line 1989, in __init__
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
> File "/usr/share/weewx/weewx/drivers/vantage.py", line 531, in __init__
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> self.port.openPort()
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
> File "/usr/share/weewx/weewx/drivers/vantage.py", line 318, in openPort
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
> self.serial_port = serial.Serial(self.port, self.baudrate, 
> timeout=self.timeout)
> Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
> File "/us

Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-04 Thread Blaise Cacramp

I have already tried the 4 ports, without success

pi@PiMeteo:~ $ sudo geany /etc/weewx/weewx.conf
pi@PiMeteo:~ $ sudo /etc/init.d/weewx restart
[ ok ] Restarting weewx (via systemctl): weewx.service.
pi@PiMeteo:~ $ sudo tail -f /var/log/syslog | tee /var/tmp/SysLog
Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
self.serial_port = serial.Serial(self.port, self.baudrate, 
timeout=self.timeout)
Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__
Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
self.open()
Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open
Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
raise SerialException(msg.errno, "could not open port {}: 
{}".format(self._port, msg))
Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
serial.serialutil.SerialException: [Errno 2] could not open port 
/dev/ttyUSB0: [Errno 2] Aucun fichier ou dossier de ce type: '/dev/ttyUSB0'
Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL __main__: Unable to load 
driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] Aucun 
fichier ou dossier de ce type: '/dev/ttyUSB0'
Mar  4 21:39:39 PiMeteo weewx[3474] CRITICAL __main__:  Waiting 
60 seconds then retrying...

Mar  4 21:39:39 PiMeteo weewx[3459]: Starting weewx weather system: weewx.
Mar  4 21:39:39 PiMeteo systemd[1]: Started LSB: weewx weather system.
Mar  4 21:40:39 PiMeteo weewx[3474] INFO __main__: retrying...
Mar  4 21:40:39 PiMeteo weewx[3474] DEBUG __main__: Initializing engine
Mar  4 21:40:39 PiMeteo weewx[3474] INFO weewx.engine: Loading station 
type Vantage (weewx.drivers.vantage)
Mar  4 21:40:39 PiMeteo weewx[3474] DEBUG weewx.drivers.vantage: Driver 
version is 3.5.2
Mar  4 21:40:39 PiMeteo weewx[3474] DEBUG weewx.drivers.vantage: Option 
loop_request=1
Mar  4 21:40:39 PiMeteo weewx[3474] ERROR weewx.engine: Import of driver 
failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] Aucun 
fichier ou dossier de ce type: '/dev/ttyUSB0' ('serial.serialutil.SerialException'>)
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
Traceback (most recent call last):
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in open
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 
'/dev/ttyUSB0'

Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   During 
handling of the above exception, another exception occurred:

Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine: 
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
Traceback (most recent call last):
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
self.console = loader_function(config_dict, self)
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
return VantageService(engine, config_dict)
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 1989, in __init__
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
Vantage.__init__(self, **config_dict[DRIVER_NAME])
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 531, in __init__
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
self.port.openPort()
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 318, in openPort
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
self.serial_port = serial.Serial(self.port, self.baudrate, 
timeout=self.timeout)
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
self.open()
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:     File 
"/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open
Mar  4 21:40:39 PiMeteo weewx[3474] CRITICAL weewx.engine:   
raise SerialException(msg.errno, "could not open port {}: 
{}".format(self._port, msg))
Mar  4 21:40:39 PiM

Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-04 Thread vince
Try /dev/ttyUSB0 and see if that works

The dmesg command will tell you which device is attached.

Here is the output for my pi4, which uses a pl2303 serial/usb adaptor to 
connect to a Davis serial logger.

pi@pi4:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial 
Port / Mobile Action MA-8910P   <
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

pi@pi4:~ $ dmesg | grep -i usb
[1.853807] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[2.036438] usb 1-1: New USB device found, idVendor=2109, 
idProduct=3431, bcdDevice= 4.21
[2.036495] usb 1-1: New USB device strings: Mfr=0, Product=1, 
SerialNumber=0
[2.036530] usb 1-1: Product: USB2.0 Hub
[2.039321] hub 1-1:1.0: USB hub found
[2.363822] usb 1-1.3: new full-speed USB device number 3 using xhci_hcd
[2.510398] usb 1-1.3: New USB device found, idVendor=067b, 
idProduct=2303, bcdDevice= 3.00
[2.510458] usb 1-1.3: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[2.510499] usb 1-1.3: Product: USB-Serial Controller
[2.510530] usb 1-1.3: Manufacturer: Prolific Technology Inc.
[6.685846] usbcore: registered new interface driver brcmfmac
[6.767495] usbcore: registered new interface driver usbserial_generic
[6.767732] usbserial: USB Serial support registered for generic
[6.828565] usbcore: registered new interface driver pl2303
[6.828727] usbserial: USB Serial support registered for pl2303
[6.898445] usb 1-1.3: pl2303 converter now attached to ttyUSB0   
 <=

So for my system using a pl2303 serial to usb adaptor:
port = /dev/ttyUSB0

(apologies if any translation of this gets garbled)


-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/28b3f487-0764-43ab-9433-1341c8245633n%40googlegroups.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-04 Thread PC
It's a PI4
USB2.0 port at the bottom left

Le samedi 4 mars 2023 à 19:18:30 UTC+1, PC a écrit :

> toujours le même problème
>
>   ## 
> Mar  4 19:14:11 PiMeteo systemd[1]: Stopping LSB: weewx weather system...
> Mar  4 19:14:11 PiMeteo weewx[1515] INFO __main__: Received signal TERM 
> (15).
> Mar  4 19:14:16 PiMeteo weewx[1546]: Stopping weewx weather system: weewx..
> Mar  4 19:14:16 PiMeteo systemd[1]: weewx.service: Succeeded.
> Mar  4 19:14:16 PiMeteo systemd[1]: Stopped LSB: weewx weather system.
> Mar  4 19:14:16 PiMeteo systemd[1]: Starting LSB: weewx weather system...
> Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Initializing weewx 
> version 4.10.2
> Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Using Python 3.7.3 
> (default, Oct 31 2022, 14:04:00) #012[GCC 8.3.0]
> Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Located at /bin/python3
> Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Platform 
> Linux-5.10.63-v7l+-armv7l-with-debian-10.13
> Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Locale is 'fr_BE.UTF-8'
> Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Using configuration 
> file /etc/weewx/weewx.conf
> Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Debug is 1
> Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: PID file is 
> /var/run/weewx.pid
> Mar  4 19:14:16 PiMeteo weewx[1589] DEBUG __main__: Initializing engine
> Mar  4 19:14:16 PiMeteo weewx[1589] INFO weewx.engine: Loading station 
> type Vantage (weewx.drivers.vantage)
> Mar  4 19:14:16 PiMeteo weewx[1589] DEBUG weewx.drivers.vantage: Driver 
> version is 3.5.2
> Mar  4 19:14:16 PiMeteo weewx[1589] DEBUG weewx.drivers.vantage: Option 
> loop_request=1
> Mar  4 19:14:16 PiMeteo weewx[1589] ERROR weewx.engine: Import of driver 
> failed: [Errno 2] could not open port /dev/ttyUSB2: [Errno 2] Aucun fichier 
> ou dossier de ce type: '/dev/ttyUSB2' ( 'serial.serialutil.SerialException'>)
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  Traceback (most recent call last):
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:    
>  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in 
> open
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 
> '/dev/ttyUSB2'
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:   
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  During handling of the above exception, another exception occurred:
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:   
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  Traceback (most recent call last):
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:    
>  File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  self.console = loader_function(config_dict, self)
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:    
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  return VantageService(engine, config_dict)
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:    
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1989, in __init__
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:    
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 531, in __init__
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  self.port.openPort()
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:    
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 318, in openPort
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  self.serial_port = serial.Serial(self.port, self.baudrate, 
> timeout=self.timeout)
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:    
>  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in 
> __init__
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  self.open()
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:    
>  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in 
> open
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  raise SerialException(msg.errno, "could not open port {}: 
> {}".format(self._port, msg))
> Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
>  serial.serialutil.SerialExcep

Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-04 Thread PC
toujours le même problème

  ## 
Mar  4 19:14:11 PiMeteo systemd[1]: Stopping LSB: weewx weather system...
Mar  4 19:14:11 PiMeteo weewx[1515] INFO __main__: Received signal TERM 
(15).
Mar  4 19:14:16 PiMeteo weewx[1546]: Stopping weewx weather system: weewx..
Mar  4 19:14:16 PiMeteo systemd[1]: weewx.service: Succeeded.
Mar  4 19:14:16 PiMeteo systemd[1]: Stopped LSB: weewx weather system.
Mar  4 19:14:16 PiMeteo systemd[1]: Starting LSB: weewx weather system...
Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Initializing weewx 
version 4.10.2
Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Using Python 3.7.3 
(default, Oct 31 2022, 14:04:00) #012[GCC 8.3.0]
Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Located at /bin/python3
Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Platform 
Linux-5.10.63-v7l+-armv7l-with-debian-10.13
Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Locale is 'fr_BE.UTF-8'
Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Using configuration file 
/etc/weewx/weewx.conf
Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: Debug is 1
Mar  4 19:14:16 PiMeteo weewx[1585] INFO __main__: PID file is 
/var/run/weewx.pid
Mar  4 19:14:16 PiMeteo weewx[1589] DEBUG __main__: Initializing engine
Mar  4 19:14:16 PiMeteo weewx[1589] INFO weewx.engine: Loading station type 
Vantage (weewx.drivers.vantage)
Mar  4 19:14:16 PiMeteo weewx[1589] DEBUG weewx.drivers.vantage: Driver 
version is 3.5.2
Mar  4 19:14:16 PiMeteo weewx[1589] DEBUG weewx.drivers.vantage: Option 
loop_request=1
Mar  4 19:14:16 PiMeteo weewx[1589] ERROR weewx.engine: Import of driver 
failed: [Errno 2] could not open port /dev/ttyUSB2: [Errno 2] Aucun fichier 
ou dossier de ce type: '/dev/ttyUSB2' ()
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 Traceback (most recent call last):
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: File 
"/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in open
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 
'/dev/ttyUSB2'
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:   
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:   During 
handling of the above exception, another exception occurred:
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:   
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 Traceback (most recent call last):
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 self.console = loader_function(config_dict, self)
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 return VantageService(engine, config_dict)
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 1989, in __init__
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 Vantage.__init__(self, **config_dict[DRIVER_NAME])
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 531, in __init__
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 self.port.openPort()
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 318, in openPort
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 self.serial_port = serial.Serial(self.port, self.baudrate, 
timeout=self.timeout)
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: File 
"/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 self.open()
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: File 
"/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 raise SerialException(msg.errno, "could not open port {}: 
{}".format(self._port, msg))
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine:  
 serial.serialutil.SerialException: [Errno 2] could not open port 
/dev/ttyUSB2: [Errno 2] Aucun fichier ou dossier de ce type: '/dev/ttyUSB2'
Mar  4 19:14:16 PiMeteo weewx[1589] CRITICAL __main__: Unable to load 
driver: [Errno 2] could not open port /dev/ttyUSB2: [Errno 2] Aucun fichier 
ou dossier de ce type: '/dev/ttyUSB2'
Mar

Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-04 Thread Blaise Cacramp
Yes, that's what I also thought: a problem in my IP adapter. (the LED no 
longer flashes)

Fortunately I have a USB adapter in a corner. I will change that.
Thank you Tom

Le 04-03-23 à 14:05, Tom Keffer a écrit :
I am guessing that you are trying to connect to a Vantage station 
through an ethernet connection. Your computer is complaining that 
there is no path to the IP address 192.168.0.13.


1. Is this truly a Vantage with an IP logger? They exist, but they are 
very rare. Perhaps it is really a USB or serial logger, and you 
specified the wrong type in weewx.conf under [Vantage].


2. If you truly have an IP logger, make sure you have the right IP 
address, and that your router is letting you access it. You may have a 
firewall problem.




--
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/dc82-412d-2f2a-cde5-282ad0e40ea5%40gmail.com.


Re: [weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-04 Thread Tom Keffer
I am guessing that you are trying to connect to a Vantage station through
an ethernet connection. Your computer is complaining that there is no path
to the IP address 192.168.0.13.

1. Is this truly a Vantage with an IP logger? They exist, but they are very
rare. Perhaps it is really a USB or serial logger, and you specified the
wrong type in weewx.conf under [Vantage].

2. If you truly have an IP logger, make sure you have the right IP address,
and that your router is letting you access it. You may have a firewall
problem.

-tk

On Sat, Mar 4, 2023 at 1:51 AM PC  wrote:

> Hello, I have this error that I can't decipher. (and in addition, I am
> French -speaking)
> Can you help me ?
> THANKS !
>
> Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Initializing weewx
> version 4.10.1
> Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Using Python 3.7.3
> (default, Oct 31 2022, 14:04:00) #012[GCC 8.3.0]
> Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Located at /bin/python3
> Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Platform
> Linux-5.10.63-v7l+-armv7l-with-debian-10.13
> Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Locale is 'fr_BE.UTF-8'
> Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Using configuration
> file /etc/weewx/weewx.conf
> Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Debug is 1
> Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: PID file is
> /var/run/weewx.pid
> Mar  4 10:28:04 PiMeteo weewx[1459] DEBUG __main__: Initializing engine
> Mar  4 10:28:04 PiMeteo weewx[1459] INFO weewx.engine: Loading station
> type Vantage (weewx.drivers.vantage)
> Mar  4 10:28:04 PiMeteo weewx[1459] DEBUG weewx.drivers.vantage: Driver
> version is 3.5.2
> Mar  4 10:28:04 PiMeteo weewx[1459] DEBUG weewx.drivers.vantage: Option
> loop_request=1
> Mar  4 10:28:04 PiMeteo weewx[1444]: Starting weewx weather system: weewx.
> Mar  4 10:28:04 PiMeteo systemd[1]: Started LSB: weewx weather system.
> Mar  4 10:28:07 PiMeteo weewx[1459] ERROR weewx.drivers.vantage: Socket
> error while opening port 2 to ethernet host 192.168.0.13.
> Mar  4 10:28:07 PiMeteo weewx[1459] ERROR weewx.engine: Import of driver
> failed: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible
> ()
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  Traceback (most recent call last):
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 344, in openPort
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  self.socket.connect((self.host, self.port))
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  During handling of the above exception, another exception occurred:
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  Traceback (most recent call last):
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  self.console = loader_function(config_dict, self)
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  return VantageService(engine, config_dict)
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1945, in __init__
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 524, in __init__
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  self.port.openPort()
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 348, in openPort
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  raise weewx.WeeWxIOError(ex)
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: 
>  weewx.WeeWxIOError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte
> cible
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL __main__: Unable to load
> driver: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible
> Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL __main__:   Waiting
> 60 seconds then retrying...
>
> --
> 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, sen

[weewx-user] OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible

2023-03-04 Thread PC
Hello, I have this error that I can't decipher. (and in addition, I am 
French -speaking)
Can you help me ?
THANKS !

Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Initializing weewx 
version 4.10.1
Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Using Python 3.7.3 
(default, Oct 31 2022, 14:04:00) #012[GCC 8.3.0]
Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Located at /bin/python3
Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Platform 
Linux-5.10.63-v7l+-armv7l-with-debian-10.13
Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Locale is 'fr_BE.UTF-8'
Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Using configuration file 
/etc/weewx/weewx.conf
Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: Debug is 1
Mar  4 10:28:04 PiMeteo weewx[1455] INFO __main__: PID file is 
/var/run/weewx.pid
Mar  4 10:28:04 PiMeteo weewx[1459] DEBUG __main__: Initializing engine
Mar  4 10:28:04 PiMeteo weewx[1459] INFO weewx.engine: Loading station type 
Vantage (weewx.drivers.vantage)
Mar  4 10:28:04 PiMeteo weewx[1459] DEBUG weewx.drivers.vantage: Driver 
version is 3.5.2
Mar  4 10:28:04 PiMeteo weewx[1459] DEBUG weewx.drivers.vantage: Option 
loop_request=1
Mar  4 10:28:04 PiMeteo weewx[1444]: Starting weewx weather system: weewx.
Mar  4 10:28:04 PiMeteo systemd[1]: Started LSB: weewx weather system.
Mar  4 10:28:07 PiMeteo weewx[1459] ERROR weewx.drivers.vantage: Socket 
error while opening port 2 to ethernet host 192.168.0.13.
Mar  4 10:28:07 PiMeteo weewx[1459] ERROR weewx.engine: Import of driver 
failed: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible 
()
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 Traceback (most recent call last):
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 344, in openPort
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 self.socket.connect((self.host, self.port))
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 OSError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:   
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:   During 
handling of the above exception, another exception occurred:
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:   
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 Traceback (most recent call last):
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 self.console = loader_function(config_dict, self)
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 return VantageService(engine, config_dict)
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 1945, in __init__
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 Vantage.__init__(self, **config_dict[DRIVER_NAME])
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 524, in __init__
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 self.port.openPort()
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 348, in openPort
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 raise weewx.WeeWxIOError(ex)
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL weewx.engine:  
 weewx.WeeWxIOError: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte 
cible
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL __main__: Unable to load 
driver: [Errno 113] Aucun chemin d'accès pour atteindre l'hôte cible
Mar  4 10:28:07 PiMeteo weewx[1459] CRITICAL __main__:   Waiting 60 
seconds then retrying...

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/88cb130e-8d2f-4bde-a961-9bd3965ae6d7n%40googlegroups.com.