Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml scanner error: could not find expected ":" in "/etc/pycsw/pycsw.yml" #943

Closed
1 task done
Kate-Lyndegaard opened this issue Jan 18, 2024 · 1 comment
Closed
1 task done

Comments

@Kate-Lyndegaard
Copy link

Description

I am trying to run docker using a bind mount as described here. I receive the following error:

raise ScannerError("while scanning a simple key", key.mark,
yaml.scanner.ScannerError: while scanning a simple key in "/etc/pycsw/pycsw.yml", line 109, column 9
could not find expected ':'in "/etc/pycsw/pycsw.yml", line 110, column 9

Command

docker run --name pycsw --detach --volume ./pycsw.yml:/etc/pycsw/pycsw.yml --publish 8000:8000 geopython/pycsw

My custom configuration file

pycsw.zip

Environment

  • operating system: Windows 10 Pro
  • pycsw version: latest
  • source/distribution
    • git clone

Steps to Reproduce

Clone the latest version of pycsw and run the docker command above.

@pvgenuchten
Copy link
Contributor

pvgenuchten commented Jan 29, 2024

hi Kate, i noticed also this behaviour, it relates to the recent change of the config file to use yaml
I solved it by mounting a customised yaml file into the container
but would be good to fix the default docker image

docker run -p 8000:8000 -v $(pwd)/pycsw.yml:/etc/pycsw/pycsw.yml ghcr.io/geopython/pycsw

pvgenuchten added a commit to pvgenuchten/pycsw that referenced this issue Feb 7, 2024
@pvgenuchten pvgenuchten mentioned this issue Feb 7, 2024
2 tasks
pvgenuchten added a commit to pvgenuchten/pycsw that referenced this issue Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants