When try to install oslo.log in CygWin 64bits failed pyinotify dependency

Bug #1813938 reported by CesarJorge on 2019-01-30
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Undecided
Unassigned
oslo.log
Undecided
Unassigned

Bug Description

Hi,

When I install in CygWin 64 bits a package that has dependency for oslo.log, then failed:
pip install -v --upgrade python-neutronclient

Exist a workaroud for this, or howto fix it?

Fails with the following error:

...

Collecting pyinotify>=0.9.6; sys_platform != "win32" and sys_platform != "darwin" and sys_platform != "sunos5" (from oslo.log>=3.36.0->python-neutronclient)
  1 location(s) to search for versions of pyinotify:
  * https://pypi.org/simple/pyinotify/
  Getting page https://pypi.org/simple/pyinotify/
  Looking up "https://pypi.org/simple/pyinotify/" in the cache
  Request header has "max_age" as 0, cache bypassed
  https://pypi.org:443 "GET /simple/pyinotify/ HTTP/1.1" 304 0
  Analyzing links from page https://pypi.org/simple/pyinotify/
    Found link https://files.pythonhosted.org/packages/40/54/6a5c5dee4f4393098cc56329fbc724c1c39389f8164a1b14c031d59937f3/pyinotify-0.9.0.tar.gz#sha256=af1f7d22067010cf29dd35fe17f8715f816f026c4ed769f7383fd419d4af9fd6 (from https://pypi.org/simple/pyinotify/), version: 0.9.0
    Found link https://files.pythonhosted.org/packages/c0/05/f0da2dc60f1aa61fc65cd5b0cca8befeef3f0622b193fcf9a90e018a552a/pyinotify-0.9.1.tar.gz#sha256=dd0eac2bd0172502ca35e976cbefa34359d0d795f29572993611dc1b98554838 (from https://pypi.org/simple/pyinotify/), version: 0.9.1
    Found link https://files.pythonhosted.org/packages/45/7b/4c72ff5282ceb9ef658579529081a859b71cef7170ce613cb01fc391dd0f/pyinotify-0.9.2.tar.gz#sha256=61f382e2b4cd04e05b8bf871393a3697dbf0e3934129c377c05b959038d26fb4 (from https://pypi.org/simple/pyinotify/), version: 0.9.2
    Found link https://files.pythonhosted.org/packages/48/01/988afd71e5fca5a7303a8e1dafce0cf4659c1b593c4a76e788e4e76fc7de/pyinotify-0.9.3.tar.gz#sha256=447b01feaf25a2ad36e4101b583a8212bd701d5c34e330dd62dd9f32ba149aa6 (from https://pypi.org/simple/pyinotify/), version: 0.9.3
    Found link https://files.pythonhosted.org/packages/69/bd/a55a13103b6672eeff7919932c3caf573b6c97ffa1ef69a02064760eb08d/pyinotify-0.9.4.tar.gz#sha256=a09767e4e0610e2e1e9f9dc89483b0ee4a53764e700f5866a570bec51d003fec (from https://pypi.org/simple/pyinotify/), version: 0.9.4
    Found link https://files.pythonhosted.org/packages/89/34/8574ec4c7d3a9fa74e7bd6b55c4d2c182cc91861f99516dab650e43992cc/pyinotify-0.9.5.tar.gz#sha256=e7c52a9f36cee27c5d0931ecf92959cd022317b00901bd34ef05ece4a2a5cb1b (from https://pypi.org/simple/pyinotify/), version: 0.9.5
    Found link https://files.pythonhosted.org/packages/e3/c0/fd5b18dde17c1249658521f69598f3252f11d9d7a980c5be8619970646e1/pyinotify-0.9.6.tar.gz#sha256=9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4 (from https://pypi.org/simple/pyinotify/), version: 0.9.6
  Using version 0.9.6 (newest of versions: 0.9.6)
  Created temporary directory: /tmp/pip-unpack-0rKHMk
  Looking up "https://files.pythonhosted.org/packages/e3/c0/fd5b18dde17c1249658521f69598f3252f11d9d7a980c5be8619970646e1/pyinotify-0.9.6.tar.gz" in the cache
  Current age based on date: 8466
  Ignoring unknown cache-control directive: immutable
  Freshness lifetime from max-age: 365000000
  The response is "fresh", returning cached response
  365000000 > 8466
  Using cached https://files.pythonhosted.org/packages/e3/c0/fd5b18dde17c1249658521f69598f3252f11d9d7a980c5be8619970646e1/pyinotify-0.9.6.tar.gz
  Downloading from URL https://files.pythonhosted.org/packages/e3/c0/fd5b18dde17c1249658521f69598f3252f11d9d7a980c5be8619970646e1/pyinotify-0.9.6.tar.gz#sha256=9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4 (from https://pypi.org/simple/pyinotify/)
  Added pyinotify>=0.9.6; sys_platform != "win32" and sys_platform != "darwin" and sys_platform != "sunos5" from https://files.pythonhosted.org/packages/e3/c0/fd5b18dde17c1249658521f69598f3252f11d9d7a980c5be8619970646e1/pyinotify-0.9.6.tar.gz#sha256=9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4 (from oslo.log>=3.36.0->python-neutronclient) to build tracker '/tmp/pip-req-tracker-aPlTWG'
    Running setup.py (path:/tmp/pip-install-R1uixM/pyinotify/setup.py) egg_info for package pyinotify
    Running command python setup.py egg_info
    inotify is not available on cygwin-2.11.2-x86_64
Cleaning up...
  Removing source in /tmp/pip-install-R1uixM/pyinotify
Removed pyinotify>=0.9.6; sys_platform != "win32" and sys_platform != "darwin" and sys_platform != "sunos5" from https://files.pythonhosted.org/packages/e3/c0/fd5b18dde17c1249658521f69598f3252f11d9d7a980c5be8619970646e1/pyinotify-0.9.6.tar.gz#sha256=9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4 (from oslo.log>=3.36.0->python-neutronclient) from build tracker '/tmp/pip-req-tracker-aPlTWG'
Removed build tracker '/tmp/pip-req-tracker-aPlTWG'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-R1uixM/pyinotify/
Exception information:
Traceback (most recent call last):
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
    status = self.run(options, args)
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 315, in run
    resolver.resolve(requirement_set)
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/resolve.py", line 131, in resolve
    self._resolve_one(requirement_set, req)
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/resolve.py", line 294, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/resolve.py", line 242, in _get_abstract_dist_for
    self.require_hashes
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 349, in prepare_linked_requirement
    abstract_dist.prep_for_dist(finder, self.build_isolation)
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 158, in prep_for_dist
    self.req.prepare_metadata()
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 536, in prepare_metadata
    self.run_egg_info()
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 615, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/home/admin/venv-ansible-2.6.5/lib/python2.7/site-packages/pip/_internal/utils/misc.py", line 761, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-R1uixM/pyinotify/

Regards,
Cesar Jorge

Brian Haley (brian-haley) wrote :

From your paste:

  inotify is not available on cygwin-2.11.2-x86_64

I'm guessing that is the problem?

Changed in neutron:
status: New → Incomplete
CesarJorge (cesarjorgemartinez) wrote :

I dont known if is this, but, in the past the openstackneutron package is working (another old version)

Can be this?:

Collecting pyinotify>=0.9.6; sys_platform != "win32" and sys_platform != "darwin" and sys_platform != "sunos5" (from oslo.log>=3.36.0->python-neutronclient)

Im using Cygwin 64 bits, not windows.

CesarJorge (cesarjorgemartinez) wrote :

I my environment:

$ python
Python 2.7.14 (default, Oct 31 2017, 21:12:13)
[GCC 6.4.0] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.platform
cygwin
>>> exit()

And the url for sys_platform: https://docs.python.org/2/library/sys.html#sys.platform

Brian Haley (brian-haley) wrote :

Well, oslo.log was added to python-neutronclient requirements.txt in April 2018, which in turn is requiring pyinotify:

 pyinotify>=0.9.6;sys_platform!='win32' and sys_platform!='darwin' and sys_platform!='sunos5' # MIT

Are you even able to install oslo.log ?

CesarJorge (cesarjorgemartinez) wrote :

Hi,

Only is a requirement for Linux, because inotify is only for Linux.
For win32, cygwin, darwin, etc, not need to install oslo.log
Its missing: and sys_platform!='cygwin'

Regards
Cesar Jorge

Brian Haley (brian-haley) wrote :

Cesar - so it looks like this issue only applies to oslo.log and not neutron then, since we are just depending on it. Perhaps you could just propose that requirements change there, or someone from the oslo team can?

Download full text (7.7 KiB)

Yes, but is here, not? Only is change the require for oslo.log, including
this !=cygwin

Regards

El lun., 11 feb. 2019 23:50, Brian Haley <email address hidden>
escribió:

> Cesar - so it looks like this issue only applies to oslo.log and not
> neutron then, since we are just depending on it. Perhaps you could just
> propose that requirements change there, or someone from the oslo team
> can?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1813938
>
> Title:
> When try to install oslo.log in CygWin 64bits failed pyinotify
> dependency
>
> Status in neutron:
> Incomplete
> Status in oslo.log:
> New
>
> Bug description:
> Hi,
>
> When I install in CygWin 64 bits a package that has dependency for
> oslo.log, then failed:
> pip install -v --upgrade python-neutronclient
>
> Exist a workaroud for this, or howto fix it?
>
>
> Fails with the following error:
>
> ...
>
> Collecting pyinotify>=0.9.6; sys_platform != "win32" and sys_platform !=
> "darwin" and sys_platform != "sunos5" (from
> oslo.log>=3.36.0->python-neutronclient)
> 1 location(s) to search for versions of pyinotify:
> * https://pypi.org/simple/pyinotify/
> Getting page https://pypi.org/simple/pyinotify/
> Looking up "https://pypi.org/simple/pyinotify/" in the cache
> Request header has "max_age" as 0, cache bypassed
> https://pypi.org:443 "GET /simple/pyinotify/ HTTP/1.1" 304 0
> Analyzing links from page https://pypi.org/simple/pyinotify/
> Found link
> https://files.pythonhosted.org/packages/40/54/6a5c5dee4f4393098cc56329fbc724c1c39389f8164a1b14c031d59937f3/pyinotify-0.9.0.tar.gz#sha256=af1f7d22067010cf29dd35fe17f8715f816f026c4ed769f7383fd419d4af9fd6
> (from https://pypi.org/simple/pyinotify/), version: 0.9.0
> Found link
> https://files.pythonhosted.org/packages/c0/05/f0da2dc60f1aa61fc65cd5b0cca8befeef3f0622b193fcf9a90e018a552a/pyinotify-0.9.1.tar.gz#sha256=dd0eac2bd0172502ca35e976cbefa34359d0d795f29572993611dc1b98554838
> (from https://pypi.org/simple/pyinotify/), version: 0.9.1
> Found link
> https://files.pythonhosted.org/packages/45/7b/4c72ff5282ceb9ef658579529081a859b71cef7170ce613cb01fc391dd0f/pyinotify-0.9.2.tar.gz#sha256=61f382e2b4cd04e05b8bf871393a3697dbf0e3934129c377c05b959038d26fb4
> (from https://pypi.org/simple/pyinotify/), version: 0.9.2
> Found link
> https://files.pythonhosted.org/packages/48/01/988afd71e5fca5a7303a8e1dafce0cf4659c1b593c4a76e788e4e76fc7de/pyinotify-0.9.3.tar.gz#sha256=447b01feaf25a2ad36e4101b583a8212bd701d5c34e330dd62dd9f32ba149aa6
> (from https://pypi.org/simple/pyinotify/), version: 0.9.3
> Found link
> https://files.pythonhosted.org/packages/69/bd/a55a13103b6672eeff7919932c3caf573b6c97ffa1ef69a02064760eb08d/pyinotify-0.9.4.tar.gz#sha256=a09767e4e0610e2e1e9f9dc89483b0ee4a53764e700f5866a570bec51d003fec
> (from https://pypi.org/simple/pyinotify/), version: 0.9.4
> Found link
> https://files.pythonhosted.org/packages/89/34/8574ec4c7d3a9fa74e7bd6b55c4d2c182cc91861f99516dab650e43992cc/pyinotify-0.9.5.tar.gz#sha256=e7c52a9f36cee27c5d0931ecf92959cd022317b00901bd34ef05ece4a2a5cb1b
> (fro...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers