Coder Social home page Coder Social logo

rplace2022's People

Contributors

cube707 avatar lrvdijk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rplace2022's Issues

Reconnect naar web-socket werkt niet helemaal

Een reconnect zorgt ervoor dat het script crash.

INFO     [PlaceNL.cnc] Notified CNC server of drawn pixel.                                                                                                 PlaceNL.py:198
[04/03/22 12:52:29] WARNING  [PlaceNL.cnc] Connection to C&C websocket lost, trying again in one minute...                                                                     PlaceNL.py:504
[04/03/22 12:52:31] ERROR    [asyncio] Task exception was never retrieved                                                                                                 base_events.py:1753
                             future: <Task finished name='Task-2996' coro=<CNCOrderClient.ping() done, defined at
                             C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\PlaceNL.py:155> exception=ConnectionResetError('Cannot write to closing transport')>
                             Traceback (most recent call last):
                               File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\PlaceNL.py", line 158, in ping
                                 await self.ws.send_str(json.dumps({"type": "ping"}))
                               File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\venv\lib\site-packages\aiohttp\client_ws.py", line 151, in send_str
                                 await self._writer.send(data, binary=False, compress=compress)
                               File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\venv\lib\site-packages\aiohttp\http_websocket.py", line 690, in send
                                 await self._send_frame(message, WSMsgType.TEXT, compress)
                               File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\venv\lib\site-packages\aiohttp\http_websocket.py", line 601, in _send_frame
                                 raise ConnectionResetError("Cannot write to closing transport")
                             ConnectionResetError: Cannot write to closing transport
Traceback (most recent call last):
  File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\PlaceNL.py", line 581, in <module>
    asyncio.run(main())
  File "C:\Users\media\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\media\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 647, in run_until_complete
    return future.result()
  File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\PlaceNL.py", line 579, in main
    await asyncio.gather(*tasks)
  File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\PlaceNL.py", line 502, in cnc_update_task
    await cnc_client.receive_orders()
  File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\PlaceNL.py", line 165, in receive_orders
    await self.ws.send_str(json.dumps({"type": "getmap"}))
  File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\venv\lib\site-packages\aiohttp\client_ws.py", line 151, in send_str
    await self._writer.send(data, binary=False, compress=compress)
  File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\venv\lib\site-packages\aiohttp\http_websocket.py", line 690, in send
    await self._send_frame(message, WSMsgType.TEXT, compress)
  File "C:\Users\media\Desktop\PlaceNL\Python\rPlace2022\venv\lib\site-packages\aiohttp\http_websocket.py", line 601, in _send_frame
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport

Could not send ping, websocket closed?

Krijg op meerdere systemen eens in de zovel tijd de volgende error

2 22:24:10] ERROR    [PlaceNL.cnc] Could not send ping, websocket closed?                                                                                                                                                             PlaceNL.py:201
                             Traceback (most recent call last):                                                                                                                                                                                             
                               File "/home/[redacted]/build/rplace/placenl/lib/python3.9/site-packages/PlaceNL.py", line 199, in ping                                                                                                                            
                                 await self.ws.send_str(json.dumps({"type": "ping"}))                                                                                                                                                                       
                               File "/home/[redacted]/build/rplace/placenl/lib/python3.9/site-packages/aiohttp/client_ws.py", line 151, in send_str                                                                                                              
                                 await self._writer.send(data, binary=False, compress=compress)                                                                                                                                                             
                               File "/home/[redacted]/build/rplace/placenl/lib/python3.9/site-packages/aiohttp/http_websocket.py", line 690, in send                                                                                                             
                                 await self._send_frame(message, WSMsgType.TEXT, compress)                                                                                                                                                                  
                               File "/home/[redacted]/build/rplace/placenl/lib/python3.9/site-packages/aiohttp/http_websocket.py", line 601, in _send_frame                                                                                                      
                                 raise ConnectionResetError("Cannot write to closing transport")                                                                                                                                                            
                             ConnectionResetError: Cannot write to closing transport                              

Is deze inmiddels bekend?

2k update nog niet ready?

  File "/usr/local/bin/PlaceNL", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.10/site-packages/PlaceNL.py", line 648, in run
    asyncio.run(main())
  File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.10/site-packages/PlaceNL.py", line 644, in main
    await asyncio.gather(*tasks)
  File "/usr/local/lib/python3.10/site-packages/PlaceNL.py", line 593, in reddit_client
    to_update = place_client.get_pixels_to_update(self.order_map)
  File "/usr/local/lib/python3.10/site-packages/PlaceNL.py", line 453, in get_pixels_to_update
    if not numpy.array_equal(order_map[row, col, :3], self.current_canvas[row, col, :3]):
IndexError: index 1949 is out of bounds for axis 0 with size 1000```

crash (raspberry pi)

Traceback (most recent call last):
File "/home/pi/./PlaceNL.py", line 693, in
run()
File "/home/pi/./PlaceNL.py", line 689, in run
asyncio.run(main())
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/pi/./PlaceNL.py", line 685, in main
await asyncio.gather(*tasks)
File "/home/pi/./PlaceNL.py", line 628, in reddit_client
await place_client.load_full_map()
File "/home/pi/./PlaceNL.py", line 454, in load_full_map
canvas4 = await self.load_canvas(3)
File "/home/pi/./PlaceNL.py", line 393, in load_canvas
async with self.session.ws_connect(PLACE_WEBSOCKET, protocols=["graphql-ws"], headers=headers) as ws:
File "/home/pi/.local/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in aenter
self._resp = await self._coro
File "/home/pi/.local/lib/python3.9/site-packages/aiohttp/client.py", line 776, in _ws_connect
resp = await self.request(
File "/home/pi/.local/lib/python3.9/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/home/pi/.local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 898, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File "/home/pi/.local/lib/python3.9/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected

could not obtain access token

Traceback (most recent call last):
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 616, in
run()
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 612, in run
asyncio.run(main())
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 603, in main
await asyncio.gather(*tasks)
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 530, in reddit_client_task
async with RedditPlaceClient(session, username, password, user_agent) as place_client:
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 238, in aenter
raise Exception("Could not obtain access token.")
Exception: Could not obtain access token.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.