question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Adding AWS-CPP-SDK fails on Linux

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version: Linux thebeast 5.4.0-105-generic Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Compiler+version: g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
  • Conan version: 1.47.0
  • Python version: 3.8.1

Steps to reproduce (Include if Applicable)

Use the conanfile below. The important bit is the text-to-speech option being set to True.

from conans import ConanFile, CMake


class SampleFile(ConanFile):
    name = "SampleFile"
    settings = "os", "compiler", "build_type", "arch"
    exports = "*"
    build_policy = "missing"
    requires = (
        "aws-sdk-cpp/1.9.100",
    )
    generators = "cmake"
    default_options = { "libcurl:with_ntlm": False,
                        "aws-sdk-cpp:sns": True,
                        "aws-sdk-cpp:text-to-speech": True,
                      }

    def build(self):
        cmake = CMake(self)
        self.run(f"cmake --build . {cmake.build_config} -j8")

Run the install command:

conan install .. --build=missing

Logs (Executed commands with output) (Include/Attach if Applicable)

Downloading pulseaudio-14.2.tar.xz completed [1905.57k]

ERROR: pulseaudio/14.2: Error in source() method, line 89 tools.get(**self.conan_data[“sources”][self.version], strip_root=True, destination=self._source_subfolder) ReadError: file could not be opened successfully

Root Cause

The downloaded pulseaudio file pulseaudio-14.2.tar.xz eventually gets handed to gzip to be opened, but it fails due to the magic number check in gzip.py:

    def _read_gzip_header(self):
        magic = self._fp.read(2)
        if magic == b'':
            return False

        if magic != b'\037\213':
            raise BadGzipFile('Not a gzipped file (%r)' % magic)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ayeganovcommented, Apr 8, 2022

@SSE4 you nailed it! When I don’t have lzma it fails.

1reaction
ayeganovcommented, Apr 6, 2022

@lasote yes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting build issues - AWS SDK for C++
Troubleshooting tips for building your AWS SDK for C++ application with CMake. ... CMake raises the following error if it cannot find the...
Read more >
AWS C++ SDK throws timeout error for S3 GetObject on a ...
I use AWS SDK for C++ on Windows and Linux environments. The task is to get an object's body:
Read more >
Building the Amazon SDK for C++ on Linux/macOS
Prerequisites. You need a minimum of 4 GB of RAM to build some of the larger Amazon clients. The SDK might fail to...
Read more >
Problem enabling exporting to Kinesis. - Help
Installed AWS sdk for Kinesis Recompiled netdata. Configured exporting. No data is showing up in Kinesis and I have this error in the...
Read more >
AWS SDK Build Errors - TileDB Forum
the detection logic was flawed in the version we currently use for dev · it is looking at an older version if AWS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found