GithubHelp home page GithubHelp logo

facebookresearch / diplomacy_cicero Goto Github PK

View Code? Open in Web Editor NEW
1.3K 24.0 157.0 3.02 MB

Code for Cicero, an AI agent that plays the game of Diplomacy with open-domain natural language negotiation.

License: Other

Dockerfile 0.02% Shell 0.44% Makefile 0.02% Python 58.40% CMake 0.10% C++ 7.84% HTML 33.17%

diplomacy_cicero's Introduction

Diplomacy Cicero and Diplodocus

This code contains checkpoints and training code for the following papers:

Code

A very brief orientation:

  • Most of the language modeling and generation code is in parlai_diplomacy, and leverages the ParlAI framework for running and finetuning the language models involved.
  • Within the agents directory, the central logic for Cicero's strategic planning lives here and here. The latter also contains the core logic for Diplodocus's strategic planning. "bqre1p" was the internal dev name for DiL-piKL, and "br_corr_bilateral" the internal dev name for Cicero's bilateral and correlated planning components.
  • The dialogue-free model architectures for RL are here, and the bulk of the training logic lives here
  • The RL training code for both Cicero and Diplodocus is here
  • The conf directory contains various configs for Cicero, Diplodocus, benchmark agents, and training configs for RL.
  • A separately licensed subfolder of this repo here contains some utilities for visually rendering games, or connecting agents to be run online.

Game info

Diplomacy is a strategic board game set in 1914 Europe. The board is divided into fifty-six land regions and nineteen sea regions. Forty-two of the land regions are divided among the seven Great Powers of the game: Austria-Hungary, England, France, Germany, Italy, Russia, and Turkey. The remaining fourteen land regions are neutral at the start of the game.

Each power controls some regions and some units. The number of the units controlled depends on the number of the controlled key regions called Supply Centers (SCs). Simply put, more SCs means more units. The goal of the game is to control more than half of all SCs by moving units into these regions and convincing other players to support you.

You can find the full rules here. To get the game's spirit, watch some games with comments. You can play the game online on webDiplomacy either against bots or humans.

Installation

Most of the code of the project implemented in Python with some parts in C++. The snippet below show how to install and build all required components within a conda environment on Ubuntu system. You would need C++ compiler with C++11 support. We use gcc 9.4.

# Clone the repo with submodules:
git clone --recursive [email protected]:facebookresearch/diplomacy_cicero.git diplomacy_cicero
cd diplomacy_cicero

# Apt installs
apt-get install -y wget bzip2 ca-certificates curl git build-essential clang-format-8 git wget cmake build-essential autoconf libtool pkg-config libgoogle-glog-dev

# Install conda
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.7.10-Linux-x86_64.sh -O ~/miniconda.sh
/bin/bash ~/miniconda.sh -b

# Create conda env
conda create --yes -n diplomacy_cicero python=3.7
conda activate diplomacy_cicero

# Install pytorch, pybind11
conda install --yes pytorch=1.7.1 torchvision cudatoolkit=11.0 -c pytorch
conda install --yes pybind11

# Install go for boringssl in grpc
# We have some hacky patching code for protobuf that is not guaranteed
# to work on versions other than this.
conda install --yes go protobuf=3.19.1

# Install python requirements
pip install -r requirements.txt

# Local pip installs
pip install -e ./thirdparty/github/fairinternal/postman/nest/
# NOTE: Postman here links against pytorch for tensors, for this to work you may
# need to separately have installed cuda 11 on your own.
pip install -e ./thirdparty/github/fairinternal/postman/postman/
pip install -e . -vv

# Make
make

# Run unit tests
make test_fast

After each pull it's recommended to run make to re-compile internal C++ and protobuf code.

Downloading model files

Please email [email protected] to request the password. Then run bash bin/download_model_files.sh <PASSWORD>. This will download and decrypt all relevant model files into ./models. This might take awhile. Please note the model files have their own license separate from the code in this repository. More details on this can be found below.

Accessing Cicero's experiment games

JSON data and visualizations for games that Cicero played in are located in data/cicero_redacted_games. Only conversations with players who have consented to having their dialogue released are included. Please refer to the (separately-licensed) fairdiplomacy_external subdirectory for details on HTML visualizations.

Getting started

The front-end for most tasks is run.py, which can run various tasks specified by a protobuf config. The config schema can be found at conf/conf.proto, and example configs for different tasks can be found in the conf folder. This can be used for most tasks (except training parlai models): training no-press models, comparing agents, profiling things, launching an agent on webdip, etc.

The config specification framework, called HeyHi, is explained here

A core abstraction is an Agent, which is specified by an Agent config whose schema lives in conf/agents.proto.

Simulating games between agents

To simulate 1v6 games between a pair of agents, you can run the compare_agents task. For example, to play one Cicero agent as Turkey against six full-press imitation agents, you can run

python run.py --adhoc --cfg conf/c01_ag_cmp/cmp.prototxt Iagent_one=agents/cicero.prototxt Iagent_six=agents/ablations/cicero_imitation_only.prototxt power_one=TURKEY

If you don't have sufficient memory to load two agents, you can load a single agent in self-play with the use_shard_agent=1 flag:

python run.py --adhoc --cfg conf/c01_ag_cmp/cmp.prototxt Iagent_one=agents/cicero.prototxt use_shared_agent=1 power_one=TURKEY

Training models in RL

To run the training for Cicero and/or Diplodocus:

python run.py —adhoc —cfg conf/c04_exploit/research_20221001_paper_cicero.prototxt launcher.slurm.num_gpus=256

python run.py —adhoc —cfg conf/c04_exploit/research_20221001_paper_diplodocus_high.prototxt launcher.slurm.num_gpus=256

The above training commands are designed for running on an appropriately configured Slurm cluster with a fast cross-machine shared filesystem. One can also instead pass launcher.local.use_local=true to run them on locally, e.g. on an individual 8-GPU-or-more GPU machine but training may be very slow.

Other tasks

See here for some separately-licensed code for rendering game jsons with HTML, as well as connecting agents to run on webdiplomacy.net.

Supervised training of baseline models

Supervised training and/or behavioral cloning for various dialogue-conditional models as well as pre-RL baseline dialogue-free models involves some of the scripts in parlai_diplomacy via the ParlAI framework, and on the dialogue-free side, some of the configs conf/c02_sup_train and train_sl.py. However the dataset of human games and/or dialogue is NOT available here, so the relevant code and configs are likely to be of limited use. They are provided here mostly as documentation for posterity.

However, as mentioned above pre-trained models are available, and with sufficient compute power, re-running the RL on top of these pre-trained models is also possible without any external game data.

Pre-commit hooks

Run pre-commit install to install pre-commit hooks that will auto-format python code before commiting it.

Or you can do this manually. Use black auto-formatter to format all python code. For protobufs use clang-format-8 conf/*.proto -i.

Tests

To run tests locally run make test.

We have 2 level of tests: fast, unit tests (run with make test_fast) and slow, integration tests (run with make test_integration). The latter aims to use the same entry point as users do, i.e., run.py for the HeyHi part and diplom for the ParlAi.

We use pytest to run and discover tests. Some useful pytest commands.

To run all tests in your current directory, simply run:

pytest

To run tests from a specific file, run:

pytest <filepath>

To use name-based filtering to run tests, use the flag -k. For example, to only run tests with parlai in the name, run:

pytest -k parlai

For verbose testing logs, use -v:

pytest -v -k parlai

To print the output from a test or set of tests, use -s; this also allows you to set breakpoints:

pytest -s

To view the durations of all tests, run with the flag --durations=0, e.g.:

pytest --durations=0 unit_tests/

License for Code

The following license, which is also available here, covers the content in this repo except for the fairdiplomacy_external directory. The content of fairdiplomacy_external is separately licenced under a version of the AGPL, see the license file within that directory for details.

(covers this repo except for the fairdiplomacy_external directory)
MIT License

Copyright (c) Meta, Inc. and its affiliates.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

License for Model Weights

We are releasing model weights under a separate license: CC-BY-NC (version 4.0). This license is copied into this repository for convenience: LICENSE_FOR_MODEL_WEIGHTS.txt.

diplomacy_cicero's People

Contributors

adamlerer avatar akhti avatar alexholdenmiller avatar c-flaherty avatar eltociear avatar erjanmx avatar jonathathan avatar shobith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

diplomacy_cicero's Issues

Cannot find include agents/bqre1p_parlai_20220819_cicero_2

When I run the example command, I get a message "Cannot find include agents/bqre1p_parlai_20220819_cicero_2".

(diplomacy_cicero) ubuntu:~/diplomacy/diplomacy_cicero$ python run.py --adhoc --cfg conf/c01_ag_cmp/cmp.prototxt Iagent_one=agents/bqre1p_parlai_20220819_cicero_2.prototxt Iagent_six=agents/ablations/cicero_imitation_only.prototxt power_one=TURKEY

I0104 16:18:44 [run:154] Config: conf/c01_ag_cmp/cmp.prototxt
I0104 16:18:44 [run:155] Overrides: ['Iagent_one=agents/bqre1p_parlai_20220819_cicero_2.prototxt', 'Iagent_six=agents/ablations/cicero_imitation_only.prototxt', 'power_one=TURKEY']
I0104 16:18:44 [run:163] Exp dir: /home/ubuntu/diplomacy_experiments/results/diplomacy/adhoc/2023-01-04T161844.235885/c01_ag_cmp/cmp/Iag@agents_bqre1p_parlai_20220819_cicero_2.prototxt@Iag@ablations_cicero_imitation_only.prototxt@pow_d83d7012
I0104 16:18:44 [run:164] Job status [before run]: Status.NOT_STARTED
Traceback (most recent call last):
  File "run.py", line 165, in <module>
    heyhi.parse_args_and_maybe_launch(main)
  File "/home/ubuntu/diplomacy/diplomacy_cicero/heyhi/run.py", line 122, in parse_args_and_maybe_launch
    maybe_launch(main, exp_root=get_exp_dir(PROJECT_NAME), overrides=overrides, **kwargs)
  File "/home/ubuntu/diplomacy/diplomacy_cicero/heyhi/run.py", line 173, in maybe_launch
    util.run_with_config(main, exp_handle, cfg, overrides, ckpt_dir, log_level)
  File "/home/ubuntu/diplomacy/diplomacy_cicero/heyhi/util.py", line 566, in run_with_config
    task, meta_cfg = conf.load_root_proto_message(config_path, overrides)
  File "/home/ubuntu/diplomacy/diplomacy_cicero/heyhi/conf.py", line 423, in load_root_proto_message
    extra_include_dirs=extra_include_dirs,
  File "/home/ubuntu/diplomacy/diplomacy_cicero/heyhi/conf.py", line 337, in load_proto_message
    include_overides, scalar_overideds = _parse_overrides(overrides, include_dirs=include_dirs)
  File "/home/ubuntu/diplomacy/diplomacy_cicero/heyhi/conf.py", line 110, in _parse_overrides
    value = str(_resolve_include(value, include_dirs, key))
  File "/home/ubuntu/diplomacy/diplomacy_cicero/heyhi/conf.py", line 98, in _resolve_include
    raise ValueError(err_msg)
ValueError: Cannot find include agents/bqre1p_parlai_20220819_cicero_2. Possible typo, known includes:
agents/base_strategy_model
agents/cicero
agents/diplodocus_high
agents/diplodocus_low
agents/repro
agents/searchbot

As suggested, I can run the command if I replace agents/bqre1p_parlai_20220819_cicero_2 in the command with agents/cicero, and that's able to simulate the game for a while, although it eventually gets me the following error:

  File "/home/ubuntu/diplomacy/diplomacy_cicero/parlai_diplomacy/wrappers/orders.py", line 1110, in _format_input_seq
    assert target_power is not None
AssertionError

Thanks for looking at this issue!

Error when install postman

Error occurred when I install postman by pip install -e ./thirdparty/github/fairinternal/postman/postman/
Do you know how to solve it?

The report is:

Obtaining file:///home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: torch>=1.4.0 in ./env/lib/python3.7/site-packages (from postman==0.2.2) (1.7.1)
Requirement already satisfied: typing_extensions in ./env/lib/python3.7/site-packages (from torch>=1.4.0->postman==0.2.2) (4.3.0)
Requirement already satisfied: numpy in ./env/lib/python3.7/site-packages (from torch>=1.4.0->postman==0.2.2) (1.20.3)
Installing collected packages: postman
Running setup.py develop for postman
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [87 lines of output]
    running develop
    running egg_info
    writing python/postman.egg-info/PKG-INFO
    writing dependency_links to python/postman.egg-info/dependency_links.txt
    writing requirements to python/postman.egg-info/requires.txt
    writing top-level names to python/postman.egg-info/top_level.txt
    reading manifest file 'python/postman.egg-info/SOURCES.txt'
    writing manifest file 'python/postman.egg-info/SOURCES.txt'
    running build_ext
    git submodule update --init --recursive
    mkdir -p cmake_build/postman && cd cmake_build/postman && cmake -DCMAKE_BUILD_TYPE=Release ../../postman -DPYTHON_EXECUTABLE=/home/XXX/diplomacy_cicero/env/bin/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=../../postman/python/postman
    -- pybind11 v2.3.dev1
    -- No CMAKE_CXX_STANDARD set, assuming 11
    --
    -- 3.11.2.0
    CMake Deprecation Warning at /home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/third_party/grpc/third_party/zlib/CMakeLists.txt:1 (cmake_minimum_required):
      Compatibility with CMake < 2.8.12 will be removed from a future version of
      CMake.
    
      Update the VERSION argument <min> value or use a ...<max> suffix to tell
      CMake that the project does not need compatibility with older versions.
    
    
    -- Caffe2: CUDA detected: 11.1
    -- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
    -- Caffe2: CUDA toolkit directory: /usr/local/cuda
    -- Caffe2: Header version is: 11.1
    -- Could NOT find CUDNN (missing: CUDNN_LIBRARY_PATH CUDNN_INCLUDE_PATH)
    CMake Warning at /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:109 (message):
      Caffe2: Cannot find cuDNN library.  Turning the option off
    Call Stack (most recent call first):
      /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:88 (include)
      /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
      CMakeLists.txt:48 (find_package)
    
    
    -- Added CUDA NVCC flags for: -gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70
    CMake Error at /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:96 (message):
      Your installed Caffe2 version uses cuDNN but I cannot find the cuDNN
      libraries.  Please set the proper cuDNN prefixes and / or install cuDNN.
    Call Stack (most recent call first):
      /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
      CMakeLists.txt:48 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman/CMakeFiles/CMakeOutput.log".
    See also "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman/CMakeFiles/CMakeError.log".
    make: *** [Makefile:9: cmake_build/postman/Makefile] Error 1
    /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      EasyInstallDeprecationWarning,
    /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      setuptools.SetuptoolsDeprecationWarning,
    Traceback (most recent call last):
      File "<string>", line 36, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 38, in <module>
        main()
      File "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 33, in main
        test_suite="setup.test_suite",
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
        return run_commands(dist)
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
        dist.run_commands()
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
        self.run_command(cmd)
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
        self.run_command('build_ext')
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
        self.distribution.run_command(command)
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 20, in run
        subprocess.check_call("make develop".split(), cwd="..")
      File "/home/XXX/diplomacy_cicero/env/lib/python3.7/subprocess.py", line 363, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['make', 'develop']' returned non-zero exit status 2.
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [87 lines of output]
running develop
running egg_info
writing python/postman.egg-info/PKG-INFO
writing dependency_links to python/postman.egg-info/dependency_links.txt
writing requirements to python/postman.egg-info/requires.txt
writing top-level names to python/postman.egg-info/top_level.txt
reading manifest file 'python/postman.egg-info/SOURCES.txt'
writing manifest file 'python/postman.egg-info/SOURCES.txt'
running build_ext
git submodule update --init --recursive
mkdir -p cmake_build/postman && cd cmake_build/postman && cmake -DCMAKE_BUILD_TYPE=Release ../../postman -DPYTHON_EXECUTABLE=/home/XXX/diplomacy_cicero/env/bin/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=../../postman/python/postman
-- pybind11 v2.3.dev1
-- No CMAKE_CXX_STANDARD set, assuming 11
--
-- 3.11.2.0
CMake Deprecation Warning at /home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/third_party/grpc/third_party/zlib/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Caffe2: CUDA detected: 11.1
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 11.1
-- Could NOT find CUDNN (missing: CUDNN_LIBRARY_PATH CUDNN_INCLUDE_PATH)
CMake Warning at /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:109 (message):
  Caffe2: Cannot find cuDNN library.  Turning the option off
Call Stack (most recent call first):
  /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:88 (include)
  /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
  CMakeLists.txt:48 (find_package)


-- Added CUDA NVCC flags for: -gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70
CMake Error at /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:96 (message):
  Your installed Caffe2 version uses cuDNN but I cannot find the cuDNN
  libraries.  Please set the proper cuDNN prefixes and / or install cuDNN.
Call Stack (most recent call first):
  /home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
  CMakeLists.txt:48 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman/CMakeFiles/CMakeOutput.log".
See also "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman/CMakeFiles/CMakeError.log".
make: *** [Makefile:9: cmake_build/postman/Makefile] Error 1
/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
Traceback (most recent call last):
  File "<string>", line 36, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 38, in <module>
    main()
  File "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 33, in main
    test_suite="setup.test_suite",
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
    self.run_command('build_ext')
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
    self.distribution.run_command(command)
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/XXX/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 20, in run
    subprocess.check_call("make develop".split(), cwd="..")
  File "/home/XXX/diplomacy_cicero/env/lib/python3.7/subprocess.py", line 363, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', 'develop']' returned non-zero exit status 2.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

Adapt for other games?

How difficult of a task would it be to adapt it to play other games? Specifically for the game "Secret Hitler".

Undefined names in Python code

% flake8 . --count --select=E9,F63,F7,F82,Y --show-source --statistics

./dipcc/python/datc/parse_datc.py:124:32: F821 undefined name 'test_strs'
            print(f"{i} / {len(test_strs)}\tavg={stats_t/(stats_count+.0001)}")
                               ^
./dipcc/python/datc/parse_datc.py:125:19: F821 undefined name 's'
            print(s, pformat(orders), result_str, sep="\n\n")
                  ^
./fairdiplomacy/agents/__init__.py:11:82: F821 undefined name 'BaseAgent'
def build_agent_from_cfg(agent_stanza: "conf.agents_cfgs.Agent", **redefines) -> "BaseAgent":
                                                                                 ^
./fairdiplomacy/selfplay/pg/data_loader.py:327:49: F821 undefined name 'conf'
    def __init__(self, model_path, rollout_cfg: "conf.conf_cfgs.ExploitTask.Rollout"):
                                                ^
./fairdiplomacy/selfplay/search/rollout.py:360:29: F821 undefined name 'observations'
            if right >= len(observations):
                            ^
./fairdiplomacy/selfplay/search/rollout.py:363:28: F821 undefined name 'scores'
            final_scores = scores[-1]
                           ^
./fairdiplomacy/selfplay/search/rollout.py:365:17: F821 undefined name 'observations'
            del observations[right:]
                ^
./fairdiplomacy/selfplay/search/rollout.py:366:17: F821 undefined name 'is_explore'
            del is_explore[right:]
                ^
./fairdiplomacy/selfplay/search/rollout.py:367:17: F821 undefined name 'scores'
            del scores[right:]
                ^
./fairdiplomacy/selfplay/search/rollout.py:379:13: F821 undefined name 'scores'
            scores[-1] = final_scores
            ^
./heyhi/bin/patch_protos.py:127:38: F821 undefined name 'NestedDictList'
    NestedDictList = Union[Dict[str, "NestedDictList"], List["NestedDictList"], Scalar]
                                     ^
./heyhi/bin/patch_protos.py:127:62: F821 undefined name 'NestedDictList'
    NestedDictList = Union[Dict[str, "NestedDictList"], List["NestedDictList"], Scalar]
                                                             ^
./heyhi/bin/patch_protos.py:195:16: F821 undefined name 'FROZEN_SYM_BD'
        return FROZEN_SYM_BD[descriptor.full_name](ret, self)
               ^
13    F821 undefined name 'test_strs'
13

E NameError: name 'FROZEN_SYM_BD' is not defined

I am on MacOS 13.1 with an Anaconda virtual environmen: decision-transformer-gym

Where is FROZEN_SYM_BD defined?

E.g. - $vi +5 conf/conf_cfgs.py

MetaCfg = FROZEN_SYM_BD['fairdiplomacy.MetaCfg']

Undefined Reference Errors when running make

Using Debian Linux. Followed install instructions, but on running make am getting a bunch of undefined reference errors as follows:

[ 83%] Built target gmock_main
[ 91%] Linking CXX shared module /home/[username]/diplomacy_cicero/fairdiplomacy/selfplay/rela.cpython-37m-x86_64-linux-gnu.so
[100%] Linking CXX executable prioritized_replay_test
/usr/bin/ld: /opt/conda/envs/cicero2/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_InternFromString' /usr/bin/ld: /opt/conda/envs/cicero2/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyInstanceMethod_Type'
/usr/bin/ld: /opt/conda/envs/cicero2/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to `PyDict_DelItemString'

Have also tested this on several other machines/configurations with the same results.

Error when install postman

Getting an error when trying to install postman:

$ pip install -e ./thirdparty/github/fairinternal/postman/postman/
Looking in indexes: https://pypi.python.org/simple
Obtaining file:///home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.4.0 in /home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages (from postman==0.2.2) (1.7.1+cu110)
Requirement already satisfied: numpy in /home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages (from torch>=1.4.0->postman==0.2.2) (1.20.3)
Requirement already satisfied: typing-extensions in /home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages (from torch>=1.4.0->postman==0.2.2) (4.4.0)
Installing collected packages: postman
Running setup.py develop for postman
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [191 lines of output]
    running develop
    running egg_info
    writing python/postman.egg-info/PKG-INFO
    writing dependency_links to python/postman.egg-info/dependency_links.txt
    writing requirements to python/postman.egg-info/requires.txt
    writing top-level names to python/postman.egg-info/top_level.txt
    reading manifest file 'python/postman.egg-info/SOURCES.txt'
    writing manifest file 'python/postman.egg-info/SOURCES.txt'
    running build_ext
    make -C cmake_build/postman -j
    make[1]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[2]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target zlibstatic
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target address_sorting
    [ 98%] Built target absl_log_severity
    [ 98%] Built target absl_spinlock_wait
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target absl_dynamic_annotations
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target absl_int128
    [ 98%] Built target c-ares
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target ssl
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target upb
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target absl_raw_logging_internal
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target gtest
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target absl_base
    [ 98%] Built target absl_bad_optional_access
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target gtest_main
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target libprotobuf
    [ 98%] Built target absl_throw_delegate
    [ 98%] Built target absl_strings_internal
    [ 98%] Built target crypto
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target absl_strings
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target absl_str_format_internal
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target gpr
    [ 98%] Built target libprotoc
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target protoc
    [ 98%] Built target grpc_plugin_support
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target grpc_cpp_plugin
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target grpc
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    [ 98%] Built target grpc++
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    CMakeFiles/postman.dir/build.make:83: warning: overriding recipe for target '.'
    CMakeFiles/postman.dir/build.make:77: warning: ignoring old recipe for target '.'
    Consolidate compiler generated dependencies of target postman
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    CMakeFiles/postman.dir/build.make:83: warning: overriding recipe for target '.'
    CMakeFiles/postman.dir/build.make:77: warning: ignoring old recipe for target '.'
    [ 98%] Building CXX object CMakeFiles/postman.dir/cc/serialization.cc.o
    In file included from /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/include/postman/serialization.h:25,
                     from /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/cc/serialization.cc:7:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In member function ‘nest::Nest<T> nest::Nest<T>::pack_as(InputIt, InputIt) const’:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:162:18: error: ‘range_error’ is not a member of ‘std’
      162 |       throw std::range_error("Nest didn't exhaust sequence");
          |                  ^~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:172:35: error: ‘out_of_range’ is not a member of ‘std’
      172 |                        throw std::out_of_range("Too few elements in sequence");
          |                                   ^~~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In static member function ‘static nest::Nest<std::vector<T> > nest::Nest<T>::zip(const std::vector<nest::Nest<T> >&)’:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:197:18: error: ‘invalid_argument’ is not a member of ‘std’
      197 |       throw std::invalid_argument("Expected at least one nest.");
          |                  ^~~~~~~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:223:28: error: ‘invalid_argument’ is not a member of ‘std’
      223 |                 throw std::invalid_argument(
          |                            ^~~~~~~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:240:28: error: ‘invalid_argument’ is not a member of ‘std’
      240 |                 throw std::invalid_argument(
          |                            ^~~~~~~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:249:30: error: ‘invalid_argument’ is not a member of ‘std’
      249 |                   throw std::invalid_argument(
          |                              ^~~~~~~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:259:26: error: ‘invalid_argument’ is not a member of ‘std’
      259 |               throw std::invalid_argument("nests don't match");
          |                          ^~~~~~~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:290:28: error: ‘invalid_argument’ is not a member of ‘std’
      290 |                 throw std::invalid_argument(
          |                            ^~~~~~~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:304:28: error: ‘invalid_argument’ is not a member of ‘std’
      304 |                 throw std::invalid_argument(
          |                            ^~~~~~~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:312:30: error: ‘invalid_argument’ is not a member of ‘std’
      312 |                   throw std::invalid_argument(
          |                              ^~~~~~~~~~~~~~~~
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
    /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:320:26: error: ‘invalid_argument’ is not a member of ‘std’
      320 |               throw std::invalid_argument("nests don't match");
          |                          ^~~~~~~~~~~~~~~~
    make[3]: *** [CMakeFiles/postman.dir/build.make:131: CMakeFiles/postman.dir/cc/serialization.cc.o] Error 1
    make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[2]: *** [CMakeFiles/Makefile2:787: CMakeFiles/postman.dir/all] Error 2
    make[2]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make[1]: *** [Makefile:146: all] Error 2
    make[1]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
    make: *** [Makefile:12: compile] Error 2
    /home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      EasyInstallDeprecationWarning,
    /home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      setuptools.SetuptoolsDeprecationWarning,
    Traceback (most recent call last):
      File "<string>", line 36, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 38, in <module>
        main()
      File "/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 33, in main
        test_suite="setup.test_suite",
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
        return run_commands(dist)
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
        dist.run_commands()
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
        self.run_command(cmd)
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
        self.run_command('build_ext')
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
        self.distribution.run_command(command)
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 20, in run
        subprocess.check_call("make develop".split(), cwd="..")
      File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/subprocess.py", line 363, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['make', 'develop']' returned non-zero exit status 2.
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [191 lines of output]
running develop
running egg_info
writing python/postman.egg-info/PKG-INFO
writing dependency_links to python/postman.egg-info/dependency_links.txt
writing requirements to python/postman.egg-info/requires.txt
writing top-level names to python/postman.egg-info/top_level.txt
reading manifest file 'python/postman.egg-info/SOURCES.txt'
writing manifest file 'python/postman.egg-info/SOURCES.txt'
running build_ext
make -C cmake_build/postman -j
make[1]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[2]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target zlibstatic
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target address_sorting
[ 98%] Built target absl_log_severity
[ 98%] Built target absl_spinlock_wait
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_dynamic_annotations
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_int128
[ 98%] Built target c-ares
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target ssl
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target upb
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_raw_logging_internal
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target gtest
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_base
[ 98%] Built target absl_bad_optional_access
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target gtest_main
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target libprotobuf
[ 98%] Built target absl_throw_delegate
[ 98%] Built target absl_strings_internal
[ 98%] Built target crypto
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_strings
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_str_format_internal
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target gpr
[ 98%] Built target libprotoc
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target protoc
[ 98%] Built target grpc_plugin_support
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target grpc_cpp_plugin
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target grpc
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target grpc++
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
CMakeFiles/postman.dir/build.make:83: warning: overriding recipe for target '.'
CMakeFiles/postman.dir/build.make:77: warning: ignoring old recipe for target '.'
Consolidate compiler generated dependencies of target postman
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
CMakeFiles/postman.dir/build.make:83: warning: overriding recipe for target '.'
CMakeFiles/postman.dir/build.make:77: warning: ignoring old recipe for target '.'
[ 98%] Building CXX object CMakeFiles/postman.dir/cc/serialization.cc.o
In file included from /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/include/postman/serialization.h:25,
from /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/cc/serialization.cc:7:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In member function ‘nest::Nest nest::Nest::pack_as(InputIt, InputIt) const’:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:162:18: error: ‘range_error’ is not a member of ‘std’
162 | throw std::range_error("Nest didn't exhaust sequence");
| ^~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:172:35: error: ‘out_of_range’ is not a member of ‘std’
172 | throw std::out_of_range("Too few elements in sequence");
| ^~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In static member function ‘static nest::Nest<std::vector > nest::Nest::zip(const std::vector<nest::Nest >&)’:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:197:18: error: ‘invalid_argument’ is not a member of ‘std’
197 | throw std::invalid_argument("Expected at least one nest.");
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:223:28: error: ‘invalid_argument’ is not a member of ‘std’
223 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:240:28: error: ‘invalid_argument’ is not a member of ‘std’
240 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:249:30: error: ‘invalid_argument’ is not a member of ‘std’
249 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:259:26: error: ‘invalid_argument’ is not a member of ‘std’
259 | throw std::invalid_argument("nests don't match");
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:290:28: error: ‘invalid_argument’ is not a member of ‘std’
290 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:304:28: error: ‘invalid_argument’ is not a member of ‘std’
304 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:312:30: error: ‘invalid_argument’ is not a member of ‘std’
312 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:320:26: error: ‘invalid_argument’ is not a member of ‘std’
320 | throw std::invalid_argument("nests don't match");
| ^~~~~~~~~~~~~~~~
make[3]: *** [CMakeFiles/postman.dir/build.make:131: CMakeFiles/postman.dir/cc/serialization.cc.o] Error 1
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[2]: *** [CMakeFiles/Makefile2:787: CMakeFiles/postman.dir/all] Error 2
make[2]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[1]: *** [Makefile:146: all] Error 2
make[1]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make: *** [Makefile:12: compile] Error 2
/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 38, in
main()
File "/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 33, in main
test_suite="setup.test_suite",
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 20, in run
subprocess.check_call("make develop".split(), cwd="..")
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', 'develop']' returned non-zero exit status 2.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

ModuleNotFoundError: No module named 'mypy_protobuf' after installation of package with anaconda on Ubuntu 22.04

pip install -e . -vv

Editable install will be performed using a meta path finder.

Options like package-data, include/exclude-package-data or
packages.find.exclude/include may have no effect.

adding '__editable___fairdiplomacy_0_1_finder.py'
adding 'editable.fairdiplomacy-0.1.pth'
creating '/tmp/pip-wheel-zhel742h/.tmp-_2fxpx0h/fairdiplomacy-0.1-0.editable-py3-none-any.whl' and adding '/tmp/tmpk9p2w7r0fairdiplomacy-0.1-0.editable-py3-none-any.whl' to it
adding 'fairdiplomacy-0.1.dist-info/LICENSE.md'
adding 'fairdiplomacy-0.1.dist-info/METADATA'
adding 'fairdiplomacy-0.1.dist-info/WHEEL'
adding 'fairdiplomacy-0.1.dist-info/entry_points.txt'
adding 'fairdiplomacy-0.1.dist-info/top_level.txt'
adding 'fairdiplomacy-0.1.dist-info/RECORD'
/tmp/pip-build-env-t5yg3_ee/overlay/lib/python3.7/site-packages/setuptools/command/editable_wheel.py:510: InformationOnly:

      Please be careful with folders in your working directory with the same
      name as your package as they may take precedence during imports.

warnings.warn(msg, InformationOnly)

Traceback (most recent call last):
File "/home/steven/anaconda3/envs/diplomacy_cicero/bin/protoc-gen-mypy", line 6, in
from mypy_protobuf.main import main
ModuleNotFoundError: No module named 'mypy_protobuf'
--mypy_out: protoc-gen-mypy: Plugin failed with status code 1.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['protoc', 'conf/misc.proto', 'conf/agents.proto', 'conf/common.proto', 'conf/conf.proto', '--python_out', './', '--mypy_out', './']' returned non-zero exit status 1.
Building editable for fairdiplomacy (pyproject.toml) ... done
Created wheel for fairdiplomacy: filename=fairdiplomacy-0.1-0.editable-py3-none-any.whl size=4249 sha256=26f9971fcecdbef316808c34d220277c06377408cd34e7b33269348f48308ade
Stored in directory: /tmp/pip-ephem-wheel-cache-8m0x90ua/wheels/27/20/0d/c667b968afca957a8928a45e7da98e9f441b9ac3cef02791ca
Successfully built fairdiplomacy
Installing collected packages: mypy-protobuf, fairdiplomacy
Attempting uninstall: mypy-protobuf
Found existing installation: mypy-protobuf 3.1.0
Uninstalling mypy-protobuf-3.1.0:
Created temporary directory: /tmp/pip-uninstall-kx9oibwo
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/bin/protoc-gen-mypy
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/bin/protoc-gen-mypy_grpc
Created temporary directory: /home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/~ypy_protobuf-3.1.0.dist-info
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/mypy_protobuf-3.1.0.dist-info/
Created temporary directory: /home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/~ypy_protobuf
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/mypy_protobuf/
Successfully uninstalled mypy-protobuf-3.1.0

changing mode of /home/steven/anaconda3/envs/diplomacy_cicero/bin/protoc-gen-mypy to 775
changing mode of /home/steven/anaconda3/envs/diplomacy_cicero/bin/protoc-gen-mypy_grpc to 775
Attempting uninstall: fairdiplomacy
Found existing installation: fairdiplomacy 0.1
Uninstalling fairdiplomacy-0.1:
Created temporary directory: /tmp/pip-uninstall-bsrfkrbm
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/bin/diplom
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/bin/parlai-sweep
Created temporary directory: /tmp/pip-uninstall-g93zu40b
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/editable.fairdiplomacy-0.1.pth
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/__editable___fairdiplomacy_0_1_finder.py
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/pycache/__editable___fairdiplomacy_0_1_finder.cpython-37.pyc
Created temporary directory: /home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/~airdiplomacy-0.1.dist-info
Removing file or directory /home/steven/anaconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/fairdiplomacy-0.1.dist-info/
Successfully uninstalled fairdiplomacy-0.1

changing mode of /home/steven/anaconda3/envs/diplomacy_cicero/bin/diplom to 775
changing mode of /home/steven/anaconda3/envs/diplomacy_cicero/bin/parlai-sweep to 775
Successfully installed fairdiplomacy-0.1 mypy-protobuf-2.10
Remote version of pip: 22.3.1
Local version of pip: 22.2.2
Was pip installed by pip? False
Removed build tracker: '/tmp/pip-build-tracker-j1y_8jvg'

Compiling protos problems

I ran the unit test and found two problems with the code generated from protos.

  1. google.protobuf.message is not imported
  2. KeyError: 'fairdiplomacy.ParlaiFlags' in unit_tests/test_bqre1p_lambdas.py

I can solve the first problem to apply the patch to the generation code, but the second problem seems to be in the code added in "heyhi/bin/patch_protos.py";
I've not solved this yet.
Has anyone been able to solve this problem?

The following is the result of running the unit test.

❯ python -m pytest unit_tests/
========================================================== test session starts ===========================================================
platform linux -- Python 3.7.16, pytest-6.2.1, py-1.11.0, pluggy-0.13.1
rootdir: /home/hirokinko/Workspaces/diplomacy_cicero
plugins: hydra-core-1.1.2, requests-mock-1.10.0, regressions-2.4.1, datadir-1.4.1, anyio-3.6.2
collected 237 items                                                                                                                      

unit_tests/test_ampersand_uncorruption.py .                                                                                        [  0%]
unit_tests/test_bart_classifier.py .                                                                                               [  0%]
unit_tests/test_bqre1p_lambdas.py F                                                                                                [  1%]
unit_tests/test_carriage_returns.py .                                                                                              [  1%]
unit_tests/test_cfrstats_pickle.py ...                                                                                             [  2%]
unit_tests/test_check_permute_powers.py .                                                                                          [  3%]
unit_tests/test_discriminator_teacher_functions.py ................                                                                [ 10%]
unit_tests/test_draw_state_utils.py ..                                                                                             [ 10%]
unit_tests/test_message_editing.py ................                                                                                [ 17%]
unit_tests/test_order_idxs.py ...........                                                                                          [ 22%]
unit_tests/test_parlai_all_holds_filtering.py ....                                                                                 [ 24%]
unit_tests/test_parlai_flattener_to_unflattener.py ..............                                                                  [ 29%]
unit_tests/test_parlai_formatting.py .............................................                                                 [ 48%]
unit_tests/test_parlai_input_validation.py .                                                                                       [ 49%]
unit_tests/test_parlai_input_validation_parts.py ...............................                                                   [ 62%]
unit_tests/test_parlai_message_history_building.py ...                                                                             [ 63%]
unit_tests/test_parlai_message_history_truncation.py .                                                                             [ 64%]
unit_tests/test_parlai_order_filtering.py .                                                                                        [ 64%]
unit_tests/test_parlai_special_tokens.py .                                                                                         [ 64%]
unit_tests/test_pseudo_cache.py .                                                                                                  [ 65%]
unit_tests/test_pydipcc.py ...........................................................                                             [ 90%]
unit_tests/test_resample_duplicate_disbands.py .                                                                                   [ 90%]
unit_tests/test_rollout_spring_ending.py ............                                                                              [ 95%]
unit_tests/test_search_helpers.py .                                                                                                [ 96%]
unit_tests/test_sleep.py ......                                                                                                    [ 98%]
unit_tests/test_timestamp.py .                                                                                                     [ 99%]
unit_tests/test_utils_game.py .                                                                                                    [ 99%]
unit_tests/test_utils_orders.py .                                                                                                  [100%]

================================================================ FAILURES ================================================================
_________________________________________________________ TestBQRE1PLambdas.test _________________________________________________________

self = <unit_tests.test_bqre1p_lambdas.TestBQRE1PLambdas testMethod=test>

    def test(self):
        cfg = heyhi.conf.load_config(
            heyhi.conf.CONF_ROOT / "common/agents/for_tests/bqre1p_20210821_rol0.prototxt",
>           overrides=["bqre1p.base_searchbot_cfg.model_path=MOCKV2",],
        )

unit_tests/test_bqre1p_lambdas.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
heyhi/conf.py:397: in load_config
    return cfg.to_frozen()
conf/conf_pb2.py:64: in to_frozen
    value = maybe_to_dict(value)
conf/conf_pb2.py:47: in maybe_to_dict
    return msg.to_frozen()
conf/conf_pb2.py:64: in to_frozen
    value = maybe_to_dict(value)
conf/conf_pb2.py:47: in maybe_to_dict
    return msg.to_frozen()
conf/conf_pb2.py:64: in to_frozen
    value = maybe_to_dict(value)
conf/conf_pb2.py:47: in maybe_to_dict
    return msg.to_frozen()
conf/conf_pb2.py:64: in to_frozen
    value = maybe_to_dict(value)
conf/conf_pb2.py:47: in maybe_to_dict
    return msg.to_frozen()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 

    def to_frozen(self):
        set_fields = frozenset(f[0].name for f in self.ListFields())
    
        # Mapping from fields within oneof to the name of the oneof.
        field_to_oneof_name = {}
        for oneof in descriptor.oneofs:
            for field in oneof.fields:
                field_to_oneof_name[field.name] = oneof.name
    
        def maybe_to_dict(msg):
            if isinstance(msg, _message.Message):
                return msg.to_frozen()
            return msg
    
        ret = {}
        for name, field in name2field.items():
            if name in field_to_oneof_name:
                chosen_oneof = self.WhichOneof(field_to_oneof_name[name])
                if chosen_oneof is None:
                    value = None
                elif name != chosen_oneof and name != field_to_oneof_name[name]:
                    value = None
                else:
                    value = getattr(self, chosen_oneof)
            else:
                value = getattr(self, name)
    
            if isinstance(value, _message.Message):
                value = maybe_to_dict(value)
            elif field.label == field.LABEL_REPEATED:
                if type(value).__name__.split(".")[-1] == "ScalarMapContainer":
                    value = {x: maybe_to_dict(value[x]) for x in value}
                else:
                    value = tuple(maybe_to_dict(x) for x in value)
            else:
                # A scalar.
                assert (
                    isinstance(value, (float, str, int, bool)) or value is None
                ), f"Excepted a value for {name} to be a scalar. Got {value}"
                if field.enum_type is not None and value is not None:
                    enum_values = field.enum_type.values_by_number
                    if value not in enum_values:
                        raise RuntimeError(
                            f"{name}: {value} not in {[v.name for v in enum_values.values()]}"
                        )
                    value = enum_values[value].name
                if name not in set_fields and not field.has_default_value:
                    value = False if field.type == field.TYPE_BOOL else None
            ret[name] = value
        for oneof in descriptor.oneofs:
            chosen = self.WhichOneof(oneof.name)
            ret["which_" + oneof.name] = chosen
            ret[oneof.name] = ret[chosen] if chosen is not None else None
>       return FROZEN_SYM_BD[descriptor.full_name](ret, self)
E       KeyError: 'fairdiplomacy.ParlaiFlags'

conf/conf_pb2.py:89: KeyError
============================================================ warnings summary ============================================================
fairdiplomacy/models/state_space.py:183
  /home/hirokinko/Workspaces/diplomacy_cicero/fairdiplomacy/models/state_space.py:183: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    adjacencies = np.zeros((len(locs), len(locs)), dtype=np.bool)  # type: ignore

unit_tests/test_parlai_formatting.py::TestOrderFormatting::test_task_token
  /home/hirokinko/Workspaces/diplomacy_cicero/unit_tests/test_parlai_formatting.py:295: DeprecationWarning: Please use assertEqual instead.
    "units: Austria: A BUD, A MUN, A RUM, F TRI; England: A BEL, F BRE, F ENG, F IRI, F NWY; France: A BUR, A GAS, A PAR, F POR; Germany: *A MUN, A BER, A HOL, F DEN, F SWE; Italy: A TYR, A VEN, F ADR, F TUN; Russia: A UKR, A WAR, F BAL, F SEV; Turkey: A ARM, A GRE, A SER, F AEG, F BLA [EO_STATE] F1902R England 1 1 order:",

unit_tests/test_parlai_special_tokens.py::TestSpecialTokens::test_special_tokens
  /home/hirokinko/Workspaces/diplomacy_cicero/unit_tests/test_parlai_special_tokens.py:21: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(v1_toks, st.SPECIAL_TOKENS_V1)

unit_tests/test_parlai_special_tokens.py::TestSpecialTokens::test_special_tokens
  /home/hirokinko/Workspaces/diplomacy_cicero/unit_tests/test_parlai_special_tokens.py:23: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(v1_toks, sorted(v1_toks, key=len, reverse=True))

unit_tests/test_parlai_special_tokens.py::TestSpecialTokens::test_special_tokens
  /home/hirokinko/Workspaces/diplomacy_cicero/unit_tests/test_parlai_special_tokens.py:138: DeprecationWarning: Please use assertEqual instead.
    "->",

unit_tests/test_parlai_special_tokens.py::TestSpecialTokens::test_special_tokens
  /home/hirokinko/Workspaces/diplomacy_cicero/unit_tests/test_parlai_special_tokens.py:142: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(v2_toks, sorted(v2_toks, key=len, reverse=True))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================================================== short test summary info =========================================================
FAILED unit_tests/test_bqre1p_lambdas.py::TestBQRE1PLambdas::test - KeyError: 'fairdiplomacy.ParlaiFlags'
=============================================== 1 failed, 236 passed, 6 warnings in 8.47s ================================================

Undefined reference errors when running make

CMakeFiles/profile_dipcc.dir/dipcc/cc/cfrstats.cc.o: In function pybind11::capsule::name() const [clone .isra.564]': cfrstats.cc:(.text+0x2297): undefined reference to PyCapsule_GetName'
cfrstats.cc:(.text+0x22b1): undefined reference to PyErr_Occurred' CMakeFiles/profile_dipcc.dir/dipcc/cc/cfrstats.cc.o: In function pybind11::setattr(pybind11::handle, char const*, pybind11::handle)':
cfrstats.cc:(.text.ZN8pybind117setattrENS_6handleEPKcS0[ZN8pybind117setattrENS_6handleEPKcS0]+0x7): undefined reference to PyObject_SetAttrString' CMakeFiles/profile_dipcc.dir/dipcc/cc/cfrstats.cc.o: In function pybind11::repr(pybind11::handle)':
cfrstats.cc:(.text._ZN8pybind114reprENS_6handleE[_ZN8pybind114reprENS_6handleE]+0xd): undefined reference to PyObject_Repr' CMakeFiles/profile_dipcc.dir/dipcc/cc/encoding_impl.cc.o: In function pybind11::capsule::name() const [clone .isra.472]':
encoding_impl.cc:(.text+0x667): undefined reference to PyCapsule_GetName' encoding_impl.cc:(.text+0x681): undefined reference to PyErr_Occurred'
CMakeFiles/profile_dipcc.dir/dipcc/cc/encoding_v1.cc.o: In function pybind11::capsule::name() const [clone .isra.538]': encoding_v1.cc:(.text+0xda7): undefined reference to PyCapsule_GetName'
encoding_v1.cc:(.text+0xdc1): undefined reference to PyErr_Occurred' CMakeFiles/profile_dipcc.dir/dipcc/cc/encoding_v2.cc.o: In function pybind11::capsule::name() const [clone .isra.538]':
encoding_v2.cc:(.text+0xff7): undefined reference to PyCapsule_GetName' encoding_v2.cc:(.text+0x1011): undefined reference to PyErr_Occurred'
CMakeFiles/profile_dipcc.dir/dipcc/cc/json.cc.o: In function pybind11::capsule::name() const [clone .isra.581]': json.cc:(.text+0x677): undefined reference to PyCapsule_GetName'
json.cc:(.text+0x691): undefined reference to `PyErr_Occurred'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/profile_dipcc.dir/build.make:448: out/profile_dipcc] Error 1
make[3]: Leaving directory '/hanlinzhang/diplomacy/dipcc/build'
make[2]: *** [CMakeFiles/Makefile2:141: CMakeFiles/profile_dipcc.dir/all] Error 2
make[2]: Leaving directory '/hanlinzhang/diplomacy/dipcc/build'
make[1]: *** [Makefile:91: all] Error 2
make[1]: Leaving directory '/hanlinzhang/diplomacy/dipcc/build'
protoc conf/*.proto --python_out ./ --mypy_out ./
Writing mypy to conf/agents_pb2.pyi
Writing mypy to conf/common_pb2.pyi
Writing mypy to conf/conf_pb2.pyi
Writing mypy to conf/misc_pb2.pyi
python heyhi/bin/patch_protos.py conf/*pb2.py
Patching conf/agents_pb2.py
Generating conf/agents_cfgs.py
Also patching conf/agents_pb2.pyi
Generating conf/agents_cfgs.pyi
Patching conf/common_pb2.py
Generating conf/common_cfgs.py
Also patching conf/common_pb2.pyi
Generating conf/common_cfgs.pyi
Patching conf/conf_pb2.py
Generating conf/conf_cfgs.py
Also patching conf/conf_pb2.pyi
Generating conf/conf_cfgs.pyi
Patching conf/misc_pb2.py
Generating conf/misc_cfgs.py
Also patching conf/misc_pb2.pyi
Generating conf/misc_cfgs.pyi
mkdir -p build/selfplay
cd build/selfplay
&& cmake ../../fairdiplomacy/selfplay/cc -DPOSTMAN_DIR=/hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=../../fairdiplomacy/selfplay
&& make -j
-- Found PythonInterp: /n/home07/hanlinzhang/.conda/envs/diplomacy/bin/python3.7 (found suitable version "3.7.12", minimum required is "3.7")
-- pybind11 v2.3.dev1
CMake Deprecation Warning at /hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman/third_party/grpc/third_party/googletest/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at /hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman/third_party/grpc/third_party/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at /hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman/third_party/grpc/third_party/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Found PythonInterp: /n/home07/hanlinzhang/.conda/envs/diplomacy/bin/python3.7 (found version "3.7.12")
-- Caffe2: CUDA detected: 12.0
-- Caffe2: CUDA nvcc is: /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda
-- Caffe2: Header version is: 12.0
CMake Warning (dev) at /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:106 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable CUDNN_ROOT is set to:

/n/sw/helmod-rocky8/apps/Core/cudnn/8.8.0.121_cuda12-fasrc01

For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:88 (include)
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
CMakeLists.txt:47 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found cuDNN: v8.8.0 (include: /n/home07/hanlinzhang/.conda/envs/diplomacy/include, library: /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/libcudnn.so)
-- Added CUDA NVCC flags for: -gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70
-- MKL_ARCH: intel64
-- MKL_LINK: dynamic
-- MKL_INTERFACE_FULL: intel_ilp64
-- MKL_THREADING: intel_thread
-- MKL_MPI: intelmpi
-- Configuring done (8.6s)
CMake Warning at /hanlinzhang/diplomacy/thirdparty/github/fairinternal/postman/third_party/pybind11/tools/pybind11Tools.cmake:131 (add_library):
Cannot generate a safe runtime search path for target rela because files in
some directories may conflict with libraries in implicit directories:

runtime library [libnvToolsExt.so.1] in /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/lib64 may be hidden by files in:
  /n/home07/hanlinzhang/.conda/envs/diplomacy/lib
runtime library [libcurand.so.10] in /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/lib64 may be hidden by files in:
  /n/home07/hanlinzhang/.conda/envs/diplomacy/lib

Some of these libraries may not be found correctly.
Call Stack (most recent call first):
CMakeLists.txt:57 (pybind11_add_module)

CMake Warning at CMakeLists.txt:72 (add_executable):
Cannot generate a safe runtime search path for target
prioritized_replay_test because files in some directories may conflict with
libraries in implicit directories:

runtime library [libnvToolsExt.so.1] in /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/lib64 may be hidden by files in:
  /n/home07/hanlinzhang/.conda/envs/diplomacy/lib
runtime library [libcurand.so.10] in /n/sw/helmod-rocky8/apps/Core/cuda/12.0.1-fasrc01/cuda/lib64 may be hidden by files in:
  /n/home07/hanlinzhang/.conda/envs/diplomacy/lib

Some of these libraries may not be found correctly.

-- Generating done (0.6s)
-- Build files have been written to: /hanlinzhang/diplomacy/build/selfplay

[ 16%] Built target gtest
[ 25%] Building CXX object CMakeFiles/rela.dir/pybind.cc.o
[ 58%] Built target gtest_main
[ 58%] Built target gmock
[ 75%] Built target gmock_main
[ 83%] Linking CXX executable prioritized_replay_test
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_InternFromString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyInstanceMethod_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_DelItemString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromLong'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_Create2' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsVoidPtr'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_NotImplementedError' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromSsize_t'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_SetAttrString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_IsSubtype'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Fetch' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyException_SetTraceback'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_RuntimeError' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Copy' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _PyThreadState_UncheckedGet'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_RestoreThread' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Size'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_MemoryError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyStaticMethod_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_DecodeUTF8'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Print' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_FromString'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_FromString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBaseObject_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Check' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySlice_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThread_tss_create' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_HasAttrString'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GetBuffer' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_Pack'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_AsString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyStructSequence_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_GetContext' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _PyObject_NextNotImplemented'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_SetItem' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _PyType_Lookup'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThreadState_Clear' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyMemoryView_FromMemory'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Clear' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyArg_ParseTupleAndKeywords'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCallable_Check' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Xor'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyMem_Calloc'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsUnsignedLongLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_ExceptionMatches'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBuffer_Release' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_Size'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Or' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsSsize_t'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_Size' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_TypeError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_RealAsDouble' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Index'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsUnsignedLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_InitThreads' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Long'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_Ready' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyGILState_Check'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFloat_FromDouble' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_IsTrue'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyStructSequence_InitType' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySet_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_DeprecationWarning' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_GetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _PyObject_GetDictPtr'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Size' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Malloc'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_InternInPlace' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsLongLong'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_SetItem' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBool_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThread_tss_get' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Restore'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_WarnEx' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_SetName'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_WarnExplicit' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Call' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThread_tss_alloc'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_List' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFrozenSet_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromSize_t' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_Size'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCFunction_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GetIter' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyGILState_GetThisThreadState'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_GetItem' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_AsStringAndSize'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_AsEncodedString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyMethod_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_AsUTF8'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyImport_AddModule' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_CallFunctionObjArgs'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySlice_Unpack' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_ImportError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_AttributeError' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_Fast'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Occurred' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThreadState_DeleteCurrent'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_Tuple' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyWeakref_NewRef'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_ImagAsDouble' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_AsUTF8String'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_GetBuiltins' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBytes_FromStringAndSize'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_ValueError' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_FromFormat'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_And' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_FalseStruct'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_GetName' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_SetItemString'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyImport_ImportModule' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_OverflowError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_AsCComplex' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_BufferError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_GetSlice' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySlice_AdjustIndices'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyGILState_Ensure' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_AcquireThread'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_SetString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_CallObject'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThread_tss_set' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_GetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_IsInstance' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_Append'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyMem_Free' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThreadState_Get'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Invert' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_FromStringAndSize'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromDouble'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyArg_ParseTuple' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyThreadState_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_GetFrame' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Repr'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyProperty_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFrame_GetLineNumber'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_NormalizeException' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Merge'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromUnsignedLongLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_ClearWeakRefs'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Next' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_IsSubclass'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySet_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_GetPointer'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_NoneStruct' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyInstanceMethod_New'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_SetPointer'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_UserWarning' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_Join'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_RichCompareBool' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyGILState_Release'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_NewException' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySet_Add'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_AddObject' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_GetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_NotImplementedStruct' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFrame_FastToLocals' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_RuntimeWarning'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_GenericNew' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_SetItem'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Contains' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_SystemError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_Items' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to Py_BuildValue'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_FromDoubles'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyDict_GetItemString' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyNumber_Float'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyBool_FromLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsLong'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_Exception' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_TrueStruct'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFloat_Type' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_IndexError'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_AsFileDescriptor' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_AsLongLongAndOverflow'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyComplex_FromCComplex' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyFloat_AsDouble'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromLongLong' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyIter_Next'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyEval_SaveThread' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_SetContext'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyExc_StopIteration' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PySequence_Check'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyType_GenericAlloc' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GC_UnTrack'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyLong_FromVoidPtr' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCapsule_Import'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_CallMethod' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_GetAttrString'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyList_New' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyModule_GetName'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_Str' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyErr_Format'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyObject_SetAttr' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to _Py_EllipsisObject'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyCFunction_NewEx' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyStaticMethod_Type'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_AsUTF8AndSize' /n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyTuple_Size'
/n/home07/hanlinzhang/.conda/envs/diplomacy/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to `PyCode_Addr2Line'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/prioritized_replay_test.dir/build.make:115: prioritized_replay_test] Error 1
make[3]: Leaving directory '/hanlinzhang/diplomacy/build/selfplay'
make[2]: *** [CMakeFiles/Makefile2:183: CMakeFiles/prioritized_replay_test.dir/all] Error 2

Intent annotation model

Hello! I was wondering if the intent annotation model is included in this repo - I can't seem to find it in /model_cards. Thanks!

Issue installing postman, problem with cannot find CUDA

Hi, I have tried hard solving this but still have no clue. My CUDA is 11.6 and CUDA_HOME is specified. torch.cuda.is_available is True. I not sure which could cause the following questions. Is that because we need to do "conda install --yes pytorch=1.7.1 torchvision cudatoolkit=11.0 -c pytorch" while the cuda version is diffferent?

Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.4.0 in /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages (from postman==0.2.2) (1.7.1+cu110)
Requirement already satisfied: typing-extensions in /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages (from torch>=1.4.0->postman==0.2.2) (4.5.0)
Requirement already satisfied: numpy in /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages (from torch>=1.4.0->postman==0.2.2) (1.20.3)
Installing collected packages: postman
Running setup.py develop for postman
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─
    mkdir -p cmake_build/postman && cd cmake_build/postman && cmake -DCMAKE_BUILD_TYPE=Release ../../postman -DPYTHON_EXECUTABLE=/home/yingtao/miniconda3/envs/diplomacy_cicero/bin/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=../../postman/python/postman
    -- pybind11 v2.3.dev1
    -- No CMAKE_CXX_STANDARD set, assuming 11
    --
    -- 3.11.2.0
    -- Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (found version "11.6")
    CMake Warning at /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:31 (message):
      Caffe2: CUDA cannot be found.  Depending on whether you are building Caffe2
      or a Caffe2 dependent library, the next warning / error will give you more
      info.
    Call Stack (most recent call first):
      /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:88 (include)
      /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
      CMakeLists.txt:48 (find_package)
    
    
    CMake Error at /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:90 (message):
      Your installed Caffe2 version uses CUDA but I cannot find the CUDA
      libraries.  Please set the proper CUDA prefixes and / or install CUDA.
    Call Stack (most recent call first):
      /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
      CMakeLists.txt:48 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/yingtao/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman/CMakeFiles/CMakeOutput.log".
    See also "/home/yingtao/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman/CMakeFiles/CMakeError.log".
    make: *** [Makefile:9: cmake_build/postman/Makefile] Error 1
    /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      EasyInstallDeprecationWarning,
    /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      setuptools.SetuptoolsDeprecationWarning,
    Traceback (most recent call last):
      File "<string>", line 36, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
        main()
      File "/home/yingtao/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 33, in main
        test_suite="setup.test_suite",
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
        return run_commands(dist)
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
        dist.run_commands()
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
        self.run_command(cmd)
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
        super().run_command(command)
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
        cmd_obj.run()
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
        self.run_command('build_ext')
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
        self.distribution.run_command(command)
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
        super().run_command(command)
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
        cmd_obj.run()
      File "/home/yingtao/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 20, in run
        subprocess.check_call("make develop".split(), cwd="..")
      File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/subprocess.py", line 363, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['make', 'develop']' returned non-zero exit status 2.
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─
ease ../../postman -DPYTHON_EXECUTABLE=/home/yingtao/miniconda3/envs/diplomacy_cicero/bin/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=../../postman/python/postman
-- pybind11 v2.3.dev1
-- No CMAKE_CXX_STANDARD set, assuming 11
--
-- 3.11.2.0
-- Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (found version "11.6")
CMake Warning at /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:31 (message):
Caffe2: CUDA cannot be found. Depending on whether you are building Caffe2
or a Caffe2 dependent library, the next warning / error will give you more
info.
Call Stack (most recent call first):
/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:88 (include)
/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
CMakeLists.txt:48 (find_package)

CMake Error at /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:90 (message):
  Your installed Caffe2 version uses CUDA but I cannot find the CUDA
  libraries.  Please set the proper CUDA prefixes and / or install CUDA.
Call Stack (most recent call first):
  /home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:40 (find_package)
  CMakeLists.txt:48 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/yingtao/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman/CMakeFiles/CMakeOutput.log".
See also "/home/yingtao/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman/CMakeFiles/CMakeError.log".
make: *** [Makefile:9: cmake_build/postman/Makefile] Error 1
/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
Traceback (most recent call last):
  File "<string>", line 36, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>

    main()
  File "/home/yingtao/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 33, in main
    test_suite="setup.test_suite",
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
    super().run_command(command)
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
    self.run_command('build_ext')
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
    super().run_command(command)
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/yingtao/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 20, in run
    subprocess.check_call("make develop".split(), cwd="..")
  File "/home/yingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/subprocess.py", line 363, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', 'develop']' returned non-zero exit status 2.
[end of output]

Issue downloading nonsense_ensemble (fix)

We had some trouble with the nonsense_ensemble folder not downloading properly and because of the set -eu in download_model_files.sh, the models_encrypted would not be decrypted. Below is a modified version of download_model_files.sh which fixed this error:

#!/bin/bash
#
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
set -eu

CWD=$(pwd)
BINDIR=$(dirname $(realpath $0))
ROOT=$(dirname $BINDIR)
OUTDIR=$ROOT/models
INDIR=$ROOT/models_encrypted

PASSWORD=$1


###
# Guard statements to confirm input is well-formed.
###
if [ -d $OUTDIR ]
then
    echo "$OUTDIR already exists. Not going to risk overwriting it. Quitting..."
    exit 0
fi

if [ -d $INDIR ]
then
    echo "$INDIR already exists. Not going to risk overwriting it. Quitting..."
    exit 0
fi

PWD_LENGTH=${#PASSWORD}
if [ ! $PWD_LENGTH -eq 30 ]
then
    echo "You either did not provide a password, or it was the wrong length."
    exit 0
fi

####
# Downloading models_encrypted
####
mkdir $INDIR
cd $INDIR
mkdir nonsense_ensemble
cd ..

FILENAMES=$BINDIR/s3_filenames.txt

cat $FILENAMES | while read FILE
do
    echo $FILE
    if [ "$FILE" == "nonsense_ensemble"]; then
        cd nonsense_ensemble
        STEM=$(echo $FILE | cut -c18-) 
        wget https://dl.fbaipublicfiles.com/diplomacy_cicero/models/$FILE.gpg -O $INDIR/$STEM.gpg
        cd ..
    else
        wget https://dl.fbaipublicfiles.com/diplomacy_cicero/models/$FILE.gpg -O $INDIR/$FILE.gpg
    fi
done


####
# Running commands to unencrypt models_encrypted
####

mkdir $OUTDIR
mkdir $OUTDIR/nonsense_ensemble

cd $INDIR

for FILE in *;
do
    if [ "$FILE" != "nonsense_ensemble" ]; then
        STEM=$(echo $FILE | rev | cut -c5- | rev)
        OUTFILE=$OUTDIR/$STEM
        gpg --batch --yes --passphrase $PASSWORD --output $OUTFILE -d $FILE;
    fi
done;

cd nonsense_ensemble

for FILE in *;
do
    STEM=$(echo $FILE | rev | cut -c5- | rev)
    OUTFILE=$OUTDIR/nonsense_ensemble/$STEM
    gpg --batch --yes --passphrase $PASSWORD --output $OUTFILE -d $FILE;
done;

cd $CWD

ModuleNotFoundError: No module named 'fairdiplomacy.pydipcc

When i run python run.py --adhoc --cfg conf/c01_ag_cmp/cmp.prototxt Iagent_one=agents/bqre1p_parlai_20220819_cicero_2.prototxt Iagent_six=agents/ablations/cicero_imitation_only.prototxt power_one=TURKEY

  File "run.py", line 15, in <module>
    from fairdiplomacy.agents.base_agent import BaseAgent
  File "/home/zhuhaixiang/diplomacy_cicero/fairdiplomacy/agents/base_agent.py", line 9, in <module>
    from fairdiplomacy.pydipcc import Game
ModuleNotFoundError: No module named 'fairdiplomacy.pydipcc'```

Why does the import of this file have problems

What is the minimum GPU memory?

Hi, everything installed and was built fine in my Win 11 (WSL2 Ubuntu 20.04) environment. However, when I went to load a single agent in self-play I get;
23:59:13 | Using CUDA
23:59:13 | loading dictionary from models/draw_classifier.dict
23:59:13 | num words = 50349
23:59:13 | BartClassifier: full interactive mode on.
RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 8.00 GiB total capacity; 7.15 GiB already allocated; 0 bytes free; 8.00 GiB allowed; 7.37 GiB reserved in total by PyTorch)

python run.py --adhoc --cfg conf/c01_ag_cmp/cmp.prototxt Iagent_one=agents/cicero.prototxt use_shared_agent=1 power_one=TURKEY

$ nvcc.exe --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Feb_14_22:08:44_Pacific_Standard_Time_2021
Cuda compilation tools, release 11.2, V11.2.152
Build cuda_11.2.r11.2/compiler.29618528_0

I switched to torch 1.8 since it supported stuff like torch.cuda.set_per_process_memory_fraction(1.0, 0) where I could set a percentage of the memory to use... lowering it made no difference since I was apparently already below the required memory. Someone with a running system could lower theirs to 0.9, 0.7... to see when a memory error appears. That would be the minimum memory. I'll see if I can get my hands on a 12GB card to see if that is enough.

Model parameter size mismatch

(diplomacy_cicero) luoyingtao@CRIPAC-iota:~/diplomacy_cicero$ python run.py --adhoc --cfg conf/c01_ag_cmp/cmp.prototxt Iagent_one=agents/cicero.prototxt use_shared_agent=1 power_one=TURKEY
I0713 01:47:05 [run:154] Config: conf/c01_ag_cmp/cmp.prototxt
I0713 01:47:05 [run:155] Overrides: ['Iagent_one=agents/cicero.prototxt', 'use_shared_agent=1', 'power_one=TURKEY']
I0713 01:47:05 [run:163] Exp dir: /home/luoyingtao/diplomacy_experiments/results/diplomacy/adhoc/2023-07-13T014705.372767/c01_ag_cmp/cmp/Iag@agents_cicero.prototxt@pow@TURKEY@use@1_a400902b
I0713 01:47:05 [run:164] Job status [before run]: Status.NOT_STARTED
I0713 01:47:05 [util:575] Changing cwd to /home/luoyingtao/diplomacy_experiments/results/diplomacy/adhoc/2023-07-13T014705.372767/c01_ag_cmp/cmp/Iag@agents_cicero.prototxt@pow@TURKEY@use@1_a400902b
I0713 01:47:05 [run:139] Machine IP Address: 169.254.3.1
I0713 01:47:05 [run:141] Using GPU: 4,5
I0713 01:47:05 [run:147] Cwd: /home/luoyingtao/diplomacy_experiments/results/diplomacy/adhoc/2023-07-13T014705.372767/c01_ag_cmp/cmp/Iag@agents_cicero.prototxt@pow@TURKEY@use@1_a400902b
I0713 01:47:05 [run:148] Task: compare_agents

      overrides {
        inference: "nucleus"
        beam_size: 1
        topp: 0.8999999761581421
        set_player_rating: 5
      }
    }
    model_pseudo_orders {
      model_path: "models/imitation_intent"
      overrides {
        inference: "topk"
        set_player_rating: 5
      }
    }
    model_sleep_classifier {
      model_path: "models/sleep_classifier"
      overrides {
        set_player_rating: 5
      }
    }
    ensemble_nonsense_classifier {
      nonsense_classifiers {
        name: "location"
        nonsense_classifier {
          model_path: "models/nonsense_ensemble/location"
          overrides {
            set_player_rating: 5
            threshold: 0.05000000074505806
          }
        }
      }
      nonsense_classifiers {

      nonsense_classifiers {
        name: "hvwm"
        nonsense_classifier {
          model_path: "models/nonsense_ensemble/hvwm"
          overrides {
            set_player_rating: 5
            threshold: 0.5
          }
        }
      }
      nonsense_classifiers {
        name: "hvm_NEW_justifications_2seeds"
        nonsense_classifier {
          model_path: "models/nonsense_ensemble/humanvsmodel_nonsense_classifier_denoising_justifications"
          overrides {
            set_player_rating: 5
            threshold: 0.699999988079071
          }
        }
      }
      nonsense_classifiers {
        name: "non_sequitur_detector"
        nonsense_classifier {
          model_path: "models/nonsense_ensemble/nonsequitur_detector"
          overrides {
            set_player_rating: 5
            threshold: 0.8999999761581421
          }
        }
      }
      nonsense_classifiers {
        n
  use_truthful_pseudoorders: true
  skip_policy_evaluation_for_truthful_pseudoorders: true
  use_greedy_po_for_rollout: true
  br_corr_bilateral_search {
    enable_for_pseudo_order: true
    enable_for_final_order: true
    bilateral_search_num_cond_sample: 20
    use_all_power_for_p_joint: true
    br_regularize_lambda: 0.003000000026077032
    min_unnormalized_weight: 0.019999999552965164
    max_unnormalized_weight: 10.0
  }
  message_search {
    n_messages: 8
    strategy: FILTER
    filter_top_k: 5
  }
}
num_player_types: 6
agent_type: 2
agent_type_is_public: false
player_types {
  log_uniform {
    min_lambda: 0.001
    max_lambda: 0.3
  }
}
scale_lambdas_1901_spring: 10.0
dynamic_lambda_stdev_espilon: 0.009999999776482582
dynamic_lambda_stdev_baseline: 0.05000000074505806
dynamic_lambda_stdev_num_samples: 100
do_bayesian_updates: false

}
}
agent_six {
base_strategy_model {
model_path: "models/blueprint.pt"
temperature: 0.10000000149011612
}
}
power_one: TURKEY
out: "output.json"
seed: 0
use_shared_agent: true
draw_on_stalemate_years: 5

I0713 01:47:05 [util:234] Git revision: f9ccaf6
I0713 01:47:06 [util:250] Found unsubmitted diff. Saving to /home/luoyingtao/diplomacy_experiments/results/diplomacy/adhoc/2023-07-13T014705.372767/c01_ag_cmp/cmp/Iag@agents_cicero.prototxt@pow@TURKEY@use@1_a400902b/workdir.diff
I0713 01:47:06 [run:152] Is on slurm: False
I0713 01:47:06 [run:153] Job env: JobEnvironment(job_id=1, hostname=CRIPAC-iota, local_rank=0(1), node=0(1), global_rank=0(1))
I0713 01:47:06 [run:156] Is master: True
I0713 01:47:06 [run:40] Set seed to 0
I0713 01:47:06 [load_model:155] Loading base_strategy_model from models/rl_search_orders.ckpt
I0713 01:47:11 [load_model:155] Loading base_strategy_model from models/rl_value_function.ckpt
I0713 01:47:12 [searchbot_agent:441] Performing qre regret minimization with eta=10.0 and lambda=0.0 with target pi=BLUEPRINT
I0713 01:47:12 [searchbot_agent:445] Using lambda 0.0 simplifies qre to regular hedge
I0713 01:47:12 [searchbot_agent:492] Setting up parlai orders model...
I0713 01:47:12 [factory:93] Loading allorderindependentrollout wrapper for model trained on task: message_history_orderhistorysincelastmovementphase_shortstate_allorderindependentrollout_chunk
I0713 01:47:12 [base_wrapper:138] [ParlAIAllOrderIndependentRolloutWrapper] Using overrides: {'interactive_mode': True, 'skip_generation': False, 'beam_length_penalty': 0, 'inference': 'topk', 'topk': 10, 'temperature': 0.75, 'set_player_rating': 5, 'model': 'bart_custom_inference'}
01:47:12 | Overriding opt["inference"] to topk (previously: greedy)
01:47:12 | Overriding opt["skip_generation"] to False (previously: True)
01:47:12 | Overriding opt["temperature"] to 0.75 (previously: 1.0)
01:47:12 | Overriding opt["model"] to bart_custom_inference (previously: bart)
01:47:12 | Overriding opt["beam_length_penalty"] to 0 (previously: 0.65)
01:47:12 | Overriding opt["set_player_rating"] to 5 (previously: -1)
[downloading BART models: /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/models/bart]
01:47:12 | Downloading http://dl.fbaipublicfiles.com/fairseq/models/bart.large.tar.gz to /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/models/bart/bart.large.tar.gz
Downloading bart.large.tar.gz: 100%|████████████████████| 3.70G/3.70G [53:14<00:00, 1.16MB/s]
02:41:15 | Using CUDA
02:41:15 | Downloading https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/vocab.bpe to /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/gpt2/vocab.bpe
Downloading vocab.bpe: 0.00B [00:01, ?B/s]
02:41:16 | Downloading https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/encoder.json to /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/gpt2/encoder.json
Downloading encoder.json: 0.00B [00:01, ?B/s]
02:41:23 | Total parameters: 406,286,336 (406,286,336 trainable)
02:41:24 | Saving dictionary to /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/models/bart/bart_large/model.dict
02:41:25 | Opt:
02:41:25 | datapath: /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data
02:41:25 | no_backup: True
02:41:25 | override: "{'path': '/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/models/bart/bart_large/model', 'no_backup': True}"
02:41:25 | parlai_home: /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages
02:41:25 | path: /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/models/bart/bart_large/model
02:41:25 | starttime: Jul13_02-41
02:41:25 | Loading /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/models/bart/bart_large/model
02:41:26 | Deleting key optimizer
02:41:26 | Deleting key optimizer_type
02:41:26 | Deleting key lr_scheduler
02:41:26 | Deleting key lr_scheduler_type
02:41:26 | Deleting key warmup_scheduler
02:41:26 | Deleting key number_training_updates
02:41:26 | Remaining keys: model
02:41:26 | Saving to /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/models/bart/bart_large/model
{'id': 'Bart', 'episode_done': False, 'text': "What's your favorite kind of ramen?", 'beam_texts': [("What's your favorite kind of ramen?", -0.00019120505021419376)], 'metrics': {'clen': AverageMetric(9), 'ctrunc': AverageMetric(0), 'ctrunclen': AverageMetric(0), 'gen_n_toks': AverageMetric(11)}}
02:41:32 | your model is being loaded with opts that do not exist in the model you are initializing the weights with: evaltask: None,final_extra_opt: ,eval_batchsize: None,eval_dynamic_batching: None,num_workers: 8,display_examples: False,num_epochs: -1,max_train_time: -1,max_train_steps: 250000,log_every_n_steps: 100,validation_every_n_secs: -1,validation_every_n_steps: 1000,save_every_n_secs: 3600.0,save_after_valid: True,validation_every_n_epochs: -1,validation_max_exs: -1,short_final_eval: False,validation_patience: 30,validation_metric: ppl,validation_metric_mode: min,validation_cutoff: 1.0,validation_share_agent: False,metrics: default,aggregate_micro: False,world_logs: ,save_format: conversations,log_keep_fields: all,tensorboard_log: False,tensorboard_logdir: None,wandb_log: True,wandb_name: 2fb,wandb_project: 20220513_allorderindependentrollout_prefix_bilateral,wandb_entity: fairdiplomacy,dict_maxexs: -1,dict_include_valid: False,dict_include_test: False,log_every_n_secs: 120.0,distributed_world_size: 128,ddp_backend: ddp,port: 38316,allorders_mark_all_holds: True,filter_all_holds: True,train_on_message_prefixes: True,train_two_powers_view_orders: True,n_chunks: -1,counting_examples: False,include_task_token: False,message_history_truncation: 2048,task_version: 3,include_game_info: True,include_player_ratings: True,include_draw_info: False,include_draw_state: True,hide_empty_draw_state: True,include_centers_state: True,include_builds_state: False,player_rating_max: 5,player_rating_percentiles: games_played,set_player_rating: 5,include_player_chattiness: False,set_player_chattiness: -1,only_phase: None,only_game_id: None,only_chunk: -1,skip_input_validation: False,input_validation_check_pct: 0.1,lie_detector_annotations_dir: None,lie_detector_filter_above_stdev: None,chunk_size: 80,rank: 0,interactive_mode: True,datapath: /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data
02:41:32 | your model is being loaded with opts that differ from the model you are initializing the weights with. Add the following args to your run command to change this:
--task None --batchsize 1 --attention-dropout 0.1 --n-positions 1024 --beam-length-penalty 0.65 --inference greedy --temperature 1.0 --fp16-impl safe --optimizer sgd --learningrate 1 --text-truncate None --label-truncate None --special-tok-lst None --gpu -1 --lr-scheduler reduceonplateau --warmup-updates -1 --model bart --parlai-home /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages --dict-loaded False
02:41:32 | Using CUDA
02:41:32 | loading dictionary from /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/models/bart/bart_large/model.dict
02:41:32 | num words = 50264
02:41:32 | BartCustomInference: full interactive mode on.
02:41:37 | Total parameters: 408,470,528 (408,470,528 trainable)
02:41:37 | Loading existing model params from /home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/data/models/bart/bart_large/model
I0713 02:41:38 [transformer:380] Resizing token embeddings from 50264 to 50349
Traceback (most recent call last):
File "/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/parlai/core/torch_agent.py", line 2045, in load_state_dict
self.model.load_state_dict(state_dict)
File "/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1052, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for BartModel:
size mismatch for embeddings.weight: copying a param with shape torch.Size([50264, 1024]) from checkpoint, the shape in current model is torch.Size([50349, 1024]).
size mismatch for encoder.embeddings.weight: copying a param with shape torch.Size([50264, 1024]) from checkpoint, the shape in current model is torch.Size([50349, 1024]).
size mismatch for encoder.position_embeddings.weight: copying a param with shape torch.Size([1024, 1024]) from checkpoint, the shape in current model is torch.Size([2048, 1024]).
size mismatch for decoder.embeddings.weight: copying a param with shape torch.Size([50264, 1024]) from checkpoint, the shape in current model is torch.Size([50349, 1024]).
size mismatch for decoder.position_embeddings.weight: copying a param with shape torch.Size([1024, 1024]) from checkpoint, the shape in current model is torch.Size([2048, 1024]).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "run.py", line 166, in
heyhi.parse_args_and_maybe_launch(main)
File "/home/luoyingtao/diplomacy_cicero/heyhi/run.py", line 122, in parse_args_and_maybe_launch
maybe_launch(main, exp_root=get_exp_dir(PROJECT_NAME), overrides=overrides, **kwargs)
File "/home/luoyingtao/diplomacy_cicero/heyhi/run.py", line 173, in maybe_launch
util.run_with_config(main, exp_handle, cfg, overrides, ckpt_dir, log_level)
File "/home/luoyingtao/diplomacy_cicero/heyhi/util.py", line 608, in run_with_config
callable()
File "/home/luoyingtao/diplomacy_cicero/heyhi/util.py", line 383, in wrapped
result = f(*args, **kwargs)
File "run.py", line 162, in main
return TASKStask
File "run.py", line 44, in compare_agents
agent_one = build_agent_from_cfg(cfg.agent_one)
File "/home/luoyingtao/diplomacy_cicero/fairdiplomacy/agents/init.py", line 47, in build_agent_from_cfg
return AGENT_CLASSESwhich_agent
File "/home/luoyingtao/diplomacy_cicero/fairdiplomacy/agents/bqre1p_agent.py", line 367, in init
cfg.base_searchbot_cfg, skip_base_strategy_model_cache=skip_base_strategy_model_cache
File "/home/luoyingtao/diplomacy_cicero/fairdiplomacy/agents/searchbot_agent.py", line 493, in init
self.parlai_model_orders = load_order_wrapper(cfg.parlai_model_orders)
File "/home/luoyingtao/diplomacy_cicero/parlai_diplomacy/wrappers/factory.py", line 137, in load_order_wrapper
model = parlai_wrapper_factory(cfg)
File "/home/luoyingtao/diplomacy_cicero/parlai_diplomacy/wrappers/factory.py", line 103, in parlai_wrapper_factory
ret = ParlAIAllOrderIndependentRolloutWrapper(*wrapper_args)
File "/home/luoyingtao/diplomacy_cicero/parlai_diplomacy/wrappers/base_wrapper.py", line 91, in init
model_path=model_path, frozen_overrides=frozen_args
File "/home/luoyingtao/diplomacy_cicero/parlai_diplomacy/wrappers/base_wrapper.py", line 56, in load_parlai_agent_cached
return create_agent_from_model_file(model_path, override_opts)
File "/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/parlai/core/agents.py", line 347, in create_agent_from_model_file
return create_agent_from_opt_file(opt)
File "/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/parlai/core/agents.py", line 421, in create_agent_from_opt_file
return model_class(opt_from_file)
File "/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/parlai/agents/bart/bart.py", line 72, in init
super().init(opt, shared)
File "/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/parlai/core/torch_generator_agent.py", line 517, in init
states = self.load(init_model)
File "/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/parlai/core/torch_agent.py", line 2078, in load
self.load_state_dict(states['model'])
File "/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/parlai/core/torch_agent.py", line 2051, in load_state_dict
self.model.load_state_dict(state_dict)
File "/home/luoyingtao/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1052, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for BartModel:
size mismatch for encoder.position_embeddings.weight: copying a param with shape torch.Size([1024, 1024]) from checkpoint, the shape in current model is torch.Size([2048, 1024]).
size mismatch for decoder.position_embeddings.weight: copying a param with shape torch.Size([1024, 1024]) from checkpoint, the shape in current model is torch.Size([2048, 1024])

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.