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

module 'openai' has no attribute 'error' #154

Closed
StL-Jim opened this issue Apr 7, 2024 · 2 comments
Closed

module 'openai' has no attribute 'error' #154

StL-Jim opened this issue Apr 7, 2024 · 2 comments
Labels

Comments

@StL-Jim
Copy link

StL-Jim commented Apr 7, 2024

Before submitting an issue, make sure you read the FAQ.md

Briefly describe your issue

Voyager is failing to connect to OpenAI. I've verified my API key works using the openai-test.py example on OpenAPI document page. I tested with both NodeJS and Pyton scripts.

Mineflayer process has exited, restarting
Subprocess mineflayer started with PID 8296.
Server started on port 3000

Render Action Agent system message with 0 skills
Action Agent human message
Code from the last round: No code in the first round
Execution error: No error
Chat log: None
Biome: cold_ocean
Time: day
Nearby blocks: water, sand, dirt, seagrass, gravel, tall_seagrass, grass_block, clay
Nearby entities (nearest to farthest): cod, salmon, squid
Health: 20.0/20
Hunger: 20.0/20
Position: x=-375.5, y=63.0, z=-432.5
Equipment: [None, None, None, None, None, None]
Inventory (0/36): Empty
Chests: None
Task: Mine 1 wood log
Context: You can mine one of oak, birch, spruce, jungle, acacia, dark oak, or mangrove logs.
Critique: None

Mineflayer process has exited, restarting
Subprocess mineflayer started with PID 12840.
Server started on port 3000

Your last round rollout terminated due to error:
module 'openai' has no attribute 'error'
Failed to complete task Mine 1 wood log. Skipping to next task.
Completed tasks:
Failed tasks: Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log, Mine 1 wood log

Please provide your python, nodejs, Minecraft, and Fabric versions here

Windows 10

python 3.9.13
node.js v18.20.1
npm 10.5.0

Tried with
Microsoft jdk-17.0.10.7-hotspot
openjdk version "22" 2024-03-19

Minecraft Fabric 1.19.3
Fabric version 0.14.18
fabric-api-0.76.1+1.19.3

[If applicable] Please provide the Minefalyer and Minecraft logs, you can find the log under logs folder

Some Minecraft Logs
[20:58:58] [User Authenticator #122/WARN]: Failed to verify username but will let them in anyway!
[20:58:58] [Server thread/INFO]: bot[/[0:0:0:0:0:0:0:1]:55623] logged in with entity id 37136 at (-375.5, 63.0, -432.5)
[20:58:58] [Server thread/INFO]: bot joined the game
[20:58:58] [Render thread/INFO]: [System] [CHAT] bot joined the game
[20:58:59] [Server thread/INFO]: [bot: Gamerule keepInventory is now set to: true]
[20:58:59] [Server thread/INFO]: [bot: Gamerule doDaylightCycle is now set to: false]
[20:58:59] [Server thread/INFO]: [bot: Pausing server...]
[20:58:59] [Server thread/INFO]: Server paused.
[20:58:59] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule keepInventory is now set to: true]
[20:58:59] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule doDaylightCycle is now set to: false]
[20:58:59] [Render thread/INFO]: [System] [CHAT] [bot: Pausing server...]
[20:58:59] [Render thread/INFO]: [System] [CHAT] Server paused.
[20:58:59] [Server thread/INFO]: Saving and pausing game...
[20:58:59] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:overworld
[20:58:59] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_end
[20:58:59] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_nether
[20:59:00] [Server thread/INFO]: [bot: Unpausing server...]
[20:59:00] [Server thread/INFO]: Server unpaused.
[20:59:00] [Render thread/INFO]: [System] [CHAT] [bot: Unpausing server...]
[20:59:00] [Render thread/INFO]: [System] [CHAT] Server unpaused.
[20:59:02] [Server thread/INFO]: [bot: Set the time to 6000]
[20:59:02] [Server thread/INFO]: [bot: Gamerule doTileDrops is now set to: false]
[20:59:02] [Render thread/INFO]: [System] [CHAT] [bot: Set the time to 6000]
[20:59:02] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule doTileDrops is now set to: false]
[20:59:05] [Server thread/INFO]: [bot: Gamerule doTileDrops is now set to: true]
[20:59:05] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule doTileDrops is now set to: true]
[20:59:05] [Server thread/INFO]: [bot: Pausing server...]
[20:59:05] [Server thread/INFO]: Server paused.
[20:59:05] [Render thread/INFO]: [System] [CHAT] [bot: Pausing server...]
[20:59:05] [Render thread/INFO]: [System] [CHAT] Server paused.
[20:59:05] [Server thread/INFO]: Saving and pausing game...
[20:59:05] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:overworld
[20:59:05] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_end
[20:59:05] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_nether
[20:59:08] [Server thread/INFO]: [bot: Unpausing server...]
[20:59:08] [Server thread/INFO]: Server unpaused.
[20:59:08] [Render thread/INFO]: [System] [CHAT] [bot: Unpausing server...]
[20:59:08] [Render thread/INFO]: [System] [CHAT] Server unpaused.
[20:59:09] [Server thread/INFO]: bot lost connection: Disconnected
[20:59:09] [Server thread/INFO]: bot left the game
[20:59:09] [Render thread/INFO]: [System] [CHAT] bot left the game
[20:59:12] [User Authenticator #123/WARN]: Failed to verify username but will let them in anyway!
[20:59:12] [Server thread/INFO]: bot[/[0:0:0:0:0:0:0:1]:55636] logged in with entity id 37403 at (-375.5, 63.0, -432.5)
[20:59:12] [Server thread/INFO]: bot joined the game
[20:59:12] [Render thread/INFO]: [System] [CHAT] bot joined the game
[20:59:12] [Server thread/INFO]: Searching for respawn location - Attempt 1/16
[20:59:12] [Server thread/INFO]: Searching for respawn location - Attempt 2/16
[20:59:12] [Server thread/INFO]: Found valid respawn location: [-368, 63, -436]
[20:59:12] [Server thread/INFO]: Set temporary respawn location to [-368, 63, -436]
[20:59:12] [Server thread/INFO]: bot fell out of the world
[20:59:12] [Server thread/INFO]: [bot: Killed bot]
[20:59:12] [Server thread/INFO]: [bot: Teleported bot to -375.500000, 63.000000, -432.500000]
[20:59:12] [Render thread/INFO]: [System] [CHAT] bot fell out of the world
[20:59:12] [Render thread/INFO]: [System] [CHAT] [bot: Killed bot]
[20:59:12] [Render thread/INFO]: [System] [CHAT] [bot: Teleported bot to -375.500000, 63.000000, -432.500000]
[20:59:12] [Server thread/INFO]: Updating the respawn location of player bot to [NONE]
[20:59:13] [Server thread/INFO]: [bot: Gamerule keepInventory is now set to: true]
[20:59:13] [Server thread/INFO]: [bot: Gamerule doDaylightCycle is now set to: false]
[20:59:13] [Server thread/INFO]: [bot: Pausing server...]
[20:59:13] [Server thread/INFO]: Server paused.
[20:59:13] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule keepInventory is now set to: true]
[20:59:13] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule doDaylightCycle is now set to: false]
[20:59:13] [Render thread/INFO]: [System] [CHAT] [bot: Pausing server...]
[20:59:13] [Render thread/INFO]: [System] [CHAT] Server paused.
[20:59:13] [Server thread/INFO]: Saving and pausing game...
[20:59:13] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:overworld
[20:59:13] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_end
[20:59:13] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_nether
[20:59:14] [Server thread/INFO]: [bot: Unpausing server...]
[20:59:14] [Server thread/INFO]: Server unpaused.
[20:59:14] [Render thread/INFO]: [System] [CHAT] [bot: Unpausing server...]
[20:59:14] [Render thread/INFO]: [System] [CHAT] Server unpaused.
[20:59:15] [Server thread/INFO]: bot lost connection: Disconnected
[20:59:15] [Server thread/INFO]: bot left the game
[20:59:15] [Render thread/INFO]: [System] [CHAT] bot left the game
[20:59:17] [User Authenticator #124/WARN]: Failed to verify username but will let them in anyway!
[20:59:18] [Server thread/INFO]: bot[/[0:0:0:0:0:0:0:1]:55642] logged in with entity id 37574 at (-367.5, 63.0, -435.5)
[20:59:18] [Server thread/INFO]: bot joined the game
[20:59:18] [Render thread/INFO]: [System] [CHAT] bot joined the game
[20:59:19] [Server thread/INFO]: [bot: Gamerule keepInventory is now set to: true]
[20:59:19] [Server thread/INFO]: [bot: Gamerule doDaylightCycle is now set to: false]
[20:59:19] [Server thread/INFO]: [bot: Pausing server...]
[20:59:19] [Server thread/INFO]: Server paused.
[20:59:19] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule keepInventory is now set to: true]
[20:59:19] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule doDaylightCycle is now set to: false]
[20:59:19] [Render thread/INFO]: [System] [CHAT] [bot: Pausing server...]
[20:59:19] [Render thread/INFO]: [System] [CHAT] Server paused.
[20:59:19] [Server thread/INFO]: Saving and pausing game...
[20:59:19] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:overworld
[20:59:19] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_end
[20:59:19] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_nether
[20:59:20] [Server thread/INFO]: [bot: Unpausing server...]
[20:59:20] [Server thread/INFO]: Server unpaused.
[20:59:20] [Render thread/INFO]: [System] [CHAT] [bot: Unpausing server...]
[20:59:20] [Render thread/INFO]: [System] [CHAT] Server unpaused.
[20:59:22] [Server thread/INFO]: [bot: Set the time to 7000]
[20:59:22] [Server thread/INFO]: [bot: Gamerule doTileDrops is now set to: false]
[20:59:22] [Render thread/INFO]: [System] [CHAT] [bot: Set the time to 7000]
[20:59:22] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule doTileDrops is now set to: false]
[20:59:24] [Server thread/INFO]: [bot: Gamerule doTileDrops is now set to: true]
[20:59:24] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule doTileDrops is now set to: true]
[20:59:24] [Server thread/INFO]: [bot: Pausing server...]
[20:59:24] [Server thread/INFO]: Server paused.
[20:59:24] [Render thread/INFO]: [System] [CHAT] [bot: Pausing server...]
[20:59:24] [Render thread/INFO]: [System] [CHAT] Server paused.
[20:59:24] [Server thread/INFO]: Saving and pausing game...
[20:59:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:overworld
[20:59:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_end
[20:59:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_nether
[20:59:28] [Server thread/INFO]: [bot: Unpausing server...]
[20:59:28] [Server thread/INFO]: Server unpaused.
[20:59:28] [Render thread/INFO]: [System] [CHAT] [bot: Unpausing server...]
[20:59:28] [Render thread/INFO]: [System] [CHAT] Server unpaused.
[20:59:29] [Server thread/INFO]: bot lost connection: Disconnected
[20:59:29] [Server thread/INFO]: bot left the game
[20:59:29] [Render thread/INFO]: [System] [CHAT] bot left the game
[20:59:31] [User Authenticator #125/WARN]: Failed to verify username but will let them in anyway!
[20:59:31] [Server thread/INFO]: bot[/[0:0:0:0:0:0:0:1]:55651] logged in with entity id 37749 at (-367.5, 63.0, -435.5)
[20:59:31] [Server thread/INFO]: bot joined the game
[20:59:31] [Render thread/INFO]: [System] [CHAT] bot joined the game
[20:59:31] [Server thread/INFO]: Searching for respawn location - Attempt 1/16
[20:59:31] [Server thread/INFO]: Found valid respawn location: [-347, 63, -417]
[20:59:31] [Server thread/INFO]: Set temporary respawn location to [-347, 63, -417]
[20:59:31] [Server thread/INFO]: bot fell out of the world
[20:59:31] [Server thread/INFO]: [bot: Killed bot]
[20:59:31] [Server thread/INFO]: [bot: Teleported bot to -367.500000, 63.000000, -435.500000]
[20:59:31] [Render thread/INFO]: [System] [CHAT] bot fell out of the world
[20:59:31] [Render thread/INFO]: [System] [CHAT] [bot: Killed bot]
[20:59:31] [Render thread/INFO]: [System] [CHAT] [bot: Teleported bot to -367.500000, 63.000000, -435.500000]
[20:59:32] [Server thread/INFO]: Updating the respawn location of player bot to [NONE]
[20:59:33] [Server thread/INFO]: [bot: Gamerule keepInventory is now set to: true]
[20:59:33] [Server thread/INFO]: [bot: Gamerule doDaylightCycle is now set to: false]
[20:59:33] [Server thread/INFO]: [bot: Pausing server...]
[20:59:33] [Server thread/INFO]: Server paused.
[20:59:33] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule keepInventory is now set to: true]
[20:59:33] [Render thread/INFO]: [System] [CHAT] [bot: Gamerule doDaylightCycle is now set to: false]
[20:59:33] [Render thread/INFO]: [System] [CHAT] [bot: Pausing server...]
[20:59:33] [Render thread/INFO]: [System] [CHAT] Server paused.
[20:59:33] [Server thread/INFO]: Saving and pausing game...
[20:59:33] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:overworld
[20:59:33] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_end
[20:59:33] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Voyager 0.1]'/minecraft:the_nether

Some Mineflayer logs
2024-04-06 20:45:59,491 - mineflayer - INFO - Stopping subprocess.
2024-04-06 20:46:00,506 - mineflayer - INFO - Starting subprocess with commands: ['node', 'C:\GitHub\Voyager\voyager\env\mineflayer/index.js', '3000']
2024-04-06 20:46:01,033 - mineflayer - INFO - Server started on port 3000
2024-04-06 20:46:01,033 - mineflayer - INFO - Subprocess is ready.
2024-04-06 20:46:01,061 - mineflayer - INFO - {
2024-04-06 20:46:01,061 - mineflayer - INFO - port: �[33m55555�[39m,
2024-04-06 20:46:01,061 - mineflayer - INFO - reset: �[32m'hard'�[39m,
2024-04-06 20:46:01,061 - mineflayer - INFO - inventory: {},
2024-04-06 20:46:01,061 - mineflayer - INFO - equipment: [],
2024-04-06 20:46:01,061 - mineflayer - INFO - spread: �[33mfalse�[39m,
2024-04-06 20:46:01,061 - mineflayer - INFO - waitTicks: �[33m20�[39m,
2024-04-06 20:46:01,061 - mineflayer - INFO - position: �[1mnull�[22m
2024-04-06 20:46:01,061 - mineflayer - INFO - }
2024-04-06 20:46:04,831 - mineflayer - INFO - Mineflayer detected that you are using a deprecated event (physicTick)! Please use this event (physicsTick) instead.
2024-04-06 20:46:08,132 - mineflayer - INFO - Mineflayer detected that you are using a deprecated event (physicTick)! Please use this event (physicsTick) instead.
2024-04-06 20:46:12,131 - mineflayer - INFO - Stopping subprocess.
2024-04-06 20:46:13,173 - mineflayer - INFO - Starting subprocess with commands: ['node', 'C:\GitHub\Voyager\voyager\env\mineflayer/index.js', '3000']
2024-04-06 20:46:13,688 - mineflayer - INFO - Server started on port 3000
2024-04-06 20:46:13,688 - mineflayer - INFO - Subprocess is ready.
2024-04-06 20:46:13,719 - mineflayer - INFO - {
2024-04-06 20:46:13,719 - mineflayer - INFO - port: �[33m55555�[39m,
2024-04-06 20:46:13,719 - mineflayer - INFO - reset: �[32m'soft'�[39m,
2024-04-06 20:46:13,719 - mineflayer - INFO - inventory: {},
2024-04-06 20:46:13,719 - mineflayer - INFO - equipment: [],
2024-04-06 20:46:13,719 - mineflayer - INFO - spread: �[33mfalse�[39m,
2024-04-06 20:46:13,719 - mineflayer - INFO - waitTicks: �[33m20�[39m,
2024-04-06 20:46:13,719 - mineflayer - INFO - position: �[1mnull�[22m
2024-04-06 20:46:13,719 - mineflayer - INFO - }
2024-04-06 20:46:15,139 - mineflayer - INFO - Mineflayer detected that you are using a deprecated event (physicTick)! Please use this event (physicsTick) instead.
2024-04-06 20:46:18,250 - mineflayer - INFO - Mineflayer detected that you are using a deprecated event (physicTick)! Please use this event (physicsTick) instead.
2024-04-06 20:46:26,728 - mineflayer - INFO - Stopping subprocess.
2024-04-06 20:46:27,767 - mineflayer - INFO - Starting subprocess with commands: ['node', 'C:\GitHub\Voyager\voyager\env\mineflayer/index.js', '3000']
2024-04-06 20:46:28,288 - mineflayer - INFO - Server started on port 3000
2024-04-06 20:46:28,288 - mineflayer - INFO - Subprocess is ready.
2024-04-06 20:46:28,317 - mineflayer - INFO - {
2024-04-06 20:46:28,317 - mineflayer - INFO - port: �[33m55555�[39m,
2024-04-06 20:46:28,317 - mineflayer - INFO - reset: �[32m'hard'�[39m,
2024-04-06 20:46:28,317 - mineflayer - INFO - inventory: {},
2024-04-06 20:46:28,317 - mineflayer - INFO - equipment: [ �[1mnull�[22m, �[1mnull�[22m, �[1mnull�[22m, �[1mnull�[22m, �[1mnull�[22m, �[1mnull�[22m ],
2024-04-06 20:46:28,317 - mineflayer - INFO - spread: �[33mfalse�[39m,
2024-04-06 20:46:28,317 - mineflayer - INFO - waitTicks: �[33m20�[39m,
2024-04-06 20:46:28,317 - mineflayer - INFO - position: { x: �[33m-303.5�[39m, y: �[33m67�[39m, z: �[33m-399.5�[39m }
2024-04-06 20:46:28,317 - mineflayer - INFO - }
2024-04-06 20:46:29,406 - mineflayer - INFO - Mineflayer detected that you are using a deprecated event (physicTick)! Please use this event (physicsTick) instead.
2024-04-06 20:46:32,682 - mineflayer - INFO - Stopping subprocess.
2024-04-06 20:46:33,723 - mineflayer - INFO - Starting subprocess with commands: ['node', 'C:\GitHub\Voyager\voyager\env\mineflayer/index.js', '3000']
2024-04-06 20:46:34,245 - mineflayer - INFO - Server started on port 3000
2024-04-06 20:46:34,246 - mineflayer - INFO - Subprocess is ready.
2024-04-06 20:46:34,260 - mineflayer - INFO - {
2024-04-06 20:46:34,261 - mineflayer - INFO - port: �[33m55555�[39m,
2024-04-06 20:46:34,261 - mineflayer - INFO - reset: �[32m'soft'�[39m,
2024-04-06 20:46:34,261 - mineflayer - INFO - inventory: {},
2024-04-06 20:46:34,261 - mineflayer - INFO - equipment: [],
2024-04-06 20:46:34,261 - mineflayer - INFO - spread: �[33mfalse�[39m,
2024-04-06 20:46:34,261 - mineflayer - INFO - waitTicks: �[33m20�[39m,
2024-04-06 20:46:34,261 - mineflayer - INFO - position: �[1mnull�[22m
2024-04-06 20:46:34,261 - mineflayer - INFO - }
2024-04-06 20:46:35,413 - mineflayer - INFO - Mineflayer detected that you are using a deprecated event (physicTick)! Please use this event (physicsTick) instead.
2024-04-06 20:46:38,392 - mineflayer - INFO - Mineflayer detected that you are using a deprecated event (physicTick)! Please use this event (physicsTick) instead.
2024-04-06 20:46:47,124 - mineflayer - INFO - Stopping subprocess.

[If applicable] Please provide the GPT conversations that are printed each round.

There is no GPT conversation. When I check the activity log on OpenAI website, I see my test api calls but no calls from Voyager. So, I've verified the API key is good.

Copy link

github-actions bot commented May 8, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 8, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant