Skip to content

Install not working with Python 3.8.5 #121

Description

@ScrapeFlare

Last few lines of error:

scrapely/_htmlpage.c:333:75: note: in definition of macro ‘__Pyx_PyCode_New’ 333 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.8/compile.h:5, from /usr/include/python3.8/Python.h:138, from scrapely/_htmlpage.c:19: /usr/include/python3.8/code.h:122:28: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 122 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ scrapely/_htmlpage.c:333:11: error: too many arguments to function ‘PyCode_New’ 333 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ scrapely/_htmlpage.c:11442:15: note: in expansion of macro ‘__Pyx_PyCode_New’ 11442 | py_code = __Pyx_PyCode_New( | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.8/compile.h:5, from /usr/include/python3.8/Python.h:138, from scrapely/_htmlpage.c:19: /usr/include/python3.8/code.h:122:28: note: declared here 122 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-iy634a0o/scrapely/setup.py'"'"'; __file__='"'"'/tmp/pip-install-iy634a0o/scrapely/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-o5t_b1tg/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pijus/.local/include/python3.8/scrapely Check the logs for full command output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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