Code Monkey home page Code Monkey logo

Comments (15)

zplizzi avatar zplizzi commented on June 28, 2024 1

Yep, check_install needed that guard too, fixed now and you should see the change soon. Thanks for pointing this out! I'll close this but let us know if it's not fixed for you and we can reopen.

from avalon.

mx781 avatar mx781 commented on June 28, 2024 1

@zangobot we've synced over the changes, so the install should work if you install via git: pip install git+https://github.com/Avalon-Benchmark/avalon. Wwe'll push a pip release after consolidating a few more changes.

from avalon.

mx781 avatar mx781 commented on June 28, 2024 1

@zplizzi yes, looks like torch has slipped into a non-core dependency. @zangobot you can install all the train extras like so:

pip install "git+https://github.com/Avalon-Benchmark/avalon#egg=avalon-rl[train]"

from avalon.

micimize avatar micimize commented on June 28, 2024

What is the specific context you are executing this code in? I've see this crop up in a different conda install while using vscode's jupyter integration specifically (but not the web UI). It might also be related to pytorch/pytorch#5858 (comment).

from avalon.

zangobot avatar zangobot commented on June 28, 2024

A python script, not a notebook, just to test the environment. Also, the python module for testing the installation fails. I will have a look at that issue (which seems to be still open), thanks!

from avalon.

zplizzi avatar zplizzi commented on June 28, 2024

@zangobot pretty sure you just need to put your code under if __name__ == '__main__': as that error message suggests. multiprocessing when using the spawn method requires this idiom (I think so that the child processes don't also run code they're not supposed to?). OSX defaults to spawn (but we also set it to spawn for some of the child processes explicitly), it's possible that test that's failing for you works on linux because linux defaults to fork.

from avalon.

zangobot avatar zangobot commented on June 28, 2024

Thank you!

from avalon.

zangobot avatar zangobot commented on June 28, 2024

I would need to reopen this.
I tried a clean install with the pip install command you sent me, but some dependancies are missing:
ModuleNotFoundError: No module named 'tree'

from avalon.

zplizzi avatar zplizzi commented on June 28, 2024

Sorry about that, for now that should be fixed by running pip install dm-tree==0.1.7 before retrying the installation. We'll fix the pip dependency list.

from avalon.

zangobot avatar zangobot commented on June 28, 2024

I think I have found another bug.
When trying to install the Godot binaries, this happens:

2022-12-21 09:35:57.009 | INFO     | __main__:install_available_binaries_for_current_platform:130 - Installing editor build from https://github.com/Avalon-Benchmark/godot/releases/download
2022-12-21 09:35:57.014 | INFO     | __main__:fetch_binary:92 - Downloading 3.4.4.avalon.0.9.3/macos-editor.zip into /FOLDER/envs/avalon/lib/python3.10/site-packages/avalon/bin/godot_editor
2022-12-21 09:36:06.834 | INFO     | __main__:install_available_binaries_for_current_platform:144 - Note: No headless runner currently available for macos. Symlinking editor build in its place.

and running the avalon.common.check_install crashes in this way:

avalon.datagen.errors.GodotError: returncode=SIGHUP(1) 
Log: /var/folders/t9/9c25d13553s4q7t2v2c0b0z00000gn/T/science/tmp/4752303b-0a49-4c60-af70-86148b943079/godot.log
Artifacts: /var/folders/t9/9c25d13553s4q7t2v2c0b0z00000gn/T/science/godot/godot_env_artifacts__74530bad-1408-45a2-a47b-1ee630f60d17.tar.gz

from avalon.

zplizzi avatar zplizzi commented on June 28, 2024

Can you attach the contents of that log file?

from avalon.

zangobot avatar zangobot commented on June 28, 2024

The content of the log is

realpath: illegal option -- e
usage: realpath [-q] [path ...]

from avalon.

micimize avatar micimize commented on June 28, 2024

@zangobot looks like you're using the /bin/realpath that ships with macos ventura which appears to be fairly non-standard – for now could you try with brew install coreutils?

We may be able to switch to something like -f $(realpath ...) instead to avoid the need for coreutils on ventura, or even just skip these checks in the usual usage from python as we can verify things before reaching the bash script.

from avalon.

micimize avatar micimize commented on June 28, 2024

Closing this as it's become a bit of a catch-all. Please open new issues for any other errors y'all encounter.

I've made an internal issue to improve the output of check_install such as outputting some of the godot log if it errors.

from avalon.

zangobot avatar zangobot commented on June 28, 2024

Hello!
So, yes, I have already installed the coreutils.
I'll open a new issue soon about it then.

from avalon.

Related Issues (20)

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.