question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running agents

See original GitHub issue

Hi!

I’ve got trough the painful installation process and freshly downloaded a model and a weight, when this happened:

C:\AI-stuff\minerl\Video-Pre-Training-main>python run_agent.py --model model/foundation-model-1x.model --weights model/foundation-model-1x.weights
C:\Users\meh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\gym\logger.py:34: UserWarning: WARN: Box bound precision lowered by casting to float32
  warnings.warn(colorize("%s: %s" % ("WARN", msg % args), "yellow"))
C:\AI-stuff\minerl\Video-Pre-Training-main\lib\torch_util.py:44: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xe (Triggered internally at  ..\torch\csrc\utils\tensor_numpy.cpp:68.)
  DEFAULT_DEVICE = th.device(type=default_device_type())
Traceback (most recent call last):
  File "C:\AI-stuff\minerl\Video-Pre-Training-main\run_agent.py", line 35, in <module>
    main(args.model, args.weights)
  File "C:\AI-stuff\minerl\Video-Pre-Training-main\run_agent.py", line 9, in main
    env = Survival(**ENV_KWARGS).make()
  File "C:\Users\meh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minerl\herobraine\env_specs\survival_specs.py", line 44, in __init__
    super().__init__(*args, **kwargs)
  File "C:\Users\meh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minerl\herobraine\env_specs\simple_embodiment.py", line 34, in __init__
    super().__init__(name, *args, **kwargs)
TypeError: EnvSpec.__init__() got an unexpected keyword argument 'fov_range'

I think it’s not my fault 😢

Anyway, one thing I did while installing, maybe this is the problem: Once, in requirements.txt, a wise line said torch=1.9.0. But pip, being salty for something, stated this:

ERROR: Could not find a version that satisfies the requirement torch==1.9.0 (from versions: 1.11.0, 1.12.0, 1.12.1)
ERROR: No matching distribution found for torch==1.9.0

This was quite unfriendly from him. So I swapped the version to 1.11.0. It installed successfully, but i quickly encountered the “unexpected keyword argument ‘fov_range’” problem. Rinse, repeat with versions 1.12.0 and 1.12.1. The problem is still unsolved, currently, 1.12.1 is installed.

Maybe I’m just not noticing something there… Any help would be greatly appreciated!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
bbsxjycommented, Aug 31, 2022

Hi @Hema2-official, Try rolling back your python from 3.10 to 3.9 and it will resolve this issue. Thanks.

0reactions
Hema2-officialcommented, Sep 14, 2022

Sorry for the delay, rolling back solved my problem. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Agent is not Running Properly
If the AgentThe Agent is a software program that is installed on machines in the Source location that need to be migrated or...
Read more >
Common Problems | TeamCity On-Premises Documentation
Started Build Agent is not available on the server to run builds · the agent is under Connected — the agent is ready...
Read more >
Running Agents from the Command-Line
You can run agents from the command line using the RunAgent.exe program, which you can find in the Content Grabber installation folder.
Read more >
ERRORED” when running a data collection on CCS agents.
Typically agents reporting this error are running checks that would report on how many world-writable and unowned files that are on the system....
Read more >
LO42549: ERROR RUNNING AGENTS ON REMOTE ... - IBM
customer is using http task to trigger RunOnServer agent on another server The customer gets the following error. INITIALIZE :: Cannot access foreign...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found