Skip to content

broken out of the box: tried to create Proc object without a block (ArgumentError) #21

Description

@php4fan

Fresh installation on Debian 12:

$ mapstatic map /path/to/image.png --zoom=16 --lat=41.4089216 --lng=2.1659648 --width=900 --height=560 --provider=https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}@1x.png?api_key=***********

/var/lib/gems/3.1.0/gems/faraday-0.8.11/lib/faraday.rb:10:in `new': tried to create Proc object without a block (ArgumentError)
        from /var/lib/gems/3.1.0/gems/faraday-0.8.11/lib/faraday.rb:10:in `new'
        from /var/lib/gems/3.1.0/gems/mapstatic-0.0.2/lib/mapstatic/tile_source.rb:56:in `connection'
        from /var/lib/gems/3.1.0/gems/mapstatic-0.0.2/lib/mapstatic/tile_source.rb:22:in `get_tiles'
        from /var/lib/gems/3.1.0/gems/mapstatic-0.0.2/lib/mapstatic/map.rb:117:in `map_tiles'
        from /var/lib/gems/3.1.0/gems/mapstatic-0.0.2/lib/mapstatic/map.rb:128:in `create_uncropped_image'
        from /var/lib/gems/3.1.0/gems/mapstatic-0.0.2/lib/mapstatic/map.rb:39:in `to_image'
        from /var/lib/gems/3.1.0/gems/mapstatic-0.0.2/lib/mapstatic/map.rb:46:in `render_map'
        from /var/lib/gems/3.1.0/gems/mapstatic-0.0.2/lib/mapstatic/cli.rb:48:in `map'
        from /var/lib/gems/3.1.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
        from /var/lib/gems/3.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
        from /var/lib/gems/3.1.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
        from /var/lib/gems/3.1.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
        from /var/lib/gems/3.1.0/gems/mapstatic-0.0.2/bin/mapstatic:7:in `<top (required)>'
        from /usr/local/bin/mapstatic:25:in `load'
        from /usr/local/bin/mapstatic:25:in `<main>'

On another machine with debian 7 I have a very old installation of mapstatic installed like a decade ago where the exact same command works perfectly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions