Giter VIP home page Giter VIP logo

Comments (9)

Beauxrel avatar Beauxrel commented on June 10, 2024 1
File "/home/landon/miniconda3/envs/cybersim/lib/python3.11/dataclasses.py", line 815, in _get_field
    raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'cyberbattle.simulation.model.FirewallConfiguration'> for field firewall is not allowed: use default_factory

from cyberbattlesim.

Beauxrel avatar Beauxrel commented on June 10, 2024 1

@virenderdhiman the solution is to install with the python change in env.yml, 3.11 will not work.

from cyberbattlesim.

blumu avatar blumu commented on June 10, 2024

Could you share the error you get with 3.11?
Is this the one you mentioned in other issue #110

ModuleNotFoundError: No module named 'charset_normalizer'

from cyberbattlesim.

Beauxrel avatar Beauxrel commented on June 10, 2024

Off-topic, but is there a way to save checkpoints of my learning? would like to train models and pick back up later.

from cyberbattlesim.

Beauxrel avatar Beauxrel commented on June 10, 2024

@blumu

from cyberbattlesim.

Beauxrel avatar Beauxrel commented on June 10, 2024
all_runs.append(dqn_learning_run)

new_array = np.array(all_runs)
file = open("/home/landon/Desktop/sample.txt", "x")
content = str(new_array)
file.write(content)
file.close()

here I am saving all_runs array as a text file. Could I just feed this back into the next run to pickup where I left off?

from cyberbattlesim.

virenderdhiman avatar virenderdhiman commented on June 10, 2024

I am getting the same issue mentioned above when I try to clone and run the test with following command "python -m cyberbattle.agents.baseline.run --training_episode_count 5 --eval_episode_count 3 --iteration_count 100 --rewardplot_width 80 --chain_size=4 --ownership_goal 0.2
Issue:

File "/home/landon/miniconda3/envs/cybersim/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'cyberbattle.simulation.model.FirewallConfiguration'> for field firewall is not allowed: use default_factory

Can someone provide the resolution for this?

from cyberbattlesim.

2twentytwo2 avatar 2twentytwo2 commented on June 10, 2024

from cyberbattlesim.

blumu avatar blumu commented on June 10, 2024

Reopening until the python version gets fixed in env.yaml

from cyberbattlesim.

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.