JakobMiksch created an issue (osm2pgsql-dev/osm2pgsql#2464)

## What version of osm2pgsql are you using?

I installed `osm2pgsql` from the official Debian package manager:

```
osm2pgsql version 2.1.1
Build: None
Compiled using the following library versions:
Libosmium 2.22.0
Proj 9.6.0
Lua 5.3.6
```


## What operating system and PostgreSQL/PostGIS version are you using?

Debian 13
PostgreSQL 17


## Tell us something about your system

not relevant

## What did you do exactly?

I want to run `osm2pgsql-test-style` as standalone script as describe in 
https://osm2pgsql.org/doc/manual.html#style-testing.

When I run it with the sample behave test, the tool complains it does not find 
`osm2pgsql_replication`:

command:
```bash
./osm2pgsql-test-style trees.feature 
```

Error message:
```
Traceback (most recent call last):
  File "/MYPATH/./osm2pgsql-test-style", line 104, in <module>
    _repfl_spec.loader.exec_module(osm2pgsql_replication)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1159, in get_code
  File "<frozen importlib._bootstrap_external>", line 1217, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 
'/MYPATH/osm2pgsql-replication'
```


## What did you expect to happen?

The command `./osm2pgsql-test-style trees.feature` should check the Feature 
without crashing. 


## What did happen instead?

The testing-script crashes.


## What did you do to try analyzing the problem?

According to the source code, the replication is optional:

https://github.com/osm2pgsql-dev/osm2pgsql/blob/d57ba4070e6876a2381de18cbb21231483c84a56/scripts/osm2pgsql-test-style#L96-L108

Apparently, it does not work when the script is used standalone.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2464
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/issues/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving

Reply via email to