Code Monkey home page Code Monkey logo

waveletbuffer's People

Contributors

aschenbecherwespe avatar atimin avatar ekaterinapocherevina avatar victor1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

waveletbuffer's Issues

Bug: Failed parse data: Invalid element size detected

What happened?

While trying to download data error happens.

Output from that snippet:

Starting download from 2022-11-17 11:30:00 to 2022-11-17 11:30:01 UTC
topics are: ['aufwickler-data', 'camera-1', 'cpu', 'damage-1', 'debug-camera-1', 'disk', 'kernel', 'mem', 'net', 'netstat', 'processes', 'rezeptmanager-data', 'swap', 'system', 'temp', 'trigger']
dict is: ['camera-1/1668684600200.dp', 'camera-1/1668684600402.dp', 'camera-1/1668684600603.dp', 'camera-1/1668684600805.dp']
image 0,  package: <drift_client.drift_data_package.DriftDataPackage object at 0x000001CD10E23D30> downloading
Failed parse data: Invalid element size detected
Traceback (most recent call last):
  File "E:\bbraun_onsite\bbraun_download.py", line 79, in <module>
    get_data(start_utc_time_stripped)
  File "E:\bbraun_onsite\bbraun_download.py", line 25, in get_data
    raw_img = package.as_np()
  File "E:\bbraun_onsite\.venv\lib\site-packages\drift_client\drift_data_package.py", line 16, in dec
    return func(self)
  File "E:\bbraun_onsite\.venv\lib\site-packages\drift_client\drift_data_package.py", line 120, in as_np
    return self.as_buffer().compose(scale_factor)
AttributeError: 'NoneType' object has no attribute 'compose'

Version

0.2.1

OS

Windows

Programming Language

No response

Snippet to repeat the bug

def get_data(start_time):
    client = DriftClient("tesa-1d4.local", os.getenv("DRIFT_PASSWORD"))
    topics = ["camera-1"]
    end_time = start_time + timedelta(seconds = 1)

    print(f'Starting download from {start_time} to {end_time} UTC')
    print(f'topics are: {client.get_topics()}')

    for topic in topics:
        packages = client.get_package_names(topic, start_time.strftime("%Y-%m-%d %H:%M:%S"), end_time.strftime("%Y-%m-%d %H:%M:%S"))
        print(f'dict is: {packages}')

        for i, package in enumerate(packages):
            package = client.get_item(str(package))
            if package.status_code == 0:
                print(f'image {i},  package: {package} downloading')
                raw_img = package.as_np()

Logs

No response

Attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Error in sdist build

What happened?

Could not find conan

Version

last

OS

Linux

Programming Language

Python

Snippet to repeat the bug

No response

Logs

No response

Attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Test bug

What happened?

This is just testing

Version

0.1.0

OS

Linux

Programming Language

Python

Snippet to repeat the bug

import logs

Logs

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Feature: Improve License page

Current problem

The page ins't informative

Possible solution

  1. Add a link to each license
  2. Show WaveletBuffer's license.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Bug: Wrong CalculateMaxDecompositionSteps() for kNone

What happened?

For kNone function CalculateMaxDecompositionSteps() return nan

Version

last

OS

Linux

Programming Language

C++

Snippet to repeat the bug

No response

Logs

No response

Attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

pip installation fails on MacOS

With the following output:

DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting wavelet-buffer
  Downloading wavelet-buffer-0.1.0.tar.gz (12 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: wavelet-buffer
  Building wheel for wavelet-buffer (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/[email protected]/bin/python3.9 /usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/tmp88k4e3n4
       cwd: /private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a
  Complete output (88 lines):
  Not searching for unused variables given on the command line.
  -- The C compiler identification is AppleClang 13.0.0.13000027
  -- 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
  -- The CXX compiler identification is AppleClang 13.0.0.13000027
  -- 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
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a/_cmake_test_compile/build
  -- The C compiler identification is AppleClang 13.0.0.13000027
  -- The CXX compiler identification is AppleClang 13.0.0.13000027
  -- 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
  CMake Error at CMakeLists.txt:5 (add_subdirectory):
    The source directory
  
      /private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_
  
    does not contain a CMakeLists.txt file.
  
  
  '/usr/local/Cellar/[email protected]/3.9.7/bin/python3.9' '-c' 'import pybind11; print(pybind11.get_cmake_dir())'
  -- Found PythonInterp: /usr/local/Cellar/[email protected]/3.9.7/bin/python3.9 (found version "3.9.7")
  -- Found PythonLibs: /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib
  -- Performing Test HAS_FLTO
  -- Performing Test HAS_FLTO - Success
  -- Performing Test HAS_FLTO_THIN
  -- Performing Test HAS_FLTO_THIN - Success
  -- Found pybind11: /private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-build-env-8v3feplv/overlay/lib/python3.9/site-packages/pybind11/include (found version "2.9.2")
  -- Configuring incomplete, errors occurred!
  See also "/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a/_skbuild/macosx-12.0-x86_64-3.9/cmake-build/CMakeFiles/CMakeOutput.log".
  See also "/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a/_skbuild/macosx-12.0-x86_64-3.9/cmake-build/CMakeFiles/CMakeError.log".
    File "/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-build-env-8v3feplv/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 637, in setup
      env = cmkr.configure(
    File "/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-build-env-8v3feplv/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 328, in configure
      raise SKBuildError(
  
  
  --------------------------------------------------------------------------------
  -- Trying "Ninja" generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying "Ninja" generator - success
  --------------------------------------------------------------------------------
  
  Configuring Project
    Working directory:
      /private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a/_skbuild/macosx-12.0-x86_64-3.9/cmake-build
    Command:
      cmake /private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a/_skbuild/macosx-12.0-x86_64-3.9/cmake-install/src/wavelet_buffer -DPYTHON_VERSION_STRING:STRING=3.9.7 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-build-env-8v3feplv/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DPython3_EXECUTABLE:FILEPATH=/usr/local/Cellar/[email protected]/3.9.7/bin/python3.9 -DPython3_INCLUDE_DIR:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -DPython3_LIBRARY:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib -DPython3_NumPy_INCLUDE_DIRS:PATH=/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -DPython_EXECUTABLE:FILEPATH=/usr/local/Cellar/[email protected]/3.9.7/bin/python3.9 -DPython_INCLUDE_DIR:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -DPython_LIBRARY:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib -DPython_NumPy_INCLUDE_DIRS:PATH=/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -DPYTHON_EXECUTABLE:FILEPATH=/usr/local/Cellar/[email protected]/3.9.7/bin/python3.9 -DPYTHON_INCLUDE_DIR:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -DPYTHON_LIBRARY:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib -DPYTHON_NumPy_INCLUDE_DIRS:PATH=/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -DCMAKE_MAKE_PROGRAM:FILEPATH=/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-build-env-8v3feplv/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=12.0 -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64
  
  Traceback (most recent call last):
  
  An error occurred while configuring with CMake.
    Command:
      cmake /private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a/_skbuild/macosx-12.0-x86_64-3.9/cmake-install/src/wavelet_buffer -DPYTHON_VERSION_STRING:STRING=3.9.7 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-build-env-8v3feplv/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DPython3_EXECUTABLE:FILEPATH=/usr/local/Cellar/[email protected]/3.9.7/bin/python3.9 -DPython3_INCLUDE_DIR:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -DPython3_LIBRARY:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib -DPython3_NumPy_INCLUDE_DIRS:PATH=/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -DPython_EXECUTABLE:FILEPATH=/usr/local/Cellar/[email protected]/3.9.7/bin/python3.9 -DPython_INCLUDE_DIR:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -DPython_LIBRARY:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib -DPython_NumPy_INCLUDE_DIRS:PATH=/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -DPYTHON_EXECUTABLE:FILEPATH=/usr/local/Cellar/[email protected]/3.9.7/bin/python3.9 -DPYTHON_INCLUDE_DIR:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -DPYTHON_LIBRARY:PATH=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib -DPYTHON_NumPy_INCLUDE_DIRS:PATH=/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -DCMAKE_MAKE_PROGRAM:FILEPATH=/private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-build-env-8v3feplv/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=12.0 -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64
    Source directory:
      /private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a
    Working directory:
      /private/var/folders/8g/1c8plht92j10yc_fx9904wg40000gq/T/pip-install-n_xldp0_/wavelet-buffer_d66d912b984149f0b139a2f3d91a640a/_skbuild/macosx-12.0-x86_64-3.9/cmake-build
  Please see CMake's output for more information.
  ----------------------------------------
  ERROR: Failed building wheel for wavelet-buffer
Failed to build wavelet-buffer
ERROR: Could not build wheels for wavelet-buffer which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.2.4; however, version 22.1.2 is available.
You should consider upgrading via the '/usr/local/opt/[email protected]/bin/python3.9 -m pip install --upgrade pip' command.

Bug: Conan package fails at building from sources

What happened?

Conan can't build a package from sources:

https://github.com/panda-official/DriftProtocol/actions/runs/3704844376/jobs/6277996556

Version

0.5.0

OS

Linux

Programming Language

C++

Snippet to repeat the bug

No response

Logs

Use local sources: /home/runner/work/DriftProtocol/DriftProtocol/cpp/..
wavelet_buffer/0.5.0@drift/stable: Copying sources to build folder
wavelet_buffer/0.5.0@drift/stable: Building your package in /home/runner/.conan/data/wavelet_buffer/0.5.0/drift/stable/build/ff06e540f1cb5e90ff7e57ecae41b12473fcd26d
wavelet_buffer/0.5.0@drift/stable: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
wavelet_buffer/0.5.0@drift/stable: Generator 'CMakeDeps' calling 'generate()'
wavelet_buffer/0.5.0@drift/stable: Calling generate()
wavelet_buffer/0.5.0@drift/stable: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
wavelet_buffer/0.5.0@drift/stable: Preset 'release' added to CMakePresets.json. Invoke it manually using 'cmake --preset release'
wavelet_buffer/0.5.0@drift/stable: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/home/runner/.conan/data/wavelet_buffer/0.5.0/drift/stable/build/ff06e540f1cb5e90ff7e57ecae41b12473fcd26d/build/generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
wavelet_buffer/0.5.0@drift/stable: Aggregating env generators
wavelet_buffer/0.5.0@drift/stable: Calling build()
wavelet_buffer/0.5.0@drift/stable: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/runner/.conan/data/wavelet_buffer/0.5.0/drift/stable/build/ff06e540f1cb5e90ff7e57ecae41b12473fcd26d/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/runner/.conan/data/wavelet_buffer/0.5.0/drift/stable/package/ff06e540f1cb5e90ff7e57ecae41b12473fcd26d" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/runner/.conan/data/wavelet_buffer/0.5.0/drift/stable/build/ff06e540f1cb5e90ff7e57ecae41b12473fcd26d/."
CMake Warning:
  Ignoring extra path from command line:

   "/home/runner/.conan/data/wavelet_buffer/0.5.0/drift/stable/build/ff06e540f1cb5e90ff7e57ecae41b12473fcd26d/."


CMake Error: The source directory "/home/runner/.conan/data/wavelet_buffer/0.5.0/drift/stable/build/ff06e540f1cb5e90ff7e57ecae41b12473fcd26d" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
wavelet_buffer/0.5.0@drift/stable: 
wavelet_buffer/0.5.0@drift/stable: ERROR: Package 'ff06e540f1cb5e90ff7e57ecae41b12473fcd26d' build failed
wavelet_buffer/0.5.0@drift/stable: WARN: Build folder /home/runner/.conan/data/wavelet_buffer/0.5.0/drift/stable/build/ff06e540f1cb5e90ff7e57ecae41b12473fcd26d/build/Release
ERROR: wavelet_buffer/0.5.0@drift/stable: Error in build() method, line 76
	cmake.configure()

Attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Bug: Compilation error for Ubuntu 22.04

What happened?

I wanted to use WaveletBuffer on Ubuntu 22.04, but I got a compilation error from boost. See logs below.

I tried boost 1.73 and the 1.79. The same problem. It works perfectly for WaveletBuffer v0.2.0 so looks like the bug was introduced when we ported the library on Windows.

Additional info:

  • GCC 11.2
  • conan 1.51.1
  • cmake 3.23.3

Version

v0.3.0

OS

Linux

Programming Language

C++

Snippet to repeat the bug

No response

Logs

[ 90%] Building CXX object CMakeFiles/wavelet_buffer.dir/sources/img/jpeg_codecs.cc.o
In file included from /home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/read.hpp:13,
                 from /home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg.hpp:11,
                 from /home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/wavelet_buffer/img/jpeg_codecs.h:13,
                 from /home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/sources/img/jpeg_codecs.cc:3:
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:144:35: error: expected unqualified-id before ‘)’ token
  144 |     image_read_settings<jpeg_tag>()
      |                                   ^
/home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/sources/img/jpeg_codecs.cc: In member function ‘virtual bool drift::img::GrayJpegCodec::Decode(const string&, drift::SignalN2D*, size_t) const’:
/home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/sources/img/jpeg_codecs.cc:192:41: error: no matching function for call to ‘boost::gil::image_read_settings<boost::gil::jpeg_tag>::image_read_settings()’
  192 |   bg::image_read_settings<bg::jpeg_tag> read_settings;
      |                                         ^~~~~~~~~~~~~
In file included from /home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/read.hpp:13,
                 from /home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg.hpp:11,
                 from /home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/wavelet_buffer/img/jpeg_codecs.h:13,
                 from /home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/sources/img/jpeg_codecs.cc:3:
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:153:5: note: candidate: ‘boost::gil::image_read_settings<boost::gil::jpeg_tag>::image_read_settings(const point_t&, const point_t&, boost::gil::property_base<J_DCT_METHOD>::type)’
  153 |     image_read_settings( const point_t&        top_left
      |     ^~~~~~~~~~~~~~~~~~~
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:153:5: note:   candidate expects 3 arguments, 0 provided
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:141:8: note: candidate: ‘constexpr boost::gil::image_read_settings<boost::gil::jpeg_tag>::image_read_settings(const boost::gil::image_read_settings<boost::gil::jpeg_tag>&)’
  141 | struct image_read_settings< jpeg_tag > : public image_read_settings_base
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:141:8: note:   candidate expects 1 argument, 0 provided
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:141:8: note: candidate: ‘constexpr boost::gil::image_read_settings<boost::gil::jpeg_tag>::image_read_settings(boost::gil::image_read_settings<boost::gil::jpeg_tag>&&)’
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:141:8: note:   candidate expects 1 argument, 0 provided
In file included from /home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/read.hpp:21,
                 from /home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg.hpp:11,
                 from /home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/wavelet_buffer/img/jpeg_codecs.h:13,
                 from /home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/sources/img/jpeg_codecs.cc:3:
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/io/make_reader.hpp: In instantiation of ‘typename boost::gil::get_reader<String, FormatTag, ConversionPolicy>::type boost::gil::make_reader(Device&, const FormatTag&, const ConversionPolicy&, typename std::enable_if<typename boost::mp11::detail::mp_and_impl<boost::mp11::mp_list<boost::gil::detail::is_adaptable_input_device<FormatTag, Device, void>, boost::gil::is_format_tag<FormatTag> >, void>::type::value>::type*) [with Device = std::__cxx11::basic_stringstream<char>; FormatTag = boost::gil::jpeg_tag; ConversionPolicy = boost::gil::detail::read_and_no_convert; typename boost::gil::get_reader<String, FormatTag, ConversionPolicy>::type = boost::gil::reader<boost::gil::detail::istream_device<boost::gil::jpeg_tag>, boost::gil::jpeg_tag, boost::gil::detail::read_and_no_convert>; typename std::enable_if<typename boost::mp11::detail::mp_and_impl<boost::mp11::mp_list<boost::gil::detail::is_adaptable_input_device<FormatTag, Device, void>, boost::gil::is_format_tag<FormatTag> >, void>::type::value>::type = void; typename boost::mp11::detail::mp_and_impl<boost::mp11::mp_list<boost::gil::detail::is_adaptable_input_device<FormatTag, Device, void>, boost::gil::is_format_tag<FormatTag> >, void>::type = std::integral_constant<bool, true>]’:
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/io/read_image.hpp:108:34:   required from ‘void boost::gil::read_image(Device&, Image&, const FormatTag&, typename std::enable_if<typename boost::mp11::detail::mp_and_impl<boost::mp11::mp_list<boost::gil::detail::is_read_device<FormatTag, Device, void>, boost::gil::is_format_tag<FormatTag>, boost::gil::is_read_supported<typename boost::gil::get_pixel_type<typename Image::view_t>::type, FormatTag> >, void>::type::value>::type*) [with Device = std::__cxx11::basic_stringstream<char>; Image = boost::gil::image<boost::gil::pixel<unsigned char, boost::gil::layout<boost::mp11::mp_list<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t> > >, false, std::allocator<unsigned char> >; FormatTag = boost::gil::jpeg_tag; typename std::enable_if<typename boost::mp11::detail::mp_and_impl<boost::mp11::mp_list<boost::gil::detail::is_read_device<FormatTag, Device, void>, boost::gil::is_format_tag<FormatTag>, boost::gil::is_read_supported<typename boost::gil::get_pixel_type<typename Image::view_t>::type, FormatTag> >, void>::type::value>::type = void; typename boost::mp11::detail::mp_and_impl<boost::mp11::mp_list<boost::gil::detail::is_read_device<FormatTag, Device, void>, boost::gil::is_format_tag<FormatTag>, boost::gil::is_read_supported<typename boost::gil::get_pixel_type<typename Image::view_t>::type, FormatTag> >, void>::type = std::integral_constant<bool, true>; typename boost::gil::get_pixel_type<typename Image::view_t>::type = boost::gil::pixel<unsigned char, boost::gil::layout<boost::mp11::mp_list<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t> > >; typename Image::view_t = boost::gil::image_view<boost::gil::memory_based_2d_locator<boost::gil::memory_based_step_iterator<boost::gil::pixel<unsigned char, boost::gil::layout<boost::mp11::mp_list<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t> > >*> > >]’
/home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/sources/img/jpeg_codecs.cc:41:19:   required from here
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/io/make_reader.hpp:193:30: error: no matching function for call to ‘boost::gil::image_read_settings<boost::gil::jpeg_tag>::image_read_settings()’
  193 |     return make_reader(file, image_read_settings<FormatTag>(), cc);
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/read.hpp:13,
                 from /home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg.hpp:11,
                 from /home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/wavelet_buffer/img/jpeg_codecs.h:13,
                 from /home/atimin/.conan/data/wavelet_buffer/0.3.0/drift/stable/build/8a8797b247eb9b9dbedcb32024a14baf27aab4d4/sources/img/jpeg_codecs.cc:3:
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:153:5: note: candidate: ‘boost::gil::image_read_settings<boost::gil::jpeg_tag>::image_read_settings(const point_t&, const point_t&, boost::gil::property_base<J_DCT_METHOD>::type)’
  153 |     image_read_settings( const point_t&        top_left
      |     ^~~~~~~~~~~~~~~~~~~
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:153:5: note:   candidate expects 3 arguments, 0 provided
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:141:8: note: candidate: ‘constexpr boost::gil::image_read_settings<boost::gil::jpeg_tag>::image_read_settings(const boost::gil::image_read_settings<boost::gil::jpeg_tag>&)’
  141 | struct image_read_settings< jpeg_tag > : public image_read_settings_base
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:141:8: note:   candidate expects 1 argument, 0 provided
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:141:8: note: candidate: ‘constexpr boost::gil::image_read_settings<boost::gil::jpeg_tag>::image_read_settings(boost::gil::image_read_settings<boost::gil::jpeg_tag>&&)’
/home/atimin/.conan/data/boost/1.79.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/gil/extension/io/jpeg/tags.hpp:141:8: note:   candidate expects 1 argument, 0 provided
gmake[2]: *** [CMakeFiles/wavelet_buffer.dir/build.make:174: CMakeFiles/wavelet_buffer.dir/sources/img/jpeg_codecs.cc.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/wavelet_buffer.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
wavelet_buffer/0.3.0@drift/stable:

Attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Bug: pip install git+https://github.com/panda-official/WaveletBuffer.git crashes on Ubuntu 20.04

What happened?

I can't install WaveletBuffer from git:

pip install git+https://github.com/panda-official/WaveletBuffer.git 

Version

develop (8ee1b57)

OS

Linux

Programming Language

Python, C++

Snippet to repeat the bug

No response

Logs

pip install git+https://github.com/panda-official/WaveletBuffer.git
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/panda-official/WaveletBuffer.git
  Cloning https://github.com/panda-official/WaveletBuffer.git to /tmp/pip-req-build-4gw0xrbe
  Running command git clone --filter=blob:none --quiet https://github.com/panda-official/WaveletBuffer.git /tmp/pip-req-build-4gw0xrbe
  Resolved https://github.com/panda-official/WaveletBuffer.git to commit 8ee1b5714e5ff859d85d1af4607c707dbedc3f1b
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: wavelet-buffer
  Building wheel for wavelet-buffer (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for wavelet-buffer (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [126 lines of output]
      Not searching for unused variables given on the command line.
      -- The C compiler identification is GNU 9.4.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- The CXX compiler identification is GNU 9.4.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /tmp/pip-req-build-4gw0xrbe/_cmake_test_compile/build
      -- The C compiler identification is GNU 9.4.0
      -- The CXX compiler identification is GNU 9.4.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /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: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Downloading conan.cmake from https://github.com/conan-io/cmake-conan
      -- Conan: checking conan executable
      -- Conan: Found program /tmp/pip-build-env-wq7b4e5g/overlay/bin/conan
      -- Conan: Version found Conan version 1.43.0
      -- Conan executing: /tmp/pip-build-env-wq7b4e5g/overlay/bin/conan install . --remote conancenter --build missing --settings build_type=Release --settings compiler=gcc --settings compiler.version=9 --settings compiler.libcxx=libstdc++11
      Configuration:
      [settings]
      arch=x86_64
      arch_build=x86_64
      build_type=Release
      compiler=gcc
      compiler.libcxx=libstdc++11
      compiler.version=9
      os=Linux
      os_build=Linux
      [options]
      [build_requires]
      [env]
      
      openblas/0.3.20: Retrieving from server 'conancenter'
      openblas/0.3.20: Trying with 'conancenter'...
      Downloading conanmanifest.txt
      Downloading conanfile.py
      Downloading conan_export.tgz
      openblas/0.3.20: Downloaded recipe revision 0
      blaze/3.8: Retrieving from server 'conancenter'
      blaze/3.8: Trying with 'conancenter'...
      Downloading conanmanifest.txt
      Downloading conanfile.py
      Downloading conan_export.tgz
      blaze/3.8: Downloaded recipe revision 0
      libjpeg-turbo/2.1.2: Retrieving from server 'conancenter'
      libjpeg-turbo/2.1.2: Trying with 'conancenter'...
      Downloading conanmanifest.txt
      Downloading conanfile.py
      Downloading conan_export.tgz
      libjpeg-turbo/2.1.2: Downloaded recipe revision 0
      ERROR: libjpeg-turbo/2.1.2: Cannot load recipe.
      Error loading conanfile at '/home/atimin/.conan/data/libjpeg-turbo/2.1.2/_/_/export/conanfile.py': Unable to load conanfile in /home/atimin/.conan/data/libjpeg-turbo/2.1.2/_/_/export/conanfile.py
        File "/usr/lib/python3.8/imp.py", line 171, in load_source
          module = _load(spec)
        File "<frozen importlib._bootstrap>", line 702, in _load
        File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 848, in exec_module
        File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
        File "/home/atimin/.conan/data/libjpeg-turbo/2.1.2/_/_/export/conanfile.py", line 3, in <module>
          from conan.tools.microsoft import is_msvc
      ImportError: cannot import name 'is_msvc' from 'conan.tools.microsoft' (/usr/local/lib/python3.8/dist-packages/conan/tools/microsoft/__init__.py)
      
      CMake Error at /tmp/pip-req-build-4gw0xrbe/_skbuild/linux-x86_64-3.8/cmake-build/conan.cmake:651 (message):
        Conan install failed='1'
      Call Stack (most recent call first):
        /tmp/pip-req-build-4gw0xrbe/CMakeLists.txt:36 (conan_cmake_install)
      
      
      -- Configuring incomplete, errors occurred!
      See also "/tmp/pip-req-build-4gw0xrbe/_skbuild/linux-x86_64-3.8/cmake-build/CMakeFiles/CMakeOutput.log".
        File "/tmp/pip-build-env-wq7b4e5g/overlay/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 637, in setup
          env = cmkr.configure(
        File "/tmp/pip-build-env-wq7b4e5g/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 328, in configure
          raise SKBuildError(
      
      
      --------------------------------------------------------------------------------
      -- Trying "Ninja" generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying "Ninja" generator - success
      --------------------------------------------------------------------------------
      
      Configuring Project
        Working directory:
          /tmp/pip-req-build-4gw0xrbe/_skbuild/linux-x86_64-3.8/cmake-build
        Command:
          cmake /tmp/pip-req-build-4gw0xrbe/python -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-req-build-4gw0xrbe/_skbuild/linux-x86_64-3.8/cmake-install/python/src/wavelet_buffer -DPYTHON_VERSION_STRING:STRING=3.8.10 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-wq7b4e5g/overlay/lib/python3.8/site-packages/skbuild/resources/cmake -DPython3_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPython3_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPython3_NumPy_INCLUDE_DIRS:PATH=/usr/local/lib/python3.8/dist-packages/numpy/core/include -DPython_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPython_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPython_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPython_NumPy_INCLUDE_DIRS:PATH=/usr/local/lib/python3.8/dist-packages/numpy/core/include -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPYTHON_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPYTHON_NumPy_INCLUDE_DIRS:PATH=/usr/local/lib/python3.8/dist-packages/numpy/core/include -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-wq7b4e5g/overlay/lib/python3.8/site-packages/ninja/data/bin/ninja -DCMAKE_BUILD_TYPE:STRING=Release
      
      Traceback (most recent call last):
      
      An error occurred while configuring with CMake.
        Command:
          cmake /tmp/pip-req-build-4gw0xrbe/python -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-req-build-4gw0xrbe/_skbuild/linux-x86_64-3.8/cmake-install/python/src/wavelet_buffer -DPYTHON_VERSION_STRING:STRING=3.8.10 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-wq7b4e5g/overlay/lib/python3.8/site-packages/skbuild/resources/cmake -DPython3_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPython3_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPython3_NumPy_INCLUDE_DIRS:PATH=/usr/local/lib/python3.8/dist-packages/numpy/core/include -DPython_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPython_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPython_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPython_NumPy_INCLUDE_DIRS:PATH=/usr/local/lib/python3.8/dist-packages/numpy/core/include -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPYTHON_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPYTHON_NumPy_INCLUDE_DIRS:PATH=/usr/local/lib/python3.8/dist-packages/numpy/core/include -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-wq7b4e5g/overlay/lib/python3.8/site-packages/ninja/data/bin/ninja -DCMAKE_BUILD_TYPE:STRING=Release
        Source directory:
          /tmp/pip-req-build-4gw0xrbe/python
        Working directory:
          /tmp/pip-req-build-4gw0xrbe/_skbuild/linux-x86_64-3.8/cmake-build
      Please see CMake's output for more information.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for wavelet-buffer
Failed to build wavelet-buffer
ERROR: Could not build wheels for wavelet-buffer, which is required to install pyproject.toml-based projects


### Attachments

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Changes: Dependencies between CI jobs

Current problem

Currently, most of the jobs start independently in the begging . It would be more efficient, they have dependencies. For example, it doesn't make sense to build conan package if tests fail.

Possible solution

We could make the chain of jobs:
For C++ part cpplint-> build_test-> conan
For Python cpplint-> build_test->pip->build_sdist+ build_wheels

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

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.