Skip to content

64Bit Python required for files bigger than 2,147,483,647 byte #1485

Open
@mietzen

Description

@mietzen

Environment Details (include every applicable attribute)

  • Operating System+version: Windows 10
  • Compiler+version: -
  • Conan version: 1.12.3, latest
  • Python version: 3.8 (default download 32 Bit!)

Steps to reproduce (Include if Applicable)

Try to upload a conan.tar.gz bigger than 2147483647 byte with Python 32 Bit

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

Error uploading file: conan_package.tgz, 'cannot fit 'int' into an index-sized integer'

In /Lib/site-packages/requests/sessions.py:512 the constructor of Request queries the length of data

        req = Request(
            method=method.upper(),
            url=url,
            headers=headers,
            files=files,
            data=data or {},
            json=json,
            params=params or {},
            auth=auth,
            cookies=cookies,
            hooks=hooks,
        )

which will return the above error on a 32-Bit Python if the value is bigger than 2147483647

I've also tested this with the latest version of conan. Installing 64-Bit Python solves this Issue. Since for Windows you get a 32-Bit Python by default it would be great to explicitly mentions to install Python 3 64-Bit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions