Code Monkey home page Code Monkey logo

Comments (6)

ganler avatar ganler commented on September 24, 2024 1

@jakc4103 It turns out to be a version conflict of hydra.

Can you try:

pip install hydra-core --upgrade
pip show hydra-core # >= 1.2.0 should work

from nnsmith.

ganler avatar ganler commented on September 24, 2024 1

Ah, I see. I'm sorry, my pypi didn't fall into this setting to tell you about this bug.

Thanks for diagnosing this issue! Would you like to claim your contribution via a quick PR? It could be very similar to https://github.com/ise-uiuc/nnsmith/pull/68/files which just needs to add a version constraint for hydra-colorlog in both requirements/core.txt and setup.cfg. Of course, I can help add that if you are not interested. Thanks!

from nnsmith.

ganler avatar ganler commented on September 24, 2024

Feel free to reopen if it is not resolved. Thanks!

from nnsmith.

jakc4103 avatar jakc4103 commented on September 24, 2024

seems like some version conflict still exist?

   File "/venv/test/lib/python3.8/site-packages/hydra/_internal/utils.py", line 213, in run_and_report
    return func()
  File "/venv/test/lib/python3.8/site-packages/hydra/_internal/utils.py", line 453, in <lambda>
    lambda: hydra.run(
  File "/venv/test/lib/python3.8/site-packages/hydra/_internal/hydra.py", line 105, in run
    cfg = self.compose_config(
  File "/venv/test/lib/python3.8/site-packages/hydra/_internal/hydra.py", line 602, in compose_config
    configure_log(cfg.hydra.hydra_logging, cfg.hydra.verbose)
  File "/venv/test/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 361, in __getattr__
    self._format_and_raise(key=key, value=None, cause=e)
  File "/venv/test/lib/python3.8/site-packages/omegaconf/base.py", line 231, in _format_and_raise
    format_and_raise(
  File "/venv/test/lib/python3.8/site-packages/omegaconf/_utils.py", line 873, in format_and_raise
    _raise(ex, cause)
  File "/venv/test/lib/python3.8/site-packages/omegaconf/_utils.py", line 771, in _raise
    raise ex.with_traceback(sys.exc_info()[2])  # set env var OC_CAUSE=1 for full trace
  File "/venv/test/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 353, in __getattr__
    return self._get_impl(
  File "/venv/test/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 453, in _get_impl
    return self._resolve_with_default(
  File "/venv/test/lib/python3.8/site-packages/omegaconf/basecontainer.py", line 96, in _resolve_with_default
    raise MissingMandatoryValue("Missing mandatory value: $FULL_KEY")
omegaconf.errors.MissingMandatoryValue: Missing mandatory value: hydra.hydra_logging
    full_key: hydra.hydra_logging
    object_type=HydraConf

versions I used:
hydra-core: 1.2.0
omegaconf: 2.2.1

from nnsmith.

ganler avatar ganler commented on September 24, 2024

Hi @jakc4103 , I was able to still run it with hydra-core==1.2.0 and omegaconf==2.2.1 over Python3.

Can you double check with the lastest commit for using NNSmith?

pip install "git+https://github.com/ise-uiuc/nnsmith@main#egg=nnsmith[torch,onnx]" --upgrade

Meanwhile, please kindly find this colab script for a working example:

https://colab.research.google.com/drive/1cbLiDvDLDY_MQfH2flNYbCP9aMNlFqLX?usp=sharing

from nnsmith.

jakc4103 avatar jakc4103 commented on September 24, 2024

version of hydra-colorlog must be v1.2.0, instead of v1.0.0
otherwise one might ran into errors similar to this

seems like some version conflict still exist?

   File "/venv/test/lib/python3.8/site-packages/hydra/_internal/utils.py", line 213, in run_and_report
    return func()
  File "/venv/test/lib/python3.8/site-packages/hydra/_internal/utils.py", line 453, in <lambda>
    lambda: hydra.run(
  File "/venv/test/lib/python3.8/site-packages/hydra/_internal/hydra.py", line 105, in run
    cfg = self.compose_config(
  File "/venv/test/lib/python3.8/site-packages/hydra/_internal/hydra.py", line 602, in compose_config
    configure_log(cfg.hydra.hydra_logging, cfg.hydra.verbose)
  File "/venv/test/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 361, in __getattr__
    self._format_and_raise(key=key, value=None, cause=e)
  File "/venv/test/lib/python3.8/site-packages/omegaconf/base.py", line 231, in _format_and_raise
    format_and_raise(
  File "/venv/test/lib/python3.8/site-packages/omegaconf/_utils.py", line 873, in format_and_raise
    _raise(ex, cause)
  File "/venv/test/lib/python3.8/site-packages/omegaconf/_utils.py", line 771, in _raise
    raise ex.with_traceback(sys.exc_info()[2])  # set env var OC_CAUSE=1 for full trace
  File "/venv/test/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 353, in __getattr__
    return self._get_impl(
  File "/venv/test/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 453, in _get_impl
    return self._resolve_with_default(
  File "/venv/test/lib/python3.8/site-packages/omegaconf/basecontainer.py", line 96, in _resolve_with_default
    raise MissingMandatoryValue("Missing mandatory value: $FULL_KEY")
omegaconf.errors.MissingMandatoryValue: Missing mandatory value: hydra.hydra_logging
    full_key: hydra.hydra_logging
    object_type=HydraConf

versions I used: hydra-core: 1.2.0 omegaconf: 2.2.1

from nnsmith.

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.