<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>45519</bug_id>
          
          <creation_ts>2023-03-09 16:34:57 +0300</creation_ts>
          <short_desc>Не устанавливается модуль pynput</short_desc>
          <delta_ts>2023-03-09 17:17:49 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>pip</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Шилов Максим">shilovmaxim</reporter>
          <assigned_to name="qa-team@altlinux.org">qa-team</assigned_to>
          <cc>amakeenk</cc>
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>222730</commentid>
    <comment_count>0</comment_count>
    <who name="Шилов Максим">shilovmaxim</who>
    <bug_when>2023-03-09 16:34:57 +0300</bug_when>
    <thetext>[ms@who3young ~]$ pip install pynput
Defaulting to user installation because normal site-packages is not writeable
Collecting pynput
  Using cached pynput-1.7.6-py2.py3-none-any.whl (89 kB)
Collecting evdev&gt;=1.3
  Using cached evdev-1.6.1.tar.gz (26 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting python-xlib&gt;=0.17
  Using cached python_xlib-0.33-py2.py3-none-any.whl (182 kB)
Requirement already satisfied: six in /usr/lib/python3/site-packages (from pynput) (1.15.0)
Building wheels for collected packages: evdev
  Building wheel for evdev (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for evdev (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─&gt; [29 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/util.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/uinput.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/genecodes.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/ff.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/evtest.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/events.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/eventio_async.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/eventio.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/ecodes.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/device.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      copying evdev/__init__.py -&gt; build/lib.linux-x86_64-cpython-39/evdev
      running build_ext
      running build_ecodes
      writing /tmp/.private/ms/pip-install-nfdejtm4/evdev_8985cef16b164ad6bbd94477d6e54f59/evdev/ecodes.c (using /usr/include/linux/input.h /usr/include/linux/input-event-codes.h /usr/include/linux/uinput.h)
      building &apos;evdev._input&apos; extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/evdev
      x86_64-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fwrapv -O2 -Wall -pipe -frecord-gcc-switches -Wall -pipe -frecord-gcc-switches -Wall -fPIC -I/usr/include/python3.9 -c evdev/input.c -o build/temp.linux-x86_64-cpython-39/evdev/input.o -std=c99 -Wno-error=declaration-after-statement
      evdev/input.c:10:10: fatal error: Python.h: Нет такого файла или каталога
         10 | #include &lt;Python.h&gt;
            |          ^~~~~~~~~~
      compilation terminated.
      error: command &apos;/usr/bin/x86_64-alt-linux-gcc&apos; failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for evdev
Failed to build evdev
ERROR: Could not build wheels for evdev, which is required to install pyproject.toml-based projects
[ms@who3young ~]$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>222731</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2023-03-09 16:40:50 +0300</bug_when>
    <thetext>Уточните, пожалуйста, какая версия пакета у вас установлена и дистрибутив, на котором воспроизводится ошибка.
Для этого пришлите вывод следующих команд:

$ cat /etc/os-release

$ apt-repo

$ rpm -qi pip</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>222733</commentid>
    <comment_count>2</comment_count>
    <who name="Шилов Максим">shilovmaxim</who>
    <bug_when>2023-03-09 16:54:11 +0300</bug_when>
    <thetext>Дистрибутив
[ms@who3young ~]$ cat /etc/os-release
NAME=&quot;Simply Linux&quot;
VERSION=&quot;10.1 (Captain Finn)&quot;
ID=altlinux
VERSION_ID=10.1
PRETTY_NAME=&quot;Simply Linux 10.1 (Captain Finn)&quot;
ANSI_COLOR=&quot;1;36&quot;
CPE_NAME=&quot;cpe:/o:alt:slinux:10.1&quot;
BUILD_ID=&quot;Simply Linux 10.1&quot;
HOME_URL=&quot;https://www.basealt.ru/products/simplylinux/&quot;
BUG_REPORT_URL=&quot;https://bugs.altlinux.org/&quot;

Репозиторий
[ms@who3young ~]$ sudo apt-repo
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux/ p10/branch/x86_64 classic
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux/ p10/branch/x86_64-i586 classic
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux/ p10/branch/noarch classic

Версия pip
[ms@who3young ~]$ sudo rpm -qi pip
Name        : pip
Version     : 22.2.2
Release     : alt1
DistTag     : p10+307737.1400.28.1
Architecture: noarch
Install Date: Вт 27 дек 2022 16:48:19
Group       : Development/Python3
Size        : 122
License     : MIT
Signature   : RSA/SHA512, Ср 26 окт 2022 11:51:48, Key ID 42f343a2c7eb80f9
Source RPM  : python3-module-pip-22.2.2-alt1.src.rpm
Build Date  : Ср 26 окт 2022 11:51:43
Build Host  : cas-p10.hasher.altlinux.org
Relocations : (not relocatable)
Packager    : Stanislav Levin &lt;slev@altlinux.org&gt;
Vendor      : ALT Linux Team
URL         : https://pip.pypa.io
Summary     : Executable for PIP
Description :
Executable for PIP
[ms@who3young ~]$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>222734</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2023-03-09 16:58:47 +0300</bug_when>
    <thetext>Попробуйте установить пакет python3-dev и после этого повторить установку модуля.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>222735</commentid>
    <comment_count>4</comment_count>
    <who name="Шилов Максим">shilovmaxim</who>
    <bug_when>2023-03-09 17:07:38 +0300</bug_when>
    <thetext>(Ответ для Alexander Makeenkov на комментарий #3)
&gt; Попробуйте установить пакет python3-dev и после этого повторить установку
&gt; модуля.

Да. Всё установилось. Спасибо.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>