Giter Site home page Giter Site logo

bdilday / pychadwick Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 4.0 349 KB

Python package to interface with chadwick library

License: GNU General Public License v2.0

Python 7.19% Makefile 0.12% CMake 0.08% C 92.53% Shell 0.08%
baseball baseball-data retrosheet retrosheet-tools python c

pychadwick's Introduction

pychadwick

A Python package to interface with the Chadwick libray.
Chadwick is a set of tools for parsing retrosheet data and is available at

http://chadwick.sourceforge.net/doc/index.html

https://github.com/chadwickbureau/chadwick

Features

As of now this package supports retrosheet event data only.

Installation

$ pip install pychadwick

Example use

Python replacement for cwevent

When you install pychadwick, it will install a Python exe that mimic the cwevent exe from the chadwick project. It reads a set of event files and prints them out in csv format to stdout.

This downloads a fresh copy of the retrosheet event files, and parses them with 7 CPUs

$ time pycwevent -n 7  > /tmp/events1.csv
stderr: data_root not given as argument, downloading fresh copy of retrosheet events...
stderr: found 2254 files
Warning: Invalid integer value 'b'

real	3m14.517s
user	12m18.104s
sys	0m25.264s

$ wc -l /tmp/events1.csv 
13976191 /tmp/events1.csv

This uses a pre-downloaded copy of the retrosheet event files, with 7 CPUs

$ time pycwevent -n 7 --data-root /tmp/retrosheet-master/event/regular/ > /tmp/events2.csv
stderr: found 2254 files
Warning: Invalid integer value 'b'

real	1m57.499s
user	9m52.236s
sys	0m17.672s

$ wc -l /tmp/events2.csv 
13976184 /tmp/events2.csv

Python interface to cwevent

Load events

Load events for a game from a file stored on the web

>>> from pychadwick.chadwick import Chadwick                                                                                    

>>> chadwick = Chadwick()                                                                                                       

>>> file_path = "https://raw.githubusercontent.com/chadwickbureau/retrosheet/master/event/regular/1982OAK.EVA" 

>>> games = chadwick.games(file_path)                                                                                           

>>> game = next(games)                                                                                                          

>>> df = chadwick.game_to_dataframe(game)                                                                                       

>>> df                                                                                                                           
         GAME_ID AWAY_TEAM_ID  INN_CT  BAT_HOME_ID  ...  ASS9_FLD_CD  ASS10_FLD_CD  UNKNOWN_OUT_EXC_FL UNCERTAIN_PLAY_EXC_FL
0   OAK198204060          CAL       1            0  ...            0             0                   F                     F
1   OAK198204060          CAL       1            0  ...            0             0                   F                     F
2   OAK198204060          CAL       1            0  ...            0             0                   F                     F
3   OAK198204060          CAL       1            1  ...            0             0                   F                     F
4   OAK198204060          CAL       1            1  ...            0             0                   F                     F
..           ...          ...     ...          ...  ...          ...           ...                 ...                   ...
81  OAK198204060          CAL      11            1  ...            0             0                   F                     F
82  OAK198204060          CAL      11            1  ...            0             0                   F                     F
83  OAK198204060          CAL      11            1  ...            0             0                   F                     F
84  OAK198204060          CAL      11            1  ...            0             0                   F                     F
85  OAK198204060          CAL      11            1  ...            0             0                   F                     F

[86 rows x 159 columns]

Load events for a game from a local file

>>> file_path = " /tmp/retrosheet-master/event/regular/1982OAK.EVA"

>>> games = chadwick.games(file_path)                                                                                           

>>> game = next(games)                                                                                                          

>>> df = chadwick.game_to_dataframe(game)                                                                                       

>>> df                                                                                                                           
         GAME_ID AWAY_TEAM_ID  INN_CT  BAT_HOME_ID  ...  ASS9_FLD_CD  ASS10_FLD_CD  UNKNOWN_OUT_EXC_FL UNCERTAIN_PLAY_EXC_FL
0   OAK198204060          CAL       1            0  ...            0             0                   F                     F
1   OAK198204060          CAL       1            0  ...            0             0                   F                     F
2   OAK198204060          CAL       1            0  ...            0             0                   F                     F
3   OAK198204060          CAL       1            1  ...            0             0                   F                     F
4   OAK198204060          CAL       1            1  ...            0             0                   F                     F
..           ...          ...     ...          ...  ...          ...           ...                 ...                   ...
81  OAK198204060          CAL      11            1  ...            0             0                   F                     F
82  OAK198204060          CAL      11            1  ...            0             0                   F                     F
83  OAK198204060          CAL      11            1  ...            0             0                   F                     F
84  OAK198204060          CAL      11            1  ...            0             0                   F                     F
85  OAK198204060          CAL      11            1  ...            0             0                   F                     F

[86 rows x 159 columns]

Check which columns are defined

>>>  chadwick.all_headers

Check which columns are enabled

>>>  chadwick.active_headers

Disable all columns, and add only GAME_ID and BAT_ID

>>> _ = [chadwick.unset_event_field(e) for e in chadwick.all_headers]                                                          

>>> chadwick.active_headers                                                                                                    
[]

>>> chadwick.set_event_field("GAME_ID")                                                                                        

>>> chadwick.set_event_field("BAT_ID")                                                                                         

>>> games = chadwick.games(file_path)                                                                                          

>>>  game = next(games)                                                                                                         

>>> df = chadwick.game_to_dataframe(game)                                                                                      

>>> df

         GAME_ID    BAT_ID
0   OAK198204060  burlr001
1   OAK198204060  lynnf001
2   OAK198204060  carer001
3   OAK198204060  hendr001
4   OAK198204060  murpd002
..           ...       ...
81  OAK198204060  meyed001
82  OAK198204060  armat001
83  OAK198204060  grosw001
84  OAK198204060  spenj101
85  OAK198204060  loped001

[86 rows x 2 columns]

Activate all the columns again

>>> chadwick.set_all_headers()

pychadwick's People

Contributors

bdilday avatar nickball avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pychadwick's Issues

Check consistency with `chadwick` CLI tool

In investigating seg faults when an NP is the last event of a game in #8, I've seen evidence that the python interface provided here for iterating through events is skipping events around sub and or com and is not consistent with the chadwick command line tool. This needs to be clarified and fixed as necessary.

Segmentation faults with bad file path

If a user attempts to make a data frame with a file path that does not exist, it generates a segmentation fault. It should instead raise a FileNotFoundError

Provide rosters to event parser

The event parser currently can;t support rosters. This is essentially because the league and roster data structures are complicated and have nested pointers. The c code needs to be refactored and /or the python interface needs to be defined with nested pointers so that rosters can be used.

game[s]_to_dataframe failing on pandas >=2

Description

On pandas 2.0+, chadwick.games_to_dataframe and game_to_dataframe are failing due to Pandas more strictly handling the casting of the dtype specified in the initialization of DataFrames.

This can be reproduced on python 3.8+ and pandas 2.0.2 with the existing test_pychadwick.py::test_load_games_to_df unit test:

(venv3.9) nick@astra:~/dev/nickball/forks/pychadwick$ python3 --version
Python 3.9.16
(venv3.9) nick@astra:~/dev/nickball/forks/pychadwick$ pip uninstall -y pandas && make install
(venv3.9) nick@astra:~/dev/nickball/forks/pychadwick$ pip freeze | grep pandas
pandas==2.0.2
(venv3.9) nick@astra:~/dev/nickball/forks/pychadwick$ pytest tests/
============================================================ test session starts =============================================================
platform linux -- Python 3.9.16, pytest-5.4.3, py-1.11.0, pluggy-0.13.1
rootdir: /home/nick/dev/nickball/forks/pychadwick
collected 6 items

tests/pychadwick/chadwick/test_pychadwick.py ..F...                                                                                    [100%]

================================================================== FAILURES ==================================================================
___________________________________________________________ test_load_games_to_df ____________________________________________________________

chadwick = <pychadwick.chadwick.Chadwick object at 0x7f6f682d06d0>, team_events = ['1982OAK.EVA', '1991BAL.EVA', '1954PHI.EVN']

>   ???

/home/nick/temp/pychadwick_fork/tests/pychadwick/chadwick/test_pychadwick.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
venv3.9/lib/python3.9/site-packages/pychadwick-0.5.0-py3.9-linux-x86_64.egg/pychadwick/chadwick.py:247: in games_to_dataframe
    dfs = [
venv3.9/lib/python3.9/site-packages/pychadwick-0.5.0-py3.9-linux-x86_64.egg/pychadwick/chadwick.py:248: in <listcomp>
    pd.DataFrame(list(self.process_game(game_ptr)), dtype="f8")
venv3.9/lib/python3.9/site-packages/pandas/core/frame.py:790: in __init__
    mgr = arrays_to_mgr(
venv3.9/lib/python3.9/site-packages/pandas/core/internals/construction.py:120: in arrays_to_mgr
    arrays, refs = _homogenize(arrays, index, dtype)
venv3.9/lib/python3.9/site-packages/pandas/core/internals/construction.py:607: in _homogenize
    val = sanitize_array(val, index, dtype=dtype, copy=False)
venv3.9/lib/python3.9/site-packages/pandas/core/construction.py:576: in sanitize_array
    subarr = _try_cast(data, dtype, copy)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

arr = array(['OAK198204060', 'OAK198204060', 'OAK198204060', 'OAK198204060',
       'OAK198204060', 'OAK198204060', 'OAK1982..., 'OAK198204060', 'OAK198204060', 'OAK198204060',
       'OAK198204060', 'OAK198204060', 'OAK198204060'], dtype=object)
dtype = dtype('float64'), copy = False

    def _try_cast(
        arr: list | np.ndarray,
        dtype: np.dtype,
        copy: bool,
    ) -> ArrayLike:
        """
        Convert input to numpy ndarray and optionally cast to a given dtype.

        Parameters
        ----------
        arr : ndarray or list
            Excludes: ExtensionArray, Series, Index.
        dtype : np.dtype
        copy : bool
            If False, don't copy the data if not needed.

        Returns
        -------
        np.ndarray or ExtensionArray
        """
        is_ndarray = isinstance(arr, np.ndarray)

        if is_object_dtype(dtype):
            if not is_ndarray:
                subarr = construct_1d_object_array_from_listlike(arr)
                return subarr
            return ensure_wrapped_if_datetimelike(arr).astype(dtype, copy=copy)

        elif dtype.kind == "U":
            # TODO: test cases with arr.dtype.kind in ["m", "M"]
            if is_ndarray:
                arr = cast(np.ndarray, arr)
                shape = arr.shape
                if arr.ndim > 1:
                    arr = arr.ravel()
            else:
                shape = (len(arr),)
            return lib.ensure_string_array(arr, convert_na_value=False, copy=copy).reshape(
                shape
            )

        elif dtype.kind in ["m", "M"]:
            return maybe_cast_to_datetime(arr, dtype)

        # GH#15832: Check if we are requesting a numeric dtype and
        # that we can convert the data to the requested dtype.
        elif is_integer_dtype(dtype):
            # this will raise if we have e.g. floats

            subarr = maybe_cast_to_integer_array(arr, dtype)
        else:
>           subarr = np.array(arr, dtype=dtype, copy=copy)
E           ValueError: could not convert string to float: 'OAK198204060'

venv3.9/lib/python3.9/site-packages/pandas/core/construction.py:765: ValueError
========================================================== short test summary info ===========================================================
FAILED tests/pychadwick/chadwick/test_pychadwick.py::test_load_games_to_df - ValueError: could not convert string to float: 'OAK198204060'
======================================================== 1 failed, 5 passed in 1.75s =========================================================
"F",0,"","F","F","",0,0,"N",0,"N",0,"N",1,0,0,0,"","","","","F","F","F","F","F","F","F","F","F","","","","F","F","F","F","F","","","","",0,0,0,0,0,0,0,0,0,"PHI","PHI","NY1",1,"T","F",2,3,0,47,0,"T","F",0,1,"F","F","hamng102","ennid101","F","F",0,0,0,0,0,0,0,0,0,"","","",0,0,0,0,0,0,0,0,0,0,0,0,0,"","F","F","F","F",0,0,0,0,0,0,0,0,0,0,F,F
"PHI195409260","NY1",11,1,0,0,0,"",3,2,"hamng102","?","hamng102","?","speng102","?","speng102","?","garaj101","lockw101","willd102","amalj101","gardb101","rhodd101","maysw101","mueld101","burgs101","","","64(1)3/GDP","F","F",4,4,2,"T","T",0,"F","F",2,"T","F",0,"F","F",6,"G","F","F","",0,0,"N",0,"N",0,"N",0,0,0,0,"43","64","","","F","F","F","F","F","F","F","F","F","speng102","","","F","F","F","F","F","","","","",0,4,3,0,6,4,0,0,0,"PHI","PHI","NY1",1,"F","F",2,3,0,48,1,"T","F",1,0,"T","T","ennid101","morgb102","F","F",2,3,99,0,0,0,0,0,0,"garaj101","","",0,0,0,0,0,0,0,0,0,0,0,0,0,"gardb101","T","F","F","F",0,0,0,0,0,0,0,0,0,0,F,F
"PHI195409260","NY1",11,1,2,0,0,"",3,2,"ennid101","?","ennid101","?","speng102","?","speng102","?","garaj101","lockw101","willd102","amalj101","gardb101","rhodd101","maysw101","mueld101","","","","5/FL","F","F",9,5,2,"T","T",0,"F","F",1,"F","F",0,"F","F",5,"F","F","T","",0,0,"N",0,"N",0,"N",0,0,0,0,"5","","","","F","F","F","F","F","F","F","F","F","","","","F","T","F","F","F","","","","",0,5,0,0,0,0,0,0,0,"PHI","PHI","NY1",1,"F","T",2,3,0,49,2,"T","F",0,0,"T","T","morgb102","jonew101","F","F",0,0,0,0,0,0,0,0,0,"","","",0,0,0,0,0,0,0,0,0,0,0,0,0,"amalj101","F","F","F","F",0,0,0,0,0,0,0,0,0,0,F,F
opening file /tmp/tmp.EVA

On pandas 1.3.5, it does work, but with a deprecation FutureWarning for the initializing of a DataFrame with a non-castable dtype arg:

(venv3.7) nick@astra:~/dev/nickball/forks/pychadwick$ python --version
Python 3.7.16
(venv3.7) nick@astra:~/dev/nickball/forks/pychadwick$ pip freeze | grep pandas
pandas==1.3.5
(venv3.7) nick@astra:~/dev/nickball/forks/pychadwick$ pytest tests/
============================================================ test session starts =============================================================
platform linux -- Python 3.7.16, pytest-5.4.3, py-1.11.0, pluggy-0.13.1
rootdir: /home/nick/dev/nickball/forks/pychadwick
collected 6 items

tests/pychadwick/chadwick/test_pychadwick.py ......                                                                                    [100%]

============================================================== warnings summary ==============================================================
tests/pychadwick/chadwick/test_pychadwick.py::test_load_games_to_df
  /home/nick/dev/nickball/forks/pychadwick/venv3.7/lib/python3.7/site-packages/pychadwick-0.5.0-py3.7-linux-x86_64.egg/pychadwick/chadwick.py:249: FutureWarning: Could not cast to float64, falling back to object. This behavior is deprecated. In a future version, when a dtype is passed to 'DataFrame', either all columns will be cast to that dtype, or a TypeError will be raised
    for game_ptr in games

tests/pychadwick/chadwick/test_pychadwick.py::test_load_games_to_df
  /home/nick/dev/nickball/forks/pychadwick/tests/pychadwick/chadwick/test_pychadwick.py:55: FutureWarning: Could not cast to float64, falling back to object. This behavior is deprecated. In a future version, when a dtype is passed to 'DataFrame', either all columns will be cast to that dtype, or a TypeError will be raised
    df = chadwick.game_to_dataframe(next(games))

-- Docs: https://docs.pytest.org/en/latest/warnings.html
======================================================= 6 passed, 2 warnings in 5.47s ========================================================
"F",0,"","F","F","",0,0,"N",0,"N",0,"N",1,0,0,0,"","","","","F","F","F","F","F","F","F","F","F","","","","F","F","F","F","F","","","","",0,0,0,0,0,0,0,0,0,"PHI","PHI","NY1",1,"T","F",2,3,0,47,0,"T","F",0,1,"F","F","hamng102","ennid101","F","F",0,0,0,0,0,0,0,0,0,"","","",0,0,0,0,0,0,0,0,0,0,0,0,0,"","F","F","F","F",0,0,0,0,0,0,0,0,0,0,F,F
"PHI195409260","NY1",11,1,0,0,0,"",3,2,"hamng102","?","hamng102","?","speng102","?","speng102","?","garaj101","lockw101","willd102","amalj101","gardb101","rhodd101","maysw101","mueld101","burgs101","","","64(1)3/GDP","F","F",4,4,2,"T","T",0,"F","F",2,"T","F",0,"F","F",6,"G","F","F","",0,0,"N",0,"N",0,"N",0,0,0,0,"43","64","","","F","F","F","F","F","F","F","F","F","speng102","","","F","F","F","F","F","","","","",0,4,3,0,6,4,0,0,0,"PHI","PHI","NY1",1,"F","F",2,3,0,48,1,"T","F",1,0,"T","T","ennid101","morgb102","F","F",2,3,99,0,0,0,0,0,0,"garaj101","","",0,0,0,0,0,0,0,0,0,0,0,0,0,"gardb101","T","F","F","F",0,0,0,0,0,0,0,0,0,0,F,F
"PHI195409260","NY1",11,1,2,0,0,"",3,2,"ennid101","?","ennid101","?","speng102","?","speng102","?","garaj101","lockw101","willd102","amalj101","gardb101","rhodd101","maysw101","mueld101","","","","5/FL","F","F",9,5,2,"T","T",0,"F","F",1,"F","F",0,"F","F",5,"F","F","T","",0,0,"N",0,"N",0,"N",0,0,0,0,"5","","","","F","F","F","F","F","F","F","F","F","","","","F","T","F","F","F","","","","",0,5,0,0,0,0,0,0,0,"PHI","PHI","NY1",1,"F","T",2,3,0,49,2,"T","F",0,0,"T","T","morgb102","jonew101","F","F",0,0,0,0,0,0,0,0,0,"","","",0,0,0,0,0,0,0,0,0,0,0,0,0,"amalj101","F","F","F","F",0,0,0,0,0,0,0,0,0,0,F,F
opening file /tmp/tmp.EVA

Forcing pandas to v1 by using a range in the requirements version spec also fixes this:

(venv3.7) nick@astra:~/dev/nickball/forks/pychadwick$ grep pandas requirements.txt
pandas>=1.1.0<2.0
(venv3.7) nick@astra:~/dev/nickball/forks/pychadwick$ pip freeze | grep pandas
pandas==1.3.5
(venv3.7) nick@astra:~/dev/nickball/forks/pychadwick$ pytest tests/ -q
......

Reproduce

  • Start with a fresh version of python 3.8+ (or uninstall pandas)
  • install pandas2: pip install pandas, make install from this repo, or install pychadwick
  • make test or otherwise call chadwick.game_to_dataframe. pandas will raise a ValueError.

Full test case:

(venv) nick@astra:~/temp/repro$ python3 --version
Python 3.9.16
(venv) nick@astra:~/temp/repro$ pip install pychadwick
Collecting pychadwick
  Using cached pychadwick-0.5.0.tar.gz (119 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pandas>=1.0.4
  Using cached pandas-2.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB)
[...]
(venv) nick@astra:~/temp/repro$ pip freeze | grep pandas
pandas==2.0.2
(venv) nick@astra:~/temp/repro$ python3
Python 3.9.16 (main, Dec  7 2022, 01:12:08)
[GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pychadwick.chadwick import Chadwick
>>> chadwick = Chadwick()
>>> file_path = "https://raw.githubusercontent.com/chadwickbureau/retrosheet/master/event/regular/1982OAK.EVA"
>>> games = chadwick.games(file_path)
>>> game = next(games)
>>> game
    <pychadwick.game.LP_CWGame object at 0x7f485c7896c0>
>>> chadwick.game_to_dataframe(game)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nick/temp/repro/venv/lib/python3.9/site-packages/pychadwick/chadwick.py", line 259, in game_to_dataframe
    pd.DataFrame(list(self.process_game(game_ptr)), dtype="f8"),
  File "/home/nick/temp/repro/venv/lib/python3.9/site-packages/pandas/core/frame.py", line 790, in __init__
    mgr = arrays_to_mgr(
  File "/home/nick/temp/repro/venv/lib/python3.9/site-packages/pandas/core/internals/construction.py", line 120, in arrays_to_mgr
    arrays, refs = _homogenize(arrays, index, dtype)
  File "/home/nick/temp/repro/venv/lib/python3.9/site-packages/pandas/core/internals/construction.py", line 607, in _homogenize
    val = sanitize_array(val, index, dtype=dtype, copy=False)
  File "/home/nick/temp/repro/venv/lib/python3.9/site-packages/pandas/core/construction.py", line 576, in sanitize_array
    subarr = _try_cast(data, dtype, copy)
  File "/home/nick/temp/repro/venv/lib/python3.9/site-packages/pandas/core/construction.py", line 765, in _try_cast
    subarr = np.array(arr, dtype=dtype, copy=copy)
ValueError: could not convert string to float: 'OAK198204060'
>>>

Builds on 3.8+ can also be enabled with pull #29 to reproduce this.

Could not build wheels for pychadwick...

Apologies in advance for the really long code snippet. I can't get pychadwick to install and I'm stuck on how to resolve. I've tried searching on how to resolve the CMake compiler error, but nothing I've done works. Any guidance would be much appreciated.

` ร— Building wheel for pychadwick (pyproject.toml) did not run successfully.
โ”‚ exit code: 1
โ•ฐโ”€> [551 lines of output]

  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 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.


  -- The C compiler identification is MSVC 19.39.33523.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - broken
  CMake Error at C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/cmake/data/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):
    The C compiler

      "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: 'C:/Users/dusti/AppData/Local/Temp/pip-install-fy7f13a7/pychadwick_b62e4203f2ef40b78b178beaa43ffc53/_cmake_test_compile/build/CMakeFiles/CMakeScratch/TryCompile-le8odv'

      Run Build Command(s): C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/ninja/data/bin/ninja -v cmTC_bb20f
      [1/2] C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe  /nologo   /DWIN32 /D_WINDOWS /W3  /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_bb20f.dir\testCCompiler.c.obj /FdCMakeFiles\cmTC_bb20f.dir\ /FS -c C:\Users\dusti\AppData\Local\Temp\pip-install-fy7f13a7\pychadwick_b62e4203f2ef40b78b178beaa43ffc53\_cmake_test_compile\build\CMakeFiles\CMakeScratch\TryCompile-le8odv\testCCompiler.c
      [2/2] C:\Windows\system32\cmd.exe /C "cd . && C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_bb20f.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_bb20f.dir\testCCompiler.c.obj  /out:cmTC_bb20f.exe /implib:cmTC_bb20f.lib /pdb:cmTC_bb20f.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
      FAILED: cmTC_bb20f.exe
      C:\Windows\system32\cmd.exe /C "cd . && C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_bb20f.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_bb20f.dir\testCCompiler.c.obj  /out:cmTC_bb20f.exe /implib:cmTC_bb20f.lib /pdb:cmTC_bb20f.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
      RC Pass 1: command "rc /fo CMakeFiles\cmTC_bb20f.dir/manifest.res CMakeFiles\cmTC_bb20f.dir/manifest.rc" failed (exit code 0) with the following output:
      no such file or directory
      ninja: build stopped: subcommand failed.





    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:3 (ENABLE_LANGUAGE)


  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure
  --------------------------------------------------------------------------------



  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 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.


  -- The C compiler identification is unknown
  CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
    No CMAKE_C_COMPILER could be found.



  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator - failure
  --------------------------------------------------------------------------------



  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 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.


  -- The C compiler identification is MSVC 19.39.33523.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - broken
  CMake Error at C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/cmake/data/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):
    The C compiler

      "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: 'C:/Users/dusti/AppData/Local/Temp/pip-install-fy7f13a7/pychadwick_b62e4203f2ef40b78b178beaa43ffc53/_cmake_test_compile/build/CMakeFiles/CMakeScratch/TryCompile-2njvkx'

      Run Build Command(s): C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/ninja/data/bin/ninja -v cmTC_bb79c
      [1/2] C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe  /nologo   /DWIN32 /D_WINDOWS /W3  /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_bb79c.dir\testCCompiler.c.obj /FdCMakeFiles\cmTC_bb79c.dir\ /FS -c C:\Users\dusti\AppData\Local\Temp\pip-install-fy7f13a7\pychadwick_b62e4203f2ef40b78b178beaa43ffc53\_cmake_test_compile\build\CMakeFiles\CMakeScratch\TryCompile-2njvkx\testCCompiler.c
      [2/2] C:\Windows\system32\cmd.exe /C "cd . && C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_bb79c.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_bb79c.dir\testCCompiler.c.obj  /out:cmTC_bb79c.exe /implib:cmTC_bb79c.lib /pdb:cmTC_bb79c.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
      FAILED: cmTC_bb79c.exe
      C:\Windows\system32\cmd.exe /C "cd . && C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_bb79c.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_bb79c.dir\testCCompiler.c.obj  /out:cmTC_bb79c.exe /implib:cmTC_bb79c.lib /pdb:cmTC_bb79c.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
      RC Pass 1: command "rc /fo CMakeFiles\cmTC_bb79c.dir/manifest.res CMakeFiles\cmTC_bb79c.dir/manifest.rc" failed (exit code 0) with the following output:
      no such file or directory
      ninja: build stopped: subcommand failed.





    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:3 (ENABLE_LANGUAGE)


  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator - failure
  --------------------------------------------------------------------------------



  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 16 2019 x64 v142' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 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.


  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Visual Studio 16 2019

    could not find any instance of Visual Studio.



  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 16 2019 x64 v142' generator - failure
  --------------------------------------------------------------------------------



  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 15 2017 x64 v141)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 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.


  -- The C compiler identification is MSVC 19.39.33523.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - broken
  CMake Error at C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/cmake/data/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):
    The C compiler

      "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: 'C:/Users/dusti/AppData/Local/Temp/pip-install-fy7f13a7/pychadwick_b62e4203f2ef40b78b178beaa43ffc53/_cmake_test_compile/build/CMakeFiles/CMakeScratch/TryCompile-ovdgkk'

      Run Build Command(s): C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/ninja/data/bin/ninja -v cmTC_1b873
      [1/2] C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe  /nologo   /DWIN32 /D_WINDOWS /W3  /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_1b873.dir\testCCompiler.c.obj /FdCMakeFiles\cmTC_1b873.dir\ /FS -c C:\Users\dusti\AppData\Local\Temp\pip-install-fy7f13a7\pychadwick_b62e4203f2ef40b78b178beaa43ffc53\_cmake_test_compile\build\CMakeFiles\CMakeScratch\TryCompile-ovdgkk\testCCompiler.c
      [2/2] C:\Windows\system32\cmd.exe /C "cd . && C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_1b873.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_1b873.dir\testCCompiler.c.obj  /out:cmTC_1b873.exe /implib:cmTC_1b873.lib /pdb:cmTC_1b873.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
      FAILED: cmTC_1b873.exe
      C:\Windows\system32\cmd.exe /C "cd . && C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_1b873.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_1b873.dir\testCCompiler.c.obj  /out:cmTC_1b873.exe /implib:cmTC_1b873.lib /pdb:cmTC_1b873.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
      RC Pass 1: command "rc /fo CMakeFiles\cmTC_1b873.dir/manifest.res CMakeFiles\cmTC_1b873.dir/manifest.rc" failed (exit code 0) with the following output:
      no such file or directory
      ninja: build stopped: subcommand failed.





    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:3 (ENABLE_LANGUAGE)


  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 15 2017 x64 v141)' generator - failure
  --------------------------------------------------------------------------------



  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 15 2017 x64 v141' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 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.


  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Visual Studio 15 2017

    could not find any instance of Visual Studio.



  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 15 2017 x64 v141' generator - failure
  --------------------------------------------------------------------------------



  --------------------------------------------------------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 17 2022 x64 v143)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 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.


  -- The C compiler identification is MSVC 19.39.33523.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - broken
  CMake Error at C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/cmake/data/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):
    The C compiler

      "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: 'C:/Users/dusti/AppData/Local/Temp/pip-install-fy7f13a7/pychadwick_b62e4203f2ef40b78b178beaa43ffc53/_cmake_test_compile/build/CMakeFiles/CMakeScratch/TryCompile-vnh4mt'

      Run Build Command(s): C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/cmake/data/bin/cmake.exe -E env VERBOSE=1 nmake -f Makefile /nologo cmTC_06904\fast
              "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\nmake.exe"  -f CMakeFiles\cmTC_06904.dir\build.make /nologo -L                  CMakeFiles\cmTC_06904.dir\build
      Building C object CMakeFiles/cmTC_06904.dir/testCCompiler.c.obj
              C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E cmake_cl_compile_depends --dep-file=CMakeFiles\cmTC_06904.dir\testCCompiler.c.obj.d --working-dir=C:\Users\dusti\AppData\Local\Temp\pip-install-fy7f13a7\pychadwick_b62e4203f2ef40b78b178beaa43ffc53\_cmake_test_compile\build\CMakeFiles\CMakeScratch\TryCompile-vnh4mt --filter-prefix="Note: including file: " -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe @C:\Users\dusti\AppData\Local\Temp\nmC751.tmp
      testCCompiler.c
      Linking C executable cmTC_06904.exe
              C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_06904.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\cmTC_06904.dir\objects1.rsp @C:\Users\dusti\AppData\Local\Temp\nmC7A0.tmp
      Visual Studio Incremental Link with embedded manifests
      Create CMakeFiles\cmTC_06904.dir/manifest.rc
      Create empty: CMakeFiles\cmTC_06904.dir/embed.manifest
      RC Pass 1:
      rc /fo CMakeFiles\cmTC_06904.dir/manifest.res CMakeFiles\cmTC_06904.dir/manifest.rc
      RC Pass 1: command "rc /fo CMakeFiles\cmTC_06904.dir/manifest.res CMakeFiles\cmTC_06904.dir/manifest.rc" failed (exit code 0) with the following output:
      no such file or directoryNMAKE : fatal error U1077: 'C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_06904.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\cmTC_06904.dir\objects1.rsp @C:\Users\dusti\AppData\Local\Temp\nmC7A0.tmp' : return code '0xffffffff'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\nmake.exe"  -f CMakeFiles\cmTC_06904.dir\build.make /nologo -L                  CMakeFiles\cmTC_06904.dir\build' : return code '0x2'
      Stop.





    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:3 (ENABLE_LANGUAGE)


  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 17 2022 x64 v143)' generator - failure
  --------------------------------------------------------------------------------



  --------------------------------------------------------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 16 2019 x64 v142)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 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.


  -- The C compiler identification is MSVC 19.39.33523.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - broken
  CMake Error at C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/cmake/data/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):
    The C compiler

      "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: 'C:/Users/dusti/AppData/Local/Temp/pip-install-fy7f13a7/pychadwick_b62e4203f2ef40b78b178beaa43ffc53/_cmake_test_compile/build/CMakeFiles/CMakeScratch/TryCompile-2f79nm'

      Run Build Command(s): C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/cmake/data/bin/cmake.exe -E env VERBOSE=1 nmake -f Makefile /nologo cmTC_4ec68\fast
              "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\nmake.exe"  -f CMakeFiles\cmTC_4ec68.dir\build.make /nologo -L                  CMakeFiles\cmTC_4ec68.dir\build
      Building C object CMakeFiles/cmTC_4ec68.dir/testCCompiler.c.obj
              C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E cmake_cl_compile_depends --dep-file=CMakeFiles\cmTC_4ec68.dir\testCCompiler.c.obj.d --working-dir=C:\Users\dusti\AppData\Local\Temp\pip-install-fy7f13a7\pychadwick_b62e4203f2ef40b78b178beaa43ffc53\_cmake_test_compile\build\CMakeFiles\CMakeScratch\TryCompile-2f79nm --filter-prefix="Note: including file: " -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe @C:\Users\dusti\AppData\Local\Temp\nmC9B2.tmp
      testCCompiler.c
      Linking C executable cmTC_4ec68.exe
              C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_4ec68.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\cmTC_4ec68.dir\objects1.rsp @C:\Users\dusti\AppData\Local\Temp\nmCA01.tmp
      Visual Studio Incremental Link with embedded manifests
      Create CMakeFiles\cmTC_4ec68.dir/manifest.rc
      Create empty: CMakeFiles\cmTC_4ec68.dir/embed.manifest
      RC Pass 1:
      rc /fo CMakeFiles\cmTC_4ec68.dir/manifest.res CMakeFiles\cmTC_4ec68.dir/manifest.rc
      RC Pass 1: command "rc /fo CMakeFiles\cmTC_4ec68.dir/manifest.res CMakeFiles\cmTC_4ec68.dir/manifest.rc" failed (exit code 0) with the following output:
      no such file or directoryNMAKE : fatal error U1077: 'C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_4ec68.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\cmTC_4ec68.dir\objects1.rsp @C:\Users\dusti\AppData\Local\Temp\nmCA01.tmp' : return code '0xffffffff'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\nmake.exe"  -f CMakeFiles\cmTC_4ec68.dir\build.make /nologo -L                  CMakeFiles\cmTC_4ec68.dir\build' : return code '0x2'
      Stop.





    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:3 (ENABLE_LANGUAGE)


  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 16 2019 x64 v142)' generator - failure
  --------------------------------------------------------------------------------



  --------------------------------------------------------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 15 2017 x64 v141)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 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.


  -- The C compiler identification is MSVC 19.39.33523.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - broken
  CMake Error at C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/cmake/data/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):
    The C compiler

      "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: 'C:/Users/dusti/AppData/Local/Temp/pip-install-fy7f13a7/pychadwick_b62e4203f2ef40b78b178beaa43ffc53/_cmake_test_compile/build/CMakeFiles/CMakeScratch/TryCompile-i4cvxw'

      Run Build Command(s): C:/Users/dusti/AppData/Local/Temp/pip-build-env-5o4uumh6/overlay/Lib/site-packages/cmake/data/bin/cmake.exe -E env VERBOSE=1 nmake -f Makefile /nologo cmTC_77620\fast
              "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\nmake.exe"  -f CMakeFiles\cmTC_77620.dir\build.make /nologo -L                  CMakeFiles\cmTC_77620.dir\build
      Building C object CMakeFiles/cmTC_77620.dir/testCCompiler.c.obj
              C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E cmake_cl_compile_depends --dep-file=CMakeFiles\cmTC_77620.dir\testCCompiler.c.obj.d --working-dir=C:\Users\dusti\AppData\Local\Temp\pip-install-fy7f13a7\pychadwick_b62e4203f2ef40b78b178beaa43ffc53\_cmake_test_compile\build\CMakeFiles\CMakeScratch\TryCompile-i4cvxw --filter-prefix="Note: including file: " -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe @C:\Users\dusti\AppData\Local\Temp\nmCC14.tmp
      testCCompiler.c
      Linking C executable cmTC_77620.exe
              C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_77620.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\cmTC_77620.dir\objects1.rsp @C:\Users\dusti\AppData\Local\Temp\nmCC53.tmp
      Visual Studio Incremental Link with embedded manifests
      Create CMakeFiles\cmTC_77620.dir/manifest.rc
      Create empty: CMakeFiles\cmTC_77620.dir/embed.manifest
      RC Pass 1:
      rc /fo CMakeFiles\cmTC_77620.dir/manifest.res CMakeFiles\cmTC_77620.dir/manifest.rc
      RC Pass 1: command "rc /fo CMakeFiles\cmTC_77620.dir/manifest.res CMakeFiles\cmTC_77620.dir/manifest.rc" failed (exit code 0) with the following output:
      no such file or directoryNMAKE : fatal error U1077: 'C:\Users\dusti\AppData\Local\Temp\pip-build-env-5o4uumh6\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_77620.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\cmTC_77620.dir\objects1.rsp @C:\Users\dusti\AppData\Local\Temp\nmCC53.tmp' : return code '0xffffffff'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\nmake.exe"  -f CMakeFiles\cmTC_77620.dir\build.make /nologo -L                  CMakeFiles\cmTC_77620.dir\build' : return code '0x2'
      Stop.





    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:3 (ENABLE_LANGUAGE)


  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 15 2017 x64 v141)' generator - failure
  --------------------------------------------------------------------------------

                  ********************************************************************************
                  scikit-build could not get a working generator for your system. Aborting build.

                  Building windows wheels for Python 3.11 requires Microsoft Visual Studio 2022.
  Get it with "Visual Studio 2017":

    https://visualstudio.microsoft.com/vs/

  Or with "Visual Studio 2019":

      https://visualstudio.microsoft.com/vs/

  Or with "Visual Studio 2022":

      https://visualstudio.microsoft.com/vs/

                  ********************************************************************************
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pychadwick
Failed to build pychadwick
ERROR: Could not build wheels for pychadwick, which is required to install pyproject.toml-based projects`

install issues

On a new linux machine I had issues installing from pip.

  • the setup.py imports from skbuild, so scikit-build has to be installed. It's in the install_requires variable but the error happens prior to that due to the import in the top of the file.

  • psycopg2 can't be built and installed from pip unless

    • the postgres server or dev libraries are installed, e.g. libpg-dev for client or postgresql-server-dev-X for server
    • the python dev libraries, which provide Python.h, e.g. python3.7-dev

Replacement for `chadwick` CLI tool

The implementation of reading the whole event database is slower than the compiled version (on the order of 1-minute for the c version, compared to 10 for the hybrid python - c version). There should be a way to directly call the same function that cwevent does and make it a python-driven replacement that is just as fast.

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.