On 02/07/2017 08:04 AM, Andrei Stepanov wrote:
> Hi.
> 
> Short report:   I am trying to install LTS 36 into virtualenv on RHEL6:
> 
> (avocado) [root@localhost ~]# pip install 'avocado-framework==36.0'
> DEPRECATION: Python 2.6 is no longer supported by the Python core team,
> please upgrade your Python. A future version of pip will drop support
> for Python 2.6
> Collecting avocado-framework==36.0
> /root/avocado/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318:
> SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject
> Name Indication) extension to TLS is not available on this platform.
> This may cause the server to present an incorrect TLS certificate, which
> can cause validation failures. You can upgrade to a newer version of
> Python to solve this. For more information, see
> https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
>   SNIMissingWarning
> /root/avocado/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122:
> InsecurePlatformWarning: A true SSLContext object is not available. This
> prevents urllib3 from configuring SSL appropriately and may cause
> certain SSL connections to fail. You can upgrade to a newer version of
> Python to solve this. For more information, see
> https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
>   InsecurePlatformWarning
>   Downloading avocado-framework-36.0.tar.gz (714kB)
>     100% |████████████████████████████████| 716kB 1.2MB/s 
>     Complete output from command python setup.py egg_info:
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/tmp/pip-build-ex9cI3/avocado-framework/setup.py", line 22,
> in <module>
>         from avocado import VERSION
>       File "avocado/__init__.py", line 19, in <module>
>         from avocado.core.job import main
>       File "avocado/core/job.py", line 33, in <module>
>         from . import dispatcher
>       File "avocado/core/dispatcher.py", line 19, in <module>
>         from stevedore import ExtensionManager
>     ImportError: No module named stevedore
>     
>     ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in
> /tmp/pip-build-ex9cI3/avocado-framework/
> 
> 
> Okay, install stevedore:
> 
> # pip install 'stevedore'
> ...
> Installing collected packages: pbr, stevedore
> Successfully installed pbr-1.10.0 stevedore-1.20.0
> 
> 
> Than I get next error:
> 
> 
> (avocado) [root@localhost ~]# pip install 'avocado-framework==36.0'
> DEPRECATION: Python 2.6 is no longer supported by the Python core team,
> please upgrade your Python. A future version of pip will drop support
> for Python 2.6
> Collecting avocado-framework==36.0
>   Using cached avocado-framework-36.0.tar.gz
>     Complete output from command python setup.py egg_info:
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/tmp/pip-build-EREmsk/avocado-framework/setup.py", line 22,
> in <module>
>         from avocado import VERSION
>       File "avocado/__init__.py", line 19, in <module>
>         from avocado.core.job import main
>       File "avocado/core/job.py", line 33, in <module>
>         from . import dispatcher
>       File "avocado/core/dispatcher.py", line 19, in <module>
>         from stevedore import ExtensionManager
>       File
> "/root/avocado/lib/python2.6/site-packages/stevedore/__init__.py", line
> 23, in <module>
>         LOG.addHandler(logging.NullHandler())
>     AttributeError: 'module' object has no attribute 'NullHandler'
>     
>     ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in
> /tmp/pip-build-EREmsk/avocado-framework/
> 
> 
> Okay, downgrade stevedore:
> 
> 
> # pip install 'stevedore==1.2.0'
> 
> 
> Another error:
> 
> pip install 'avocado-framework==36.0'
> DEPRECATION: Python 2.6 is no longer supported by the Python core team,
> please upgrade your Python. A future version of pip will drop support
> for Python 2.6
> Collecting avocado-framework==36.0
>   Using cached avocado-framework-36.0.tar.gz
>     Complete output from command python setup.py egg_info:
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/tmp/pip-build-3f_bMj/avocado-framework/setup.py", line 22,
> in <module>
>         from avocado import VERSION
>       File "avocado/__init__.py", line 19, in <module>
>         from avocado.core.job import main
>       File "avocado/core/job.py", line 34, in <module>
>         from . import runner
>       File "avocado/core/runner.py", line 28, in <module>
>         from . import test
>       File "avocado/core/test.py", line 31, in <module>
>         from . import multiplexer
>       File "avocado/core/multiplexer.py", line 27, in <module>
>         from . import tree
>       File "avocado/core/tree.py", line 53, in <module>
>         from . import output
>       File "avocado/core/output.py", line 30, in <module>
>         import logutils
>     ImportError: No module named logutils
> 
> 
> # pip install logutils
> 
> Another error:
> 
> 
> # pip install 'avocado-framework==36.0'
> DEPRECATION: Python 2.6 is no longer supported by the Python core team,
> please upgrade your Python. A future version of pip will drop support
> for Python 2.6
> Collecting avocado-framework==36.0
>   Using cached avocado-framework-36.0.tar.gz
>     Complete output from command python setup.py egg_info:
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/tmp/pip-build-e6YcVH/avocado-framework/setup.py", line 22,
> in <module>
>         from avocado import VERSION
>       File "avocado/__init__.py", line 19, in <module>
>         from avocado.core.job import main
>       File "avocado/core/job.py", line 34, in <module>
>         from . import runner
>       File "avocado/core/runner.py", line 28, in <module>
>         from . import test
>       File "avocado/core/test.py", line 44, in <module>
>         import unittest2 as unittest
>     ImportError: No module named unittest2
> 
> 
> # pip install unittest2
> 
> Another error:
> 
> # pip install 'avocado-framework==36.0'
> DEPRECATION: Python 2.6 is no longer supported by the Python core team,
> please upgrade your Python. A future version of pip will drop support
> for Python 2.6
> Collecting avocado-framework==36.0
>   Using cached avocado-framework-36.0.tar.gz
>   Running setup.py
> (path:/tmp/pip-build-J7PtEy/avocado-framework/setup.py) egg_info for
> package avocado-framework produced metadata for project name avocado.
> Fix your #egg=avocado-framework fragments.
> Building wheels for collected packages: avocado, avocado
>   Running setup.py bdist_wheel for avocado ... done
>   Stored in directory:
> /root/.cache/pip/wheels/6a/20/35/aa577931e4582057dbee3fd3250636ef75e7d5e503e98e5249
>   Running setup.py bdist_wheel for avocado ... error
>   Complete output from command /root/avocado/bin/python -u -c "import
> setuptools,
> tokenize;__file__='/tmp/pip-build-J7PtEy/avocado/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d
> /tmp/tmpvBUgBOpip-wheel- --python-tag cp26:
>   Traceback (most recent call last):
>     File "<string>", line 1, in <module>
>   IOError: [Errno 2] No such file or directory:
> '/tmp/pip-build-J7PtEy/avocado/setup.py'
>   
>   ----------------------------------------
>   Failed building wheel for avocado
>   Running setup.py clean for avocado
>   Complete output from command /root/avocado/bin/python -u -c "import
> setuptools,
> tokenize;__file__='/tmp/pip-build-J7PtEy/avocado/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
>   Traceback (most recent call last):
>     File "<string>", line 1, in <module>
>   IOError: [Errno 2] No such file or directory:
> '/tmp/pip-build-J7PtEy/avocado/setup.py'
>   
>   ----------------------------------------
>   Failed cleaning build dir for avocado
> Successfully built avocado
> Failed to build avocado
> Installing collected packages: avocado
> Successfully installed avocado-36.0lts
> 
> 

Andrei,

Running a command such as:

pip install -r
https://raw.githubusercontent.com/avocado-framework/avocado/36lts/requirements.txt

Would have probably saved you a lot of this hassle.  This is documented
here:

http://avocado-framework.readthedocs.io/en/45.0/GetStartedGuide.html#installing-from-standard-python-tools

> 
> Now I want to use git repo
> : https://github.com/avocado-framework/avocado-vt/
> 
> But, unsuccessful. Hmmmm
> 

Have you tried:

$ pip install -e
"git+git://github.com/avocado-framework/avocado-vt#egg=avocado-plugins-vt"

This would be the right syntax, but I can not guarantee that avocado-vt
installs fine from pip.

Regards,
- Cleber.

> 
> 
> On Tue, Feb 7, 2017 at 12:49 PM, Cleber Rosa <cr...@redhat.com
> <mailto:cr...@redhat.com>> wrote:
> 
>     On 02/07/2017 06:46 AM, Lucas Meneghel Rodrigues wrote:
>     > I'm not sure putting a file with references to a relatively independent
>     > plugin in the main avocado repo the correct thing to do. It's probably
>     > better to put a file with that summary in the avocado-vt repository 
> instead.
>     >
> 
>     I think Andrei meant info about the 36lts branch (and 36.x release
>     series), and not specifically about Avocado-VT.
> 
>     > On Tue, Feb 7, 2017 at 12:19 PM Andrei Stepanov <astep...@redhat.com 
> <mailto:astep...@redhat.com>
>     > <mailto:astep...@redhat.com <mailto:astep...@redhat.com>>> wrote:
>     >
>     >     Hi,
>     >
>     >     How do you see an idea to create a file
>     >     in https://github.com/avocado-framework/avocado
>     <https://github.com/avocado-framework/avocado> with information
>     >     from 
> https://www.redhat.com/archives/avocado-devel/2016-April/msg00038.html
>     <https://www.redhat.com/archives/avocado-devel/2016-April/msg00038.html>
>     >     ?
>     >
> 
>     Mentioning the LTS branches (currently 36lts and their related releases)
>     in indeed a good idea IMHO.  Just a few lines, with a pointer to the
>     proper (longer) explanation would suffice.
> 
>     - Cleber.
> 
>     >     On Mon, Feb 6, 2017 at 2:41 PM, Cleber Rosa <cr...@redhat.com 
> <mailto:cr...@redhat.com>
>     >     <mailto:cr...@redhat.com <mailto:cr...@redhat.com>>> wrote:
>     >
>     >
>     >         On 02/06/2017 08:34 AM, Cleber Rosa wrote:
>     >         > Hello to all Avocado users and developers,
>     >         >
>     >         > This is a heads-up about an important change that is
>     coming to
>     >         Avocado:
>     >         > we're dropping Python 2.6 support.
>     >         >
>     >         > Why?
>     >         > ====
>     >         >
>     >         > Initially, we planned Avocado to be supported on Python 2.7
>     >         and Python
>     >         > 3.x.  Then we realized that a lot of our users still
>     depended
>     >         on Python
>     >         > 2.6 because of platforms such as EL6.
>     >         >
>     >         > Python 2.6 support came, and after a while our first LTS
>     >         (36.0) version
>     >         > was released.  This gives EL6 users a stable version
>     they can
>     >         rely on.
>     >         >
>     >         > Now it's time to look forward.  By dropping official support
>     >         for Python
>     >         > 2.6, we can focus our energy on other goals.  Since we're
>     >         talking Python
>     >         > versions, one of those if to support Python 3.x in the same
>     >         code base.
>     >         >
>     >         > When?
>     >         > =====
>     >         >
>     >         > Pretty soon, that is, as early as the published PR is
>     accepted:
>     >         >
>     >         > https://github.com/avocado-framework/avocado/pull/1748
>     <https://github.com/avocado-framework/avocado/pull/1748>
>     >         >
>     >         > Users on EL6:
>     >         > =============
>     >         >
>     >         > We recommend our users running Avocado on EL6 to stick
>     to the LTS
>     >         > releases (currently version 36.3).  This will ensure that
>     >         bugfixes will
>     >         > be delivered to you.  For more information on how to use
>     the LTS
>     >         > versions please check the following link:
>     >         >
>     >         >
>     >       
>      
> http://avocado-framework.readthedocs.io/en/36lts/GetStartedGuide.html#enterprise-linux
>     
> <http://avocado-framework.readthedocs.io/en/36lts/GetStartedGuide.html#enterprise-linux>
>     >         >
>     >         > For more information of LTS releases, check the
>     following link:
>     >         >
>     >
>     >         The proper link with info on LTS releases is:
>     >
>     >       
>      https://www.redhat.com/archives/avocado-devel/2016-April/msg00038.html
>     <https://www.redhat.com/archives/avocado-devel/2016-April/msg00038.html>
>     >
>     >         Regards,
>     >         - Cleber.
>     >
>     >         >
>     >       
>      
> http://avocado-framework.readthedocs.io/en/36lts/GetStartedGuide.html#enterprise-linux
>     
> <http://avocado-framework.readthedocs.io/en/36lts/GetStartedGuide.html#enterprise-linux>
>     >         >
>     >         > Alternatively, if you need features not present in the 36.0
>     >         series, you
>     >         > may still use a version as recent as 45.0, but *without* the
>     >         level of
>     >         > support that LTS releases have.
>     >         >
>     >         > Please let us know if you have any issues or questions.
>     >         >
>     >         > Thanks!
>     >         >
>     >
>     >         --
>     >         Cleber Rosa
>     >         [ Sr Software Engineer - Virtualization Team - Red Hat ]
>     >         [ Avocado Test Framework - avocado-framework.github.io
>     <http://avocado-framework.github.io>
>     >         <http://avocado-framework.github.io
>     <http://avocado-framework.github.io>> ]
>     >
>     >
> 
>     --
>     Cleber Rosa
>     [ Sr Software Engineer - Virtualization Team - Red Hat ]
>     [ Avocado Test Framework - avocado-framework.github.io
>     <http://avocado-framework.github.io> ]
> 
> 

-- 
Cleber Rosa
[ Sr Software Engineer - Virtualization Team - Red Hat ]
[ Avocado Test Framework - avocado-framework.github.io ]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to