Git Product home page Git Product logo

python-libmagic's Introduction

python-libmagic

magic.h

Usage

import magic

with magic.Magic() as m:
    print m.from_buffer("hello") # => "text/plain"
import magic
import magic.flags

magic = magic.Magic()
mimetype = magic.from_buffer("\x89\x50\x4E\x47\x0D\x0A\x1A\x0A")
print mimetype # => "image/png"

mimetype = magic.from_file("/etc/passwd")
print mimetype # => "text/plain"

updated = magic.set_flags(magic.flags.MAGIC_NONE)
print updated # => True
mimetype = magic.from_file("demo.docx")
print mimetype # => "Microsoft Word 2007+"
magic.close() # don't forget about this

Installation

python-libmagic works on CPython 2.7/3.3+ and PyPy.

$ apt-get install libmagic-dev
$ pip install python-libmagic

License

Licensed under MIT license.

python-libmagic's People

Contributors

dveselov avatar tyrannosaurus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

python-libmagic's Issues

Missing "magic.h"

There's a missing "magic.h" in the cffi__x7681a35x54cebdac.c file under
AppData\Local\Programs\Python\Python37\Lib\site-packages\magic_pycache
.
This causes the compilation error when running python audioAnalysis.py and others.
Please help to resolve this issue.

Platform info:
OS: Window 10, x64
Python 3.7.x
VS2019 compiler
cffi version 1.12.3 (same problem with any earlier version such as 1.7.x)
magic version 0.4.15
python-libmagic version 0.4.0

Naming conflict with python-magic

Hello,
I'm the maintainer of the python-magic binding for libmagic. I've had a number of recent bug reports that seem to be due to users accidentally installing python-libmagic instead of python-magic. These packages are not compatible, but both use the magic module name, so their software breaks.

I realize this is a backwards-incompatible change but would you consider changing the name of the module shipped in your package? python-libmagic is widely used, and I'm already trying to work through a similar module naming conflict with the upstream libmagic distribution (apparently the magic name is too nice to pass up!). Thanks,

Adam

is there any plan to support cffi-1.14.0?

uccessfully built python-libmagic
Failed to build cffi
ERROR: cryptography 2.8 has requirement cffi!=1.11.3,>=1.8, but you'll have cffi 1.7.0 which is incompatible.

Installation fails on Garuda/Arch linux

running pip install python-libmagic gives this stderr output

Defaulting to user installation because normal site-packages is not writeable
Collecting python-libmagic
  Using cached python-libmagic-0.4.0.tar.gz (3.6 kB)
Collecting cffi==1.7.0
  Using cached cffi-1.7.0.tar.gz (400 kB)
Requirement already satisfied: pycparser in /usr/lib/python3.9/site-packages (from cffi==1.7.0->python-libmagic) (2.20)
Using legacy 'setup.py install' for python-libmagic, since package 'wheel' is not installed.
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Installing collected packages: cffi, python-libmagic
    Running setup.py install for cffi: started
    Running setup.py install for cffi: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4pw0ph7n/cffi_51878f6e4ed640de9d987187e8b01e45/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4pw0ph7n/cffi_51878f6e4ed640de9d987187e8b01e45/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-4zxi78s9/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/scott/.local/include/python3.9/cffi
         cwd: /tmp/pip-install-4pw0ph7n/cffi_51878f6e4ed640de9d987187e8b01e45/
    Complete output (254 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.9
    creating build/lib.linux-x86_64-3.9/cffi
    copying cffi/recompiler.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/verifier.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/__init__.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/lock.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/api.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/cparser.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/commontypes.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/model.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.9/cffi
    copying cffi/_embedding.h -> build/lib.linux-x86_64-3.9/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-x86_64-3.9
    creating build/temp.linux-x86_64-3.9/c
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -DUSE__THREAD -I/usr/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.9/c/_cffi_backend.o
    In file included from c/_cffi_backend.c:274:
    c/minibuffer.h: In function ‘mb_ass_slice’:
    c/minibuffer.h:66:5: warning: ‘PyObject_AsReadBuffer’ is deprecated [-Wdeprecated-declarations]
       66 |     if (PyObject_AsReadBuffer(other, &buffer, &buffer_len) < 0)
          |     ^~
    In file included from /usr/include/python3.9/Python.h:160,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/abstract.h:343:17: note: declared here
      343 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
          |                 ^~~~~~~~~~~~~~~~~~~~~
    In file included from c/_cffi_backend.c:277:
    c/file_emulator.h: In function ‘PyFile_AsFile’:
    c/file_emulator.h:54:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       54 |         mode = PyText_AsUTF8(ob_mode);
          |              ^
    In file included from c/_cffi_backend.c:281:
    c/wchar_helper.h: In function ‘_my_PyUnicode_AsSingleWideChar’:
    c/wchar_helper.h:83:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       83 |     Py_UNICODE *u = PyUnicode_AS_UNICODE(unicode);
          |     ^~~~~~~~~~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    In file included from c/_cffi_backend.c:281:
    c/wchar_helper.h:84:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       84 |     if (PyUnicode_GET_SIZE(unicode) == 1) {
          |     ^~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from c/_cffi_backend.c:281:
    c/wchar_helper.h:84:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       84 |     if (PyUnicode_GET_SIZE(unicode) == 1) {
          |     ^~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    In file included from c/_cffi_backend.c:281:
    c/wchar_helper.h:84:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       84 |     if (PyUnicode_GET_SIZE(unicode) == 1) {
          |     ^~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from c/_cffi_backend.c:281:
    c/wchar_helper.h: In function ‘_my_PyUnicode_SizeAsWideChar’:
    c/wchar_helper.h:99:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       99 |     Py_ssize_t length = PyUnicode_GET_SIZE(unicode);
          |     ^~~~~~~~~~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from c/_cffi_backend.c:281:
    c/wchar_helper.h:99:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       99 |     Py_ssize_t length = PyUnicode_GET_SIZE(unicode);
          |     ^~~~~~~~~~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    In file included from c/_cffi_backend.c:281:
    c/wchar_helper.h:99:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       99 |     Py_ssize_t length = PyUnicode_GET_SIZE(unicode);
          |     ^~~~~~~~~~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from c/_cffi_backend.c:281:
    c/wchar_helper.h: In function ‘_my_PyUnicode_AsWideChar’:
    c/wchar_helper.h:118:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      118 |     Py_UNICODE *u = PyUnicode_AS_UNICODE(unicode);
          |     ^~~~~~~~~~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    c/_cffi_backend.c: In function ‘cast_to_integer_or_char’:
    c/_cffi_backend.c:3331:26: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
     3331 |                          PyUnicode_GET_SIZE(ob), ct->ct_name);
          |                          ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    c/_cffi_backend.c:3331:26: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
     3331 |                          PyUnicode_GET_SIZE(ob), ct->ct_name);
          |                          ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    c/_cffi_backend.c:3331:26: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
     3331 |                          PyUnicode_GET_SIZE(ob), ct->ct_name);
          |                          ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    c/_cffi_backend.c: In function ‘b_complete_struct_or_union’:
    c/_cffi_backend.c:4251:17: warning: ‘PyUnicode_GetSize’ is deprecated [-Wdeprecated-declarations]
     4251 |                 do_align = PyText_GetSize(fname) > 0;
          |                 ^~~~~~~~
    In file included from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/unicodeobject.h:177:43: note: declared here
      177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
          |                                           ^~~~~~~~~~~~~~~~~
    c/_cffi_backend.c:4283:13: warning: ‘PyUnicode_GetSize’ is deprecated [-Wdeprecated-declarations]
     4283 |             if (PyText_GetSize(fname) == 0 &&
          |             ^~
    In file included from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/unicodeobject.h:177:43: note: declared here
      177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
          |                                           ^~~~~~~~~~~~~~~~~
    c/_cffi_backend.c:4353:17: warning: ‘PyUnicode_GetSize’ is deprecated [-Wdeprecated-declarations]
     4353 |                 if (PyText_GetSize(fname) > 0) {
          |                 ^~
    In file included from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/unicodeobject.h:177:43: note: declared here
      177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
          |                                           ^~~~~~~~~~~~~~~~~
    c/_cffi_backend.c: In function ‘prepare_callback_info_tuple’:
    c/_cffi_backend.c:5214:5: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
     5214 |     PyEval_InitThreads();
          |     ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.9/Python.h:154,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.9/ceval.h:130:37: note: declared here
      130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
          |                                     ^~~~~~~~~~~~~~~~~~
    c/_cffi_backend.c: In function ‘b_callback’:
    c/_cffi_backend.c:5255:5: warning: ‘ffi_prep_closure’ is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations]
     5255 |     if (ffi_prep_closure(closure, &cif_descr->cif,
          |     ^~
    In file included from c/_cffi_backend.c:15:
    /usr/include/ffi.h:347:1: note: declared here
      347 | ffi_prep_closure (ffi_closure*,
          | ^~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:106,
                     from c/_cffi_backend.c:2:
    c/ffi_obj.c: In function ‘_ffi_type’:
    /usr/include/python3.9/cpython/unicodeobject.h:767:29: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      767 | #define _PyUnicode_AsString PyUnicode_AsUTF8
          |                             ^~~~~~~~~~~~~~~~
    c/_cffi_backend.c:72:25: note: in expansion of macro ‘_PyUnicode_AsString’
       72 | # define PyText_AS_UTF8 _PyUnicode_AsString
          |                         ^~~~~~~~~~~~~~~~~~~
    c/ffi_obj.c:191:32: note: in expansion of macro ‘PyText_AS_UTF8’
      191 |             char *input_text = PyText_AS_UTF8(arg);
          |                                ^~~~~~~~~~~~~~
    c/lib_obj.c: In function ‘lib_build_cpython_func’:
    /usr/include/python3.9/cpython/unicodeobject.h:767:29: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      767 | #define _PyUnicode_AsString PyUnicode_AsUTF8
          |                             ^~~~~~~~~~~~~~~~
    c/_cffi_backend.c:72:25: note: in expansion of macro ‘_PyUnicode_AsString’
       72 | # define PyText_AS_UTF8 _PyUnicode_AsString
          |                         ^~~~~~~~~~~~~~~~~~~
    c/lib_obj.c:129:21: note: in expansion of macro ‘PyText_AS_UTF8’
      129 |     char *libname = PyText_AS_UTF8(lib->l_libname);
          |                     ^~~~~~~~~~~~~~
    c/lib_obj.c: In function ‘lib_build_and_cache_attr’:
    /usr/include/python3.9/cpython/unicodeobject.h:767:29: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      767 | #define _PyUnicode_AsString PyUnicode_AsUTF8
          |                             ^~~~~~~~~~~~~~~~
    c/_cffi_backend.c:71:24: note: in expansion of macro ‘_PyUnicode_AsString’
       71 | # define PyText_AsUTF8 _PyUnicode_AsString   /* PyUnicode_AsUTF8 in Py3.3 */
          |                        ^~~~~~~~~~~~~~~~~~~
    c/lib_obj.c:208:15: note: in expansion of macro ‘PyText_AsUTF8’
      208 |     char *s = PyText_AsUTF8(name);
          |               ^~~~~~~~~~~~~
    In file included from c/cffi1_module.c:16,
                     from c/_cffi_backend.c:6636:
    c/lib_obj.c: In function ‘lib_getattr’:
    c/lib_obj.c:506:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      506 |     p = PyText_AsUTF8(name);
          |       ^
    In file included from c/cffi1_module.c:19,
                     from c/_cffi_backend.c:6636:
    c/call_python.c: In function ‘_get_interpstate_dict’:
    c/call_python.c:20:30: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’}
       20 |     builtins = tstate->interp->builtins;
          |                              ^~
    c/call_python.c: In function ‘_ffi_def_extern_decorator’:
    c/call_python.c:73:11: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       73 |         s = PyText_AsUTF8(name);
          |           ^
    c/call_python.c: In function ‘_update_cache_to_call_python’:
    c/call_python.c:160:39: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’}
      160 |     new1 = PyThreadState_GET()->interp->modules;
          |                                       ^~
    c/call_python.c: In function ‘cffi_call_python’:
    c/call_python.c:235:63: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’}
      235 |         if (externpy->reserved1 != PyThreadState_GET()->interp->modules) {
          |                                                               ^~
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4pw0ph7n/cffi_51878f6e4ed640de9d987187e8b01e45/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4pw0ph7n/cffi_51878f6e4ed640de9d987187e8b01e45/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-4zxi78s9/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/scott/.local/include/python3.9/cffi Check the logs for full command output.

It looks like something changed in the CFFI library? I don't know.

Anyone have success building this as a lambda layer?

Working on getting magic to work in python on AWS Lambda. Have tried lots of remapping and the heart of the error seems to be fundamental to the container that the code is running in.

/lib64/libc.so.6: version `GLIBC_2.28' not found (required by /var/task/lib/libmagic.so.1)

Anyone have any solution around this?

Installation fails on Windows 10

Attempting install on Win10 with command pip install python-libmagic yields this big scary error

  Downloading python-libmagic-0.4.0.tar.gz (3.6 kB)
Collecting cffi==1.7.0
  Downloading cffi-1.7.0.tar.gz (400 kB)
     |████████████████████████████████| 400 kB 1.1 MB/s
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Using legacy 'setup.py install' for python-libmagic, since package 'wheel' is not installed.
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Installing collected packages: pycparser, cffi, python-libmagic
    Running setup.py install for cffi ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dakot\\AppData\\Local\\Temp\\pip-install-x4tmj_lo\\cffi_a30ee251dd38440897de680839750bbb\\setup.py'"'"'; __file__='"'"'C:\\Users\\dakot\\AppData\\Local\\Temp\\pip-install-x4tmj_lo\\cffi_a30ee251dd38440897de680839750bbb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\dakot\AppData\Local\Temp\pip-record-4c91ppsb\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python310\Include\cffi'
         cwd: C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\
    Complete output (216 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.10
    creating build\lib.win-amd64-3.10\cffi
    copying cffi\api.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\backend_ctypes.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\cffi_opcode.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\commontypes.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\cparser.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\ffiplatform.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\lock.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\model.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\recompiler.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\setuptools_ext.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\vengine_cpy.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\vengine_gen.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\verifier.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\__init__.py -> build\lib.win-amd64-3.10\cffi
    copying cffi\_cffi_include.h -> build\lib.win-amd64-3.10\cffi
    copying cffi\parse_c_type.h -> build\lib.win-amd64-3.10\cffi
    copying cffi\_embedding.h -> build\lib.win-amd64-3.10\cffi
    running build_ext
    building '_cffi_backend' extension
    creating build\temp.win-amd64-3.10
    creating build\temp.win-amd64-3.10\Release
    creating build\temp.win-amd64-3.10\Release\c
    creating build\temp.win-amd64-3.10\Release\c\libffi_msvc
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic/libffi_msvc -IC:\Python310\include -IC:\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcc/_cffi_backend.c /Fobuild\temp.win-amd64-3.10\Release\c/_cffi_backend.obj
    _cffi_backend.c
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\minibuffer.h(66): warning C4996: 'PyObject_AsReadBuffer': deprecated in 3.0
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\file_emulator.h(54): warning C4090: '=': different 'const' qualifiers
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\wchar_helper.h(83): warning C4996: 'PyUnicode_AsUnicode': deprecated in 3.3
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\wchar_helper.h(84): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\wchar_helper.h(99): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\wchar_helper.h(118): warning C4996: 'PyUnicode_AsUnicode': deprecated in 3.3
    c/_cffi_backend.c(315): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
    c/_cffi_backend.c(316): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
    c/_cffi_backend.c(352): error C2106: '=': left operand must be l-value
    c/_cffi_backend.c(355): error C2106: '=': left operand must be l-value
    c/_cffi_backend.c(938): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(947): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(957): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(993): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1007): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1385): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1386): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1388): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1398): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1399): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1401): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1420): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1515): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1517): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1537): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1540): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1865): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1870): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1884): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1933): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(1987): warning C4244: 'return': conversion from 'Py_hash_t' to 'long', possible loss of data
    c/_cffi_backend.c(3264): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(3358): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(3331): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
    c/_cffi_backend.c(3458): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(3792): error C2061: syntax error: identifier 'ssize_t'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_c'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_s'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_i'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_l'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ll'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_sc'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_uc'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_us'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ui'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ul'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ull'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_f'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_d'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ld'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_wc'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_b'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_i8'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_u8'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_i16'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_u16'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_i32'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_u32'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_i64'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_u64'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_il8'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ul8'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_il16'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ul16'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_il32'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ul32'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_il64'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ul64'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_if8'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_uf8'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_if16'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_uf16'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_if32'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_uf32'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_if64'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_uf64'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ip'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_up'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_im'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_um'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_pd'
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_sz'
    c/_cffi_backend.c(3804): error C2065: 'ssize_t': undeclared identifier
    c/_cffi_backend.c(3804): error C2037: left of 'y' specifies undefined struct/union 'aligncheck_ssz'
    c/_cffi_backend.c(3815): error C2059: syntax error: 'for'
    c/_cffi_backend.c(3815): error C2143: syntax error: missing '{' before '++'
    c/_cffi_backend.c(3815): error C2059: syntax error: '++'
    c/_cffi_backend.c(3815): error C2059: syntax error: ')'
    c/_cffi_backend.c(3829): error C2059: syntax error: 'if'
    c/_cffi_backend.c(3838): error C2059: syntax error: 'else'
    c/_cffi_backend.c(3855): error C2059: syntax error: 'else'
    c/_cffi_backend.c(3865): error C2099: initializer is not a constant
    c/_cffi_backend.c(3866): error C2040: 'td': 'int' differs in levels of indirection from 'CTypeDescrObject *'
    c/_cffi_backend.c(3867): error C2059: syntax error: 'if'
    c/_cffi_backend.c(3870): error C2143: syntax error: missing ')' before '->'
    c/_cffi_backend.c(3870): error C2143: syntax error: missing '{' before '->'
    c/_cffi_backend.c(3870): error C2059: syntax error: '->'
    c/_cffi_backend.c(3870): error C2059: syntax error: ')'
    c/_cffi_backend.c(3871): error C2143: syntax error: missing '{' before '->'
    c/_cffi_backend.c(3871): error C2059: syntax error: '->'
    c/_cffi_backend.c(3872): error C2143: syntax error: missing '{' before '->'
    c/_cffi_backend.c(3872): error C2059: syntax error: '->'
    c/_cffi_backend.c(3873): error C2143: syntax error: missing '{' before '->'
    c/_cffi_backend.c(3873): error C2059: syntax error: '->'
    c/_cffi_backend.c(3874): error C2143: syntax error: missing '{' before '->'
    c/_cffi_backend.c(3874): error C2059: syntax error: '->'
    c/_cffi_backend.c(3875): error C2059: syntax error: 'if'
    c/_cffi_backend.c(3879): error C2059: syntax error: 'else'
    c/_cffi_backend.c(3883): error C2143: syntax error: missing '{' before '->'
    c/_cffi_backend.c(3883): error C2059: syntax error: '->'
    c/_cffi_backend.c(3884): error C2040: 'unique_key': 'int [0]' differs in levels of indirection from 'const void *[1]'
    c/_cffi_backend.c(3885): error C2059: syntax error: 'return'
    c/_cffi_backend.c(3887): error C2143: syntax error: missing '{' before ':'
    c/_cffi_backend.c(3887): error C2059: syntax error: ':'
    c/_cffi_backend.c(3892): error C2059: syntax error: 'return'
    c/_cffi_backend.c(3893): error C2059: syntax error: '}'
    c/_cffi_backend.c(4027): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
    c/_cffi_backend.c(4018): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
    c/_cffi_backend.c(4039): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
    c/_cffi_backend.c(4384): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(4425): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(4433): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(4251): warning C4996: 'PyUnicode_GetSize': deprecated in 3.3
    c/_cffi_backend.c(4283): warning C4996: 'PyUnicode_GetSize': deprecated in 3.3
    c/_cffi_backend.c(4353): warning C4996: 'PyUnicode_GetSize': deprecated in 3.3
    c/_cffi_backend.c(4627): warning C4244: '=': conversion from 'Py_ssize_t' to 'unsigned short', possible loss of data    c/_cffi_backend.c(4742): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
    c/_cffi_backend.c(4746): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(4762): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
    c/_cffi_backend.c(4775): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
    c/_cffi_backend.c(4804): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(4854): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
    c/_cffi_backend.c(4939): warning C4244: 'function': conversion from 'Py_ssize_t' to 'long', possible loss of data
    c/_cffi_backend.c(5214): warning C4996: 'PyEval_InitThreads': deprecated in 3.9
    c/_cffi_backend.c(5364): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
    c/_cffi_backend.c(5475): error C2065: 'ssize_t': undeclared identifier
    c/_cffi_backend.c(5475): error C2146: syntax error: missing ';' before identifier 'index'
    c/_cffi_backend.c(5475): error C2065: 'index': undeclared identifier
    c/_cffi_backend.c(5475): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c/_cffi_backend.c(5476): error C2065: 'index': undeclared identifier
    c/_cffi_backend.c(5490): error C2065: 'index': undeclared identifier
    c/_cffi_backend.c(5491): error C2065: 'index': undeclared identifier
    c/_cffi_backend.c(6427): error C2065: 'b_new_primitive_type': undeclared identifier
    c/_cffi_backend.c(6427): error C2099: initializer is not a constant
    c/_cffi_backend.c(6427): warning C4047: 'initializing': 'PyCFunction' differs in levels of indirection from 'int'
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\parse_c_type.c(217): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\parse_c_type.c(286): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\parse_c_type.c(340): warning C4244: '=': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\parse_c_type.c(444): warning C4244: 'return': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\realize_c_type.c(425): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\realize_c_type.c(430): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\realize_c_type.c(448): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\realize_c_type.c(460): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\realize_c_type.c(559): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\realize_c_type.c(621): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\realize_c_type.c(670): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\realize_c_type.c(723): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\ffi_obj.c(191): warning C4090: 'initializing': different 'const' qualifiers
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\lib_obj.c(126): warning C4244: 'initializing': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\lib_obj.c(129): warning C4090: 'initializing': different 'const' qualifiers
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\lib_obj.c(298): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\lib_obj.c(342): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\lib_obj.c(368): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\lib_obj.c(389): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\lib_obj.c(403): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\lib_obj.c(208): warning C4090: 'initializing': different 'const' qualifiers
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\lib_obj.c(506): warning C4090: '=': different 'const' qualifiers
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(190): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(235): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(267): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(268): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(280): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(281): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(301): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(321): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(322): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(327): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(347): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\cdlopen.c(351): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\call_python.c(20): error C2037: left of 'builtins' specifies undefined struct/union '_is'
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\call_python.c(73): warning C4090: '=': different 'const' qualifiers
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\call_python.c(90): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\call_python.c(160): error C2037: left of 'modules' specifies undefined struct/union '_is'
    C:\Users\dakot\AppData\Local\Temp\pip-install-x4tmj_lo\cffi_a30ee251dd38440897de680839750bbb\c\call_python.c(235): error C2037: left of 'modules' specifies undefined struct/union '_is'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dakot\\AppData\\Local\\Temp\\pip-install-x4tmj_lo\\cffi_a30ee251dd38440897de680839750bbb\\setup.py'"'"'; __file__='"'"'C:\\Users\\dakot\\AppData\\Local\\Temp\\pip-install-x4tmj_lo\\cffi_a30ee251dd38440897de680839750bbb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\dakot\AppData\Local\Temp\pip-record-4c91ppsb\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python310\Include\cffi' Check the logs for full command output.```

This issue looks to be related to a _severe_ issue with cffi. May be related to similar causes to #7  - although I doubt it given that the OSes are different.

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.