Giter VIP home page Giter VIP logo

alfa-dataset-tools's Introduction

ALFA Dataset Tools

Introduction

This repository contains the basic tools to work with the AIR Lab Fault Detection (ALFA) Dataset. ALFA dataset contains autonomous flight sequences of a UAV plane with eight different types of fault happening during the flights and is provided to help advance fault and anomaly detection and isolation research.

For more information about the dataset, please refer to http://theairlab.org/alfa-dataset.

For more information about this project and the publications related to the dataset and this work, please refer to https://theairlab.org/fault-detection.

Description of Tools

These tool packages are provided for reading and working with the dataset:

  • alfa-cpp: The tools to read, filter and iterate through the sequences in C++'11 language.

  • alfa-python: The tools to read, filter and iterate through the sequences in Python 3.x language.

  • alfa-matlab: The tools to read, filter and iterate through the sequences in MATLAB development environment.

  • alfa-evaluate: The tools for evaluation of new methods with the provided dataset. The code is written in C++'11 language, but examples are provided in C++'11, Python 3.x and MATLAB on how to evaluate the methods in those languages using these tools.

  • alfa-ros-messages: The custom ROS message definitions for topics in the bag files. The message definitions are only provided for working with the bag files and are not required for other dataset file types.

For more information, please refer to each individual package about how to install and use them.

Citation

Tools and Dataset

The tools and the dataset are provided with the following paper published in IJRR (also available on arXiv). Please cite the following publication if you use either the tools or the dataset:

BibTeX:
@article{keipour:dataset:2021,
author={Azarakhsh Keipour and Mohammadreza Mousaei and Sebastian Scherer},
title={{ALFA}: A Dataset for {UAV} Fault and Anomaly Detection},
journal = {The International Journal of Robotics Research},
volume = {40},
number = {2-3},
pages = {515-520},
year = {2021},
doi = {10.1177/0278364920966642},
URL = {https://doi.org/10.1177/0278364920966642},
}

IEEE Style:
A. Keipour, M. Mousaei, and S. Scherer, “ALFA: A dataset for UAV fault and anomaly detection,” The International Journal of Robotics Research, vol. 40, no. 2-3, pp. 515–520, 2021. doi: 10.1177/0278364920966642.

Portions of Dataset

Some portions of the dataset are released in the following ICRA 2019 publication (also available on arXiv). If you use any of those sequences, please also cite this paper:

BibTeX:
@inproceedings{keipour:detection:2019,
author={Azarakhsh Keipour and Mohammadreza Mousaei and Sebastian Scherer},
booktitle={2019 IEEE International Conference on Robotics and Automation (ICRA)},
title={Automatic Real-time Anomaly Detection for Autonomous Aerial Vehicles},
year={2019},
month={May},
pages={5679-5685}
doi={10.1109/ICRA.2019.8794286}
}

IEEE Style:
A. Keipour, M. Mousaei, and S. Scherer, “Automatic Real-time Anomaly Detection for Autonomous Aerial Vehicles,” in 2019 IEEE International Conference on Robotics and Automation (ICRA), May 2019, pp.5679-5685. doi: 10.1109/ICRA.2019.8794286.

Authors

  • Azarakhsh Keipour - (keipour [at] cmu [dot] edu)
  • Mohammadreza Mousaei - (mmousaei [at] cmu [dot] edu)
  • Sebastian Scherer - (basti [at] cmu [dot] edu)

License

This software is BSD licensed.

Copyright (c) 2019, Carnegie Mellon University All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Acknowledgments

This work was supported through NASA Grant Number NNX17CL06C.

alfa-dataset-tools's People

Contributors

keipour avatar mmousaei avatar

Stargazers

 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

alfa-dataset-tools's Issues

alfa-python Make Error: Missing Methods in alfa::Topic

When I followed the instruction to build alfa-python, i get the following error
$HOME/alfa-dataset-tools/alfa-python/alfa_python.cpp: In function ‘void init_module_alfa_python()’: $HOME/alfa-dataset-tools/alfa-python/alfa_python.cpp:77:49: error: ‘GetFieldsAsStringByName’ is not a member of ‘alfa::Topic’ .def("GetFieldsAsStringByName", &alfa::Topic::GetFieldsAsStringByName) ^~~~~~~~~~~~~~~~~~~~~~~ $HOME/alfa-dataset-tools/alfa-python/alfa_python.cpp:78:50: error: ‘GetFieldsAsStringByIndex’ is not a member of ‘alfa::Topic’ .def("GetFieldsAsStringByIndex", &alfa::Topic::GetFieldsAsStringByIndex) ^~~~~~~~~~~~~~~~~~~~~~~~ $HOME/alfa-dataset-tools/alfa-python/alfa_python.cpp:79:46: error: ‘GetFieldsAsLongLongByName’ is not a member of ‘alfa::Topic’ .def("GetFieldsAsIntByName", &alfa::Topic::GetFieldsAsLongLongByName) ^~~~~~~~~~~~~~~~~~~~~~~~~ $HOME/alfa-dataset-tools/alfa-python/alfa_python.cpp:80:47: error: ‘GetFieldsAsIntByIndex’ is not a member of ‘alfa::Topic’ .def("GetFieldsAsIntByIndex", &alfa::Topic::GetFieldsAsIntByIndex) ^~~~~~~~~~~~~~~~~~~~~ $HOME/alfa-dataset-tools/alfa-python/alfa_python.cpp:81:51: error: ‘GetFieldsAsLongLongByIndex’ is not a member of ‘alfa::Topic’ .def("GetFieldsAsLongLongByName", &alfa::Topic::GetFieldsAsLongLongByIndex) ^~~~~~~~~~~~~~~~~~~~~~~~~~ $HOME/alfa-dataset-tools/alfa-python/alfa_python.cpp:82:52: error: ‘GetFieldsAsDoubleByName’ is not a member of ‘alfa::Topic’ .def("GetFieldsAsLongLongByIndex", &alfa::Topic::GetFieldsAsDoubleByName) ^~~~~~~~~~~~~~~~~~~~~~~ CMakeFiles/alfa_python.dir/build.make:62: recipe for target 'CMakeFiles/alfa_python.dir/alfa_python.cpp.o' failed make[2]: *** [CMakeFiles/alfa_python.dir/alfa_python.cpp.o] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/alfa_python.dir/all' failed make[1]: *** [CMakeFiles/alfa_python.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

I have checked the topic.h in the include directory in alfa-cpp and those methods do not exist.

alfa-python make error

Hello,

I tried to make the alfa-python package in MacOS as well as in Windows.
In Windows, it says that boost/python.hpp is not present.
And in MacOS, I got the following output:

Last login: Tue Sep 15 10:27:19 on ttys001
angi@Angis-MacBook-Pro ~ % cd Uni 
angi@Angis-MacBook-Pro Uni % git clone https://github.com/castacks/alfa-dataset-tools.git
Cloning into 'alfa-dataset-tools'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 471 (delta 4), reused 17 (delta 3), pack-reused 451
Receiving objects: 100% (471/471), 6.77 MiB | 7.80 MiB/s, done.
Resolving deltas: 100% (232/232), done.
angi@Angis-MacBook-Pro Uni % cd alfa-dataset-tools/alfa-python 
angi@Angis-MacBook-Pro alfa-python % mkdir build
angi@Angis-MacBook-Pro alfa-python % cd build
angi@Angis-MacBook-Pro build % cmake ..
-- The C compiler identification is AppleClang 11.0.3.11030032
-- The CXX compiler identification is AppleClang 11.0.3.11030032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.16") 
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.16") 
-- Using Python2
-- Configuring done
CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   alfa_python

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/angi/Uni/alfa-dataset-tools/alfa-python/build
angi@Angis-MacBook-Pro build % make
Scanning dependencies of target Boost
[ 10%] Creating directories for 'Boost'
[ 20%] Performing download step (download, verify and extract) for 'Boost'
-- Downloading...
   dst='/Users/angi/Uni/alfa-dataset-tools/alfa-python/build/Boost/src/boost_1_63_0.tar.bz2'
   timeout='none'
-- Using src='http://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.tar.bz2/download'
-- [download 100% complete]
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
* Closing connection 2
* Closing connection 0
* Closing connection 1
-- verifying file...
       file='/Users/angi/Uni/alfa-dataset-tools/alfa-python/build/Boost/src/boost_1_63_0.tar.bz2'
-- Downloading... done
-- extracting...
     src='/Users/angi/Uni/alfa-dataset-tools/alfa-python/build/Boost/src/boost_1_63_0.tar.bz2'
     dst='/Users/angi/Uni/alfa-dataset-tools/alfa-python/build/Boost/src/Boost'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 30%] No update step for 'Boost'
[ 40%] No patch step for 'Boost'
[ 50%] Performing configure step for 'Boost'
Building Boost.Build engine with toolset darwin... tools/build/src/engine/bin.macosxx86_64/b2
Detecting Python version... 2.7
Detecting Python root... /System/Library/Frameworks/Python.framework/Versions/2.7
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam...

Bootstrapping is done. To build, run:

    ./b2
    
To adjust configuration, edit 'project-config.jam'.
Further information:

   - Command line help:
     ./b2 --help
     
   - Getting started guide: 
     http://www.boost.org/more/getting_started/unix-variants.html
     
   - Boost.Build documentation:
     http://www.boost.org/build/doc/html/index.html

[ 60%] Performing build step for 'Boost'
Performing configuration checks

    - 32-bit                   : no
    - 64-bit                   : no
    - arm                      : no
    - mips1                    : no
    - power                    : no
    - sparc                    : no
    - x86                      : no
    - combined                 : no
    - symlinks supported       : yes

Component configuration:

    - atomic                   : not building
    - chrono                   : not building
    - container                : not building
    - context                  : not building
    - coroutine                : not building
    - coroutine2               : not building
    - date_time                : not building
    - exception                : not building
    - fiber                    : not building
    - filesystem               : not building
    - graph                    : not building
    - graph_parallel           : not building
    - iostreams                : not building
    - locale                   : not building
    - log                      : not building
    - math                     : not building
    - metaparse                : not building
    - mpi                      : not building
    - program_options          : not building
    - python                   : building
    - random                   : not building
    - regex                    : not building
    - serialization            : not building
    - signals                  : not building
    - system                   : not building
    - test                     : not building
    - thread                   : not building
    - timer                    : not building
    - type_erasure             : not building
    - wave                     : not building

clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
...skipped <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>libboost_python.a(clean) for lack of <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>numeric.o...
...skipped <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>libboost_python.a for lack of <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>numeric.o...
...skipped <p/Users/angi/Uni/alfa-dataset-tools/alfa-python/build/extern/lib>libboost_python.a for lack of <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>libboost_python.a...
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
clang: error: unknown argument: '-fcoalesce-templates'
...skipped <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>libboost_numpy.a(clean) for lack of <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>numpy/dtype.o...
...skipped <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>libboost_numpy.a for lack of <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>numpy/dtype.o...
...skipped <p/Users/angi/Uni/alfa-dataset-tools/alfa-python/build/extern/lib>libboost_numpy.a for lack of <pbin.v2/libs/python/build/darwin-11.0.3/release/link-static/threading-multi>libboost_numpy.a...
...failed updating 34 targets...
make[2]: *** [Boost/src/Boost-stamp/Boost-build] Error 1
make[1]: *** [CMakeFiles/Boost.dir/all] Error 2
make: *** [all] Error 2
angi@Angis-MacBook-Pro build % 

Maybe you can help me?
And Is there a plan for publishing a python package to pip in the (near) future?

Some errors occur at the last step

I tried to compile the alfa-python module on both my own computer and the college's server, but encountered the following problems in the last step:

[100%] Linking CXX shared library alfa_python.so
/usr/bin/ld: cannot find -lboost_python3: No such file or directory
/usr/bin/ld: cannot find -lboost_numpy: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/alfa_python.dir/build.make:98: alfa_python.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/alfa_python.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Could you help me solve this, please? It's bothered me for a long time.

make error on ubuntu 22.04.2

I'm getting following error while running make command
`[ 10%] Performing build step for 'Boost'
Performing configuration checks

- default address-model    : 64-bit (cached)
- default architecture     : x86 (cached)

Component configuration:

- atomic                   : not building
- chrono                   : not building
- container                : not building
- context                  : not building
- contract                 : not building
- coroutine                : not building
- date_time                : not building
- exception                : not building
- fiber                    : not building
- filesystem               : not building
- graph                    : not building
- graph_parallel           : not building
- headers                  : not building
- iostreams                : not building
- locale                   : not building
- log                      : not building
- math                     : not building
- mpi                      : not building
- nowide                   : not building
- program_options          : not building
- python                   : building
- random                   : not building
- regex                    : not building
- serialization            : not building
- stacktrace               : not building
- system                   : not building
- test                     : not building
- thread                   : not building
- timer                    : not building
- type_erasure             : not building
- wave                     : not building

In file included from /home/ata/anaconda3/include/python3.11/Python.h:44,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object/life_support.hpp:7,
from libs/python/src/object/life_support.cpp:5:
libs/python/src/object/life_support.cpp: In function ‘PyObject* boost::python::objects::make_nurse_and_patient(PyObject*, PyObject*)’:
/home/ata/anaconda3/include/python3.11/object.h:136:30: error: lvalue required as left operand of assignment
136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libs/python/src/object/life_support.cpp:96:9: note: in expansion of macro ‘Py_TYPE’
96 | Py_TYPE(&life_support_type) = &PyType_Type;
| ^~~~~~~
In file included from ./boost/python/detail/is_xxx.hpp:8,
from ./boost/python/detail/is_auto_ptr.hpp:9,
from ./boost/python/detail/copy_ctor_mutates_rhs.hpp:8,
from ./boost/python/detail/value_arg.hpp:7,
from ./boost/python/object/forward.hpp:10,
from ./boost/python/object/pointer_holder.hpp:16,
from ./boost/python/to_python_indirect.hpp:10,
from ./boost/python/converter/arg_to_python.hpp:10,
from ./boost/python/call.hpp:15,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object.hpp:9,
from ./boost/python/exec.hpp:8,
from libs/python/src/exec.cpp:6:
./boost/python/detail/is_auto_ptr.hpp:17:40: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
| ^~~~~~~~
./boost/detail/is_xxx.hpp:20:4: note: in definition of macro ‘BOOST_DETAIL_IS_XXX_DEF’
20 | qualified_name< BOOST_PP_ENUM_PARAMS_Z(1, nargs, T) >
| ^~~~~~~~~~~~~~
./boost/python/detail/is_auto_ptr.hpp:17:1: note: in expansion of macro ‘BOOST_PYTHON_IS_XXX_DEF’
17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from ./boost/config/no_tr1/memory.hpp:21,
from ./boost/get_pointer.hpp:14,
from ./boost/python/object/pointer_holder.hpp:11,
from ./boost/python/to_python_indirect.hpp:10,
from ./boost/python/converter/arg_to_python.hpp:10,
from ./boost/python/call.hpp:15,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object.hpp:9,
from ./boost/python/exec.hpp:8,
from libs/python/src/exec.cpp:6:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template class auto_ptr;
| ^~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:47,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object.hpp:9,
from ./boost/python/exec.hpp:8,
from libs/python/src/exec.cpp:6:
./boost/python/call.hpp: In function ‘typename boost::python::detail::returnable::type boost::python::call(PyObject*, boost::type)’:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/ssize_t.hpp:9,
from ./boost/python/object.hpp:8,
from ./boost/python/exec.hpp:8,
from libs/python/src/exec.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
libs/python/src/exec.cpp: In function ‘boost::python::api::object boost::python::exec_file(const char
, boost::python::api::object, boost::python::api::object)’:
libs/python/src/exec.cpp:109:14: error: ‘_Py_fopen’ was not declared in this scope
109 | FILE fs = _Py_fopen(f, "r");
| ^~~~~~~~~
In file included from ./boost/python/detail/is_xxx.hpp:8,
from ./boost/python/detail/is_auto_ptr.hpp:9,
from ./boost/python/detail/copy_ctor_mutates_rhs.hpp:8,
from ./boost/python/detail/value_arg.hpp:7,
from ./boost/python/object/forward.hpp:10,
from ./boost/python/object/pointer_holder.hpp:16,
from ./boost/python/to_python_indirect.hpp:10,
from ./boost/python/converter/arg_to_python.hpp:10,
from ./boost/python/call.hpp:15,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
./boost/python/detail/is_auto_ptr.hpp:17:40: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
| ^~~~~~~~
./boost/detail/is_xxx.hpp:20:4: note: in definition of macro ‘BOOST_DETAIL_IS_XXX_DEF’
20 | qualified_name< BOOST_PP_ENUM_PARAMS_Z(1, nargs, T) >
| ^~~~~~~~~~~~~~
./boost/python/detail/is_auto_ptr.hpp:17:1: note: in expansion of macro ‘BOOST_PYTHON_IS_XXX_DEF’
17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from ./boost/config/no_tr1/memory.hpp:21,
from ./boost/get_pointer.hpp:14,
from ./boost/python/object/pointer_holder.hpp:11,
from ./boost/python/to_python_indirect.hpp:10,
from ./boost/python/converter/arg_to_python.hpp:10,
from ./boost/python/call.hpp:15,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template class auto_ptr;
| ^~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:47,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
./boost/python/call.hpp: In function ‘typename boost::python::detail::returnable::type boost::python::call(PyObject
, boost::type)’:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object_core.hpp:10,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:44,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object_core.hpp:10,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
libs/python/src/object/enum.cpp: In function ‘boost::python::api::object boost::python::objects::{anonymous}::new_enum_type(const char
, const char*)’:
/home/ata/anaconda3/include/python3.11/object.h:136:30: error: lvalue required as left operand of assignment
136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libs/python/src/object/enum.cpp:156:11: note: in expansion of macro ‘Py_TYPE’
156 | Py_TYPE(&enum_type_object) = incref(&PyType_Type);
| ^~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:62,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
./boost/python/call.hpp: In instantiation of ‘typename boost::python::detail::returnable::type boost::python::call(PyObject*, const A0&, const A1&, const A2&, boost::type) [with R = boost::python::api::object; A0 = const char; A1 = boost::python::tuple; A2 = boost::python::dict; typename boost::python::detail::returnable::type = boost::python::api::object; PyObject = _object]’:
./boost/python/object_call.hpp:19:25: required from ‘typename boost::python::detail::dependent<boost::python::api::object, A0>::type boost::python::api::object_operators::operator()(const A0&, const A1&, const A2&) const [with A0 = const char*; A1 = boost::python::tuple; A2 = boost::python::dict; U = boost::python::api::object; typename boost::python::detail::dependent<boost::python::api::object, A0>::type = boost::python::api::object]’
libs/python/src/object/enum.cpp:182:41: required from here
./boost/python/call.hpp:62:28: warning: ‘PyObject* PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object_core.hpp:10,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:62,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object_core.hpp:10,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:62,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object_core.hpp:10,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:52,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
./boost/python/call.hpp: In instantiation of ‘typename boost::python::detail::returnable::type boost::python::call(PyObject
, const A0&, boost::type) [with R = boost::python::api::object; A0 = long int; typename boost::python::detail::returnable::type = boost::python::api::object; PyObject = _object]’:
./boost/python/object_call.hpp:19:25: required from ‘typename boost::python::detail::dependent<boost::python::api::object, A0>::type boost::python::api::object_operators::operator()(const A0&) const [with A0 = long int; U = boost::python::api::object; typename boost::python::detail::dependent<boost::python::api::object, A0>::type = boost::python::api::object]’
libs/python/src/object/enum.cpp:215:23: required from here
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object_core.hpp:10,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:52,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object_core.hpp:10,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:52,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object_core.hpp:10,
from ./boost/python/object/enum_base.hpp:8,
from libs/python/src/object/enum.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/python/detail/is_xxx.hpp:8,
from ./boost/python/detail/is_auto_ptr.hpp:9,
from ./boost/python/detail/copy_ctor_mutates_rhs.hpp:8,
from ./boost/python/detail/value_arg.hpp:7,
from ./boost/python/object/forward.hpp:10,
from ./boost/python/object/pointer_holder.hpp:16,
from ./boost/python/to_python_indirect.hpp:10,
from ./boost/python/converter/arg_to_python.hpp:10,
from ./boost/python/call.hpp:15,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/class.hpp:9,
from libs/python/src/object/class.cpp:9:
./boost/python/detail/is_auto_ptr.hpp:17:40: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
| ^~~~~~~~
./boost/detail/is_xxx.hpp:20:4: note: in definition of macro ‘BOOST_DETAIL_IS_XXX_DEF’
20 | qualified_name< BOOST_PP_ENUM_PARAMS_Z(1, nargs, T) >
| ^~~~~~~~~~~~~~
./boost/python/detail/is_auto_ptr.hpp:17:1: note: in expansion of macro ‘BOOST_PYTHON_IS_XXX_DEF’
17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from ./boost/config/no_tr1/memory.hpp:21,
from ./boost/get_pointer.hpp:14,
from ./boost/python/object/pointer_holder.hpp:11,
from ./boost/python/to_python_indirect.hpp:10,
from ./boost/python/converter/arg_to_python.hpp:10,
from ./boost/python/call.hpp:15,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/class.hpp:9,
from libs/python/src/object/class.cpp:9:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template class auto_ptr;
| ^~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:47,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/class.hpp:9,
from libs/python/src/object/class.cpp:9:
./boost/python/call.hpp: In function ‘typename boost::python::detail::returnable::type boost::python::call(PyObject
, boost::type)’:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from libs/python/src/object/class.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:44,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from libs/python/src/object/class.cpp:6:
libs/python/src/object/class.cpp: In function ‘PyObject
boost::python::objects::static_data()’:
/home/ata/anaconda3/include/python3.11/object.h:136:30: error: lvalue required as left operand of assignment
136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libs/python/src/object/class.cpp:211:11: note: in expansion of macro ‘Py_TYPE’
211 | Py_TYPE(&static_data_object) = &PyType_Type;
| ^~~~~~~
libs/python/src/object/class.cpp: In function ‘boost::python::type_handle boost::python::objects::class_metatype()’:
/home/ata/anaconda3/include/python3.11/object.h:136:30: error: lvalue required as left operand of assignment
136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libs/python/src/object/class.cpp:319:11: note: in expansion of macro ‘Py_TYPE’
319 | Py_TYPE(&class_metatype_object) = &PyType_Type;
| ^~~~~~~
libs/python/src/object/class.cpp: In function ‘PyObject* boost::python::objects::instance_new(PyTypeObject*, PyObject*, PyObject*)’:
/home/ata/anaconda3/include/python3.11/object.h:145:30: error: lvalue required as left operand of assignment
145 | # define Py_SIZE(ob) Py_SIZE(_PyObject_CAST(ob))
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libs/python/src/object/class.cpp:378:15: note: in expansion of macro ‘Py_SIZE’
378 | Py_SIZE(result) =
| ^~~~~~~
libs/python/src/object/class.cpp: In function ‘boost::python::type_handle boost::python::objects::class_type()’:
/home/ata/anaconda3/include/python3.11/object.h:136:30: error: lvalue required as left operand of assignment
136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libs/python/src/object/class.cpp:473:11: note: in expansion of macro ‘Py_TYPE’
473 | Py_TYPE(&class_type_object) = incref(class_metatype().get());
| ^~~~~~~
libs/python/src/object/class.cpp: In static member function ‘static void* boost::python::instance_holder::allocate(PyObject*, std::size_t, std::size_t)’:
/home/ata/anaconda3/include/python3.11/object.h:145:30: error: lvalue required as left operand of assignment
145 | # define Py_SIZE(ob) Py_SIZE(_PyObject_CAST(ob))
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libs/python/src/object/class.cpp:742:9: note: in expansion of macro ‘Py_SIZE’
742 | Py_SIZE(self) = holder_offset;
| ^~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:62,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/class.hpp:9,
from libs/python/src/object/class.cpp:9:
./boost/python/call.hpp: In instantiation of ‘typename boost::python::detail::returnable::type boost::python::call(PyObject*, const A0&, const A1&, const A2&, boost::type) [with R = boost::python::api::object; A0 = const char; A1 = boost::python::handle<>; A2 = boost::python::dict; typename boost::python::detail::returnable::type = boost::python::api::object; PyObject = _object]’:
./boost/python/object_call.hpp:19:25: required from ‘typename boost::python::detail::dependent<boost::python::api::object, A0>::type boost::python::api::object_operators::operator()(const A0&, const A1&, const A2&) const [with A0 = const char*; A1 = boost::python::handle<>; A2 = boost::python::dict; U = boost::python::api::object; typename boost::python::detail::dependent<boost::python::api::object, A0>::type = boost::python::api::object]’
libs/python/src/object/class.cpp:575:47: required from here
./boost/python/call.hpp:62:28: warning: ‘PyObject* PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from libs/python/src/object/class.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:62,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/class.hpp:9,
from libs/python/src/object/class.cpp:9:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from libs/python/src/object/class.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:62,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/class.hpp:9,
from libs/python/src/object/class.cpp:9:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from libs/python/src/object/class.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/python/detail/is_xxx.hpp:8,
from ./boost/python/detail/is_auto_ptr.hpp:9,
from ./boost/python/detail/copy_ctor_mutates_rhs.hpp:8,
from ./boost/python/detail/value_arg.hpp:7,
from ./boost/python/object/forward.hpp:10,
from ./boost/python/object/pointer_holder.hpp:16,
from ./boost/python/to_python_indirect.hpp:10,
from ./boost/python/converter/arg_to_python.hpp:10,
from ./boost/python/call.hpp:15,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/function.hpp:12,
from ./boost/python/docstring_options.hpp:8,
from libs/python/src/object/function.cpp:6:
./boost/python/detail/is_auto_ptr.hpp:17:40: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
| ^~~~~~~~
./boost/detail/is_xxx.hpp:20:4: note: in definition of macro ‘BOOST_DETAIL_IS_XXX_DEF’
20 | qualified_name< BOOST_PP_ENUM_PARAMS_Z(1, nargs, T) >
| ^~~~~~~~~~~~~~
./boost/python/detail/is_auto_ptr.hpp:17:1: note: in expansion of macro ‘BOOST_PYTHON_IS_XXX_DEF’
17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from ./boost/function/function_base.hpp:16,
from ./boost/function/detail/prologue.hpp:17,
from ./boost/function/function_template.hpp:13,
from ./boost/function/detail/maybe_include.hpp:15,
from ./boost/function/function0.hpp:11,
from ./boost/python/errors.hpp:13,
from ./boost/python/handle.hpp:11,
from ./boost/python/args_fwd.hpp:10,
from ./boost/python/object/function.hpp:9,
from ./boost/python/docstring_options.hpp:8,
from libs/python/src/object/function.cpp:6:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template class auto_ptr;
| ^~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:47,
from ./boost/python/call.hpp:33,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/function.hpp:12,
from ./boost/python/docstring_options.hpp:8,
from libs/python/src/object/function.cpp:6:
./boost/python/call.hpp: In function ‘typename boost::python::detail::returnable::type boost::python::call(PyObject
, boost::type)’:
./boost/python/call.hpp:62:28: warning: ‘PyObject
PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
62 | PyObject* const result =
| ~~~~~~~~~~~~~~~~~~~^
63 | PyEval_CallFunction(
| ~~~~~~~~~~~~~~~~~~~~
64 | callable
| ~~~~~~~~
65 | , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66 | BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
| ~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:95,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object/function.hpp:8,
from ./boost/python/docstring_options.hpp:8,
from libs/python/src/object/function.cpp:6:
/home/ata/anaconda3/include/python3.11/ceval.h:36:43: note: declared here
36 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallFunction(
| ^~~~~~~~~~~~~~~~~~~
In file included from ./boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
from ./boost/smart_ptr/detail/yield_k.hpp:23,
from ./boost/smart_ptr/detail/spinlock_gcc_atomic.hpp:14,
from ./boost/smart_ptr/detail/spinlock.hpp:42,
from ./boost/smart_ptr/detail/spinlock_pool.hpp:25,
from ./boost/smart_ptr/shared_ptr.hpp:29,
from ./boost/shared_ptr.hpp:17,
from ./boost/python/converter/shared_ptr_to_python.hpp:12,
from ./boost/python/converter/arg_to_python.hpp:15,
from ./boost/python/call.hpp:15,
from ./boost/python/object_core.hpp:14,
from ./boost/python/object/function.hpp:12,
from ./boost/python/docstring_options.hpp:8,
from libs/python/src/object/function.cpp:6:
./boost/bind.hpp: At global scope:
./boost/config/pragma_message.hpp:24:34: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
24 | # define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
| ^~~~~~~
./boost/bind.hpp:36:1: note: in expansion of macro ‘BOOST_PRAGMA_MESSAGE’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/ata/anaconda3/include/python3.11/Python.h:44,
from ./boost/python/detail/wrap_python.hpp:178,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object/function.hpp:8,
from ./boost/python/docstring_options.hpp:8,
from libs/python/src/object/function.cpp:6:
libs/python/src/object/function.cpp: In constructor ‘boost::python::objects::function::function(const boost::python::objects::py_function&, const boost::python::detail::keyword
, unsigned int)’:
/home/ata/anaconda3/include/python3.11/object.h:136:30: error: lvalue required as left operand of assignment
136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libs/python/src/object/function.cpp:110:9: note: in expansion of macro ‘Py_TYPE’
110 | Py_TYPE(&function_type) = &PyType_Type;
| ^~~~~~~
...skipped <pbin.v2/libs/python/build/gcc-11/release/link-static/python-3.11/threading-multi/visibility-hidden>libboost_python311.a(clean) for lack of <pbin.v2/libs/python/build/gcc-11/release/link-static/python-3.11/threading-multi/visibility-hidden>object/enum.o...
...skipped <pbin.v2/libs/python/build/gcc-11/release/link-static/python-3.11/threading-multi/visibility-hidden>libboost_python311.a for lack of <pbin.v2/libs/python/build/gcc-11/release/link-static/python-3.11/threading-multi/visibility-hidden>object/enum.o...
...skipped <p/home/ata/thesis/Code/ALFA/alfa-dataset-tools/alfa-python/build/extern/lib>libboost_python311.a for lack of <pbin.v2/libs/python/build/gcc-11/release/link-static/python-3.11/threading-multi/visibility-hidden>libboost_python311.a...
...skipped <pbin.v2/libs/python/build/gcc-11/release/link-static/python-3.11/threading-multi/visibility-hidden>libboost_python-variant-static-py3.11.cmake for lack of <pbin.v2/libs/python/build/gcc-11/release/link-static/python-3.11/threading-multi/visibility-hidden>libboost_python311.a...
...skipped <p/home/ata/thesis/Code/ALFA/alfa-dataset-tools/alfa-python/build/extern/lib/cmake/boost_python-1.74.0>libboost_python-variant-static-py3.11.cmake for lack of <pbin.v2/libs/python/build/gcc-11/release/link-static/python-3.11/threading-multi/visibility-hidden>libboost_python-variant-static-py3.11.cmake...
...failed updating 5 targets...
`
Please help in it

Python and g++ versions used in `alfa-python`

I got a behavior similar to #3

[ 60%] Performing build step for 'Boost'
Performing configuration checks

    - default address-model    : 64-bit
    - default architecture     : x86

Component configuration:

    - atomic                   : not building
    - chrono                   : not building
    - container                : not building
    - context                  : not building
    - contract                 : not building
    - coroutine                : not building
    - date_time                : not building
    - exception                : not building
    - fiber                    : not building
    - filesystem               : not building
    - graph                    : not building
    - graph_parallel           : not building
    - headers                  : not building
    - iostreams                : not building
    - locale                   : not building
    - log                      : not building
    - math                     : not building
    - mpi                      : not building
    - nowide                   : not building
    - program_options          : not building
    - python                   : building
    - random                   : not building
    - regex                    : not building
    - serialization            : not building
    - stacktrace               : not building
    - system                   : not building
    - test                     : not building
    - thread                   : not building
    - timer                    : not building
    - type_erasure             : not building
    - wave                     : not building

In file included from ./boost/python/detail/is_xxx.hpp:8,
                 from ./boost/python/detail/is_auto_ptr.hpp:9,
                 from ./boost/python/detail/copy_ctor_mutates_rhs.hpp:8,
                 from ./boost/python/detail/value_arg.hpp:7,
                 from ./boost/python/object/forward.hpp:10,
                 from ./boost/python/object/pointer_holder.hpp:16,
                 from ./boost/python/to_python_indirect.hpp:10,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:14,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/exec.hpp:8,
                 from libs/python/src/exec.cpp:6:
./boost/python/detail/is_auto_ptr.hpp:17:40: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
      |                                        ^~~~~~~~
./boost/detail/is_xxx.hpp:20:4: note: in definition of macro ‘BOOST_DETAIL_IS_XXX_DEF’
   20 |    qualified_name< BOOST_PP_ENUM_PARAMS_Z(1, nargs, T) >        \
      |    ^~~~~~~~~~~~~~
./boost/python/detail/is_auto_ptr.hpp:17:1: note: in expansion of macro ‘BOOST_PYTHON_IS_XXX_DEF’
   17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from ./boost/config/no_tr1/memory.hpp:21,
                 from ./boost/get_pointer.hpp:14,
                 from ./boost/python/object/pointer_holder.hpp:11,
                 from ./boost/python/to_python_indirect.hpp:10,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:14,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/exec.hpp:8,
                 from libs/python/src/exec.cpp:6:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./boost/preprocessor/iteration/detail/iter/forward1.hpp:47,
                 from ./boost/python/call.hpp:33,
                 from ./boost/python/object_core.hpp:14,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/exec.hpp:8,
                 from libs/python/src/exec.cpp:6:
./boost/python/call.hpp: In function ‘typename boost::python::detail::returnable<T>::type boost::python::call(PyObject*, boost::type<T>*)’:
./boost/python/call.hpp:62:28: warning: ‘PyObject* PyEval_CallFunction(PyObject*, const char*, ...)’ is deprecated [-Wdeprecated-declarations]
   62 |     PyObject* const result =
      |         ~~~~~~~~~~~~~~~~~~~^
   63 |         PyEval_CallFunction(
      |         ~~~~~~~~~~~~~~~~~~~~
   64 |             callable
      |             ~~~~~~~~        
   65 |             , const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   66 |             BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FAST_ARG_TO_PYTHON_GET, nil)
      |             ~               
In file included from /usr/include/python3.10/Python.h:130,
                 from ./boost/python/detail/wrap_python.hpp:178,
                 from ./boost/python/detail/prefix.hpp:13,
                 from ./boost/python/ssize_t.hpp:9,
                 from ./boost/python/object.hpp:8,
                 from ./boost/python/exec.hpp:8,
                 from libs/python/src/exec.cpp:6:
/usr/include/python3.10/ceval.h:26:43: note: declared here
   26 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction(
      |                                           ^~~~~~~~~~~~~~~~~~~
libs/python/src/exec.cpp: In function ‘boost::python::api::object boost::python::exec_file(const char*, boost::python::api::object, boost::python::api::object)’:
libs/python/src/exec.cpp:109:14: error: ‘_Py_fopen’ was not declared in this scope; did you mean ‘_Py_wfopen’?
  109 |   FILE *fs = _Py_fopen(f, "r");
      |              ^~~~~~~~~
      |              _Py_wfopen

As it seems to be an issue somewhere in a C++ file, i assume the issue is about Python and/or g++ versions used.

  • Python 3.10
  • g++ 11

What was your setup to play with the ALFA dataset ?

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.