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

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

    <bug>
          <bug_id>32205</bug_id>
          
          <creation_ts>2016-06-19 07:39:21 +0300</creation_ts>
          <short_desc>необходима корректировка работы пакета</short_desc>
          <delta_ts>2017-04-26 17:05:09 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python3-module-virtualenv</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>32211</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>jazz4sad</reporter>
          <assigned_to name="nbr">nbr</assigned_to>
          <cc>evg</cc>
    
    <cc>imz</cc>
    
    <cc>nbr</cc>
    
    <cc>slev</cc>
    
    <cc>vladimir.didenko</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157365</commentid>
    <comment_count>0</comment_count>
    <who name="">jazz4sad</who>
    <bug_when>2016-06-19 07:39:21 +0300</bug_when>
    <thetext>1. Установлен starterkit с LXDE на борту. Для справки:
$ uname -r
4.4.13-std-def-alt0.M80P.1

$ cat /etc/redhat-release 
ALT Linux starter kit (Hypericum)

$ rpm -qa | grep python3-module-virtualenv
python3-module-virtualenv-13.1.0-alt1.1

2. Создаю виртуальное окружение:
$ virtualenv3 myvenv
Using base prefix &apos;/usr&apos;
New python executable in myvenv/bin/python3
Also creating executable in myvenv/bin/python
Installing setuptools, pip, wheel...done.

3. Активирую его:
$ source myvenv/bin/activate
(myvenv)[sadmin@comp-celeron-cpu-919525 ~]$ 

4. Обновляю pip:
$ pip install --upgrade pip
Traceback (most recent call last):
  File &quot;/home/sadmin/myvenv/bin/pip&quot;, line 7, in &lt;module&gt;
    from pip import main
ImportError: No module named &apos;pip&apos;

5. Устанавливаю произвольный пакет:
$ pip install mutagen==1.29
Traceback (most recent call last):
  File &quot;/home/sadmin/myvenv/bin/pip&quot;, line 7, in &lt;module&gt;
    from pip import main
ImportError: No module named &apos;pip&apos;

И в качестве дополнения. В p8 третий Питон имеет версию 3.5.1, а это предполагает наличие стандартного модуля для создания виртуального окружения и работы с ним. Так вот этот модуль отпинывает попытки создать виртуальное окружение:

$ python3 -m venv myvenv2
Error: Command &apos;[&apos;/home/sadmin/myvenv2/bin/python3&apos;, &apos;-Im&apos;, &apos;ensurepip&apos;, &apos;--upgrade&apos;, &apos;--default-pip&apos;]&apos; returned non-zero exit status 1

Буду признателен и благодарен за решение проблемы. Если вдруг я где-то заблудился и чего-то не так делаю, прошу строго не судить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157367</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2016-06-19 12:47:59 +0300</bug_when>
    <thetext>На Sisyphus</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157413</commentid>
    <comment_count>2</comment_count>
    <who name="Владимир Диденко">vladimir.didenko</who>
    <bug_when>2016-06-22 12:38:05 +0300</bug_when>
    <thetext>pyvenv тоже не рабочий.

$ pyvenv-3.5 .
Error: Command &apos;[&apos;/home/cow/test/python/bin/python3.5&apos;, &apos;-Im&apos;, &apos;ensurepip&apos;, &apos;--upgrade&apos;, &apos;--default-pip&apos;]&apos; returned non-zero exit status 1
[cow@localhost python]$ /home/cow/test/python/bin/python3.5 -Im ensurepip --upgrade --default-pip
Traceback (most recent call last):
  File &quot;/usr/lib64/python3.5/runpy.py&quot;, line 170, in _run_module_as_main
    &quot;__main__&quot;, mod_spec)
  File &quot;/usr/lib64/python3.5/runpy.py&quot;, line 85, in _run_code
    exec(code, run_globals)
  File &quot;/usr/lib64/python3.5/ensurepip/__main__.py&quot;, line 4, in &lt;module&gt;
    ensurepip._main()
  File &quot;/usr/lib64/python3.5/ensurepip/__init__.py&quot;, line 209, in _main
    default_pip=args.default_pip,
  File &quot;/usr/lib64/python3.5/ensurepip/__init__.py&quot;, line 98, in bootstrap
    &quot;_bundled/{}&quot;.format(wheel_name),
  File &quot;/usr/lib64/python3.5/pkgutil.py&quot;, line 629, in get_data
    return loader.get_data(resource_name)
  File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 815, in get_data
FileNotFoundError: [Errno 2] No such file or directory: &apos;/usr/lib64/python3.5/ensurepip/_bundled/setuptools-18.2-py2.py3-none-any.whl&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157785</commentid>
    <comment_count>3</comment_count>
    <who name="nbr">nbr</who>
    <bug_when>2016-07-26 09:27:13 +0300</bug_when>
    <thetext>site-packages оказываются под python3.5 когда лежат на самом деле в python3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163036</commentid>
    <comment_count>4</comment_count>
    <who name="nbr">nbr</who>
    <bug_when>2017-04-05 15:47:16 +0300</bug_when>
    <thetext>uname -r
4.9.20-std-def-alt1
[denis@homerun ~]$ rpm -qa | grep python3-module-virtualenv
python3-module-virtualenv-15.0.3-alt1.noarch
[denis@homerun ~]$ virtualenv3 myvenv
Using base prefix &apos;/usr&apos;
New python executable in /home/denis/myvenv/bin/python3
Also creating executable in /home/denis/myvenv/bin/python
Installing setuptools, pip, wheel...done.
[denis@homerun ~]$ source myvenv/bin/activate
(myvenv) [denis@homerun ~]$ pip install --upgrade pip
Requirement already up-to-date: pip in ./myvenv/lib/python3/site-packages
(myvenv) [denis@homerun ~]$ pip install mutagen==1.29
Collecting mutagen==1.29
  Downloading mutagen-1.29.tar.gz (879kB)
    100% |████████████████████████████████| 880kB 1.0MB/s 
Building wheels for collected packages: mutagen
  Running setup.py bdist_wheel for mutagen ... done
  Stored in directory: /home/denis/.cache/pip/wheels/2d/28/60/9aafa466f826b50c74c773c044e475efa416dadf3a00d7dd2f
Successfully built mutagen
Installing collected packages: mutagen
Successfully installed mutagen-1.29</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163467</commentid>
    <comment_count>5</comment_count>
    <who name="">jazz4sad</who>
    <bug_when>2017-04-26 17:05:09 +0300</bug_when>
    <thetext>Не прошло и года... Оперативненько. Благодарю за труд.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>