elouangrimm / InfiniteBot

Multiple bots for Infinite Craft!
https://neal.fun/infinite-craft/
2 stars 4 forks source link

error when trying to run #1

Open kittenvr opened 8 months ago

kittenvr commented 8 months ago

when i run python main.py i get this error

Traceback (most recent call last): File "C:\Users**\Downloads\InfiniteBot-main\InfiniteBot-main\main.py", line 2, in import craft File "C:\Users**\Downloads\InfiniteBot-main\InfiniteBot-main\craft.py", line 4, in from infinitecraft import InfiniteCraft ModuleNotFoundError: No module named 'infinitecraft'

C:\Users**\Downloads\InfiniteBot-main\InfiniteBot-main>python main.py Traceback (most recent call last): File "C:\Users**\Downloads\InfiniteBot-main\InfiniteBot-main\main.py", line 2, in import craft File "C:\Users******\Downloads\InfiniteBot-main\InfiniteBot-main\craft.py", line 4, in from infinitecraft import InfiniteCraft ModuleNotFoundError: No module named 'infinitecraft'

Thisisawa commented 8 months ago

pip install infinite-craft pip install termcolor

run with py -X utf8 main.py

kittenvr commented 8 months ago

``

run with py -X utf8 main.py

image image

stuffed18 commented 5 months ago

Run pip install infinite-craft pip install termcolor py -X utf8 craft.py

Works for me

Lord-Funion commented 1 day ago

Run pip install infinite-craft pip install termcolor py -X utf8 craft.py

Works for me

------------------------ Starting Random Run ------------------------

2024-11-23 14:39:12 WARNING [INFINITE CRAFT] Closed InfiniteCraft session Traceback (most recent call last): File "F:\InfiniteBot-main\main.py", line 29, in asyncio.run(craft.main())


  File "C:\Users\lordfunion\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 194, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "C:\Users\lordfunion\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "C:\Users\lordfunion\AppData\Local\Programs\Python\Python313\Lib\asyncio\base_events.py", line 721, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "F:\InfiniteBot-main\craft.py", line 13, in main
    result = await game.pair(game.discoveries[i], game.discoveries[j])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\lordfunion\AppData\Local\Programs\Python\Python313\Lib\site-packages\infinitecraft\infinitecraft.py", line 309, in pair
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\lordfunion\AppData\Local\Programs\Python\Python313\Lib\site-packages\aiohttp\client_reqrep.py", line 1135, in raise_for_status
    raise ClientResponseError(
    ...<5 lines>...
    )
aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url='https://neal.fun/api/infinite-craft/pair?first=Pineapple+Icebot&second=Duck+Curry'
elouangrimm commented 1 day ago

Hmmmm... Sorry I have not seen this thread, it's been almost a year since I have visited this project! I have had this AsyncIO error before, and I fixed it somehow... It could just be an Infinite Craft server issue, but I will try to find out a fix, then will get back to y'all!

Lord-Funion commented 1 day ago

thanks

elouangrimm commented 6 hours ago

I'm pretty sure that this is the same problem as this GitHub issue for the Python module... Possibly watch that one to see if there is a fix later?