Skip to content

Note: httptools 0.0.13 from PyPI is incompatible with Python 3.9 #60

@malthejorgensen

Description

@malthejorgensen

Installing httptools v0.0.13 on Python 3.9 from PyPI (e.g. pip install httptools==0.0.13) doesn't work.

The relevant error output is this:

httptools/parser/parser.c:8977:52: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_9httptools_6parser_6parser_HttpParser.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
httptools/parser/parser.c:8988:59: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_9httptools_6parser_6parser_HttpRequestParser.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
httptools/parser/parser.c:9000:60: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_9httptools_6parser_6parser_HttpResponseParser.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
httptools/parser/parser.c:9009:45: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_9httptools_6parser_6parser_URL.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

Since released PyPI package versions are immutable this cannot be fixed.

You can simply use httptools v0.1.0 instead. If this for some odd reason isn't possible for you, you can regenarate parser.c from parser.pyx using Cython version 0.29.14 or later and then install.

This isn't a bug report. Just an observation for later users, posted here for posterity. Closing immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions