osm-by / OpenStreetMap.by

bugtracker for http://openstreetmap.by
http://openstreetmap.by
11 stars 6 forks source link

Update dependencies needed to run the project #10

Closed abitrolly closed 3 years ago

abitrolly commented 4 years ago

I tried to run it locally to rebase my PR #6, and this is the list of everything I was missing to run index.py without ImportErrors.

abitrolly commented 4 years ago

The standalone server now answers the same HTML page for every request including static resources. Looks like a separate handler is needed to handle them.

image

abitrolly commented 4 years ago

Fixed loading static resources when running locally with python index.py. Now it looks like this.

image

Tiles require setup for local Redis server, which I don't have at the moment.

Ping @Komzpa.

abitrolly commented 4 years ago

The map is still empty, and here is the stacktrace that is probably relevant that included redis.

  File "index.py", line 40, in handler
    resp, ctype, content = face_main(data)
  File "index.py", line 634, in face_main
    r.zincrby('locale:' + lang, i[0], i[1])
  File "/home/anatoli/.local/share/virtualenvs/OpenStreetMap.by-MOXOekcf/lib/python2.7/site-packages/redis/client.py", line 2668, in zincrby
    return self.execute_command('ZINCRBY', name, amount, value)
  File "/home/anatoli/.local/share/virtualenvs/OpenStreetMap.by-MOXOekcf/lib/python2.7/site-packages/redis/client.py", line 875, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "/home/anatoli/.local/share/virtualenvs/OpenStreetMap.by-MOXOekcf/lib/python2.7/site-packages/redis/connection.py", line 1185, in get_connection
    connection.connect()
  File "/home/anatoli/.local/share/virtualenvs/OpenStreetMap.by-MOXOekcf/lib/python2.7/site-packages/redis/connection.py", line 557, in connect
    raise ConnectionError(self._error_message(e))
ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
tbicr commented 3 years ago

looks this issue already fixed in master, so I will close it