[New-bugs-announce] [issue36572] python-snappy install issue during Crossbar install with Python 3.7.3 (Windows x86 executable installer)

Slim report at bugs.python.org
Tue Apr 9 05:47:31 EDT 2019


New submission from Slim <s.bouziri at eona.com>:

In a Windows 2016 VM, when trying to install Crossbar in offline mode, we observed the following error:

error Running setup.py install for python-snappy ... error
...
snappy/snappymodule.cc(31): fatal error C1083: Cannot open include file: 'snappy-c.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.20.27508\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

Here the steps to reproduce this issue:
0) In a Windows 10 machine (where we create our MSI):
-> we download the corresponding python-3.7.3.exe (Windows x86 executable installer)
-> we download pyWin32 & crossbar & pip in a specific folder:
    pip download -d "C:\Crossbar373" PyWin32==224
    pip download -d "C:\Crossbar373" crossbar==19.3.5
    pip download -d "C:\Crossbar373" pip==19.0.3

-> python-3.7.3.exe /quiet /layout "C:\Temp\Python373Layout"
-> Our MSI use this folder as an input to install Python 3.7.3 in the target Windows 2016 VM in offline mode

1) In the target Windows 2016 VM (where we launch our MSI):
-> Our MSI install Visual Studio 2019 from https://visualstudio.microsoft.com/downloads/ (default values)
-> It also removes the MAX_PATH Limitation
-> It copies all the files needed to install crossbar in the "C:\Crossbar373" folder
-> Then it executes the following custom actions in this machine:
   a) python-3.7.3.exe /quiet InstallAllUsers=1 TargetDir="C:\Python373x86ExecInstaller" PrependPath=1 Include_pip=0 Include_launcher=0 Include_test=0
   b) python -m pip install --upgrade pip==19.0.3
   c) pip.exe install --no-warn-script-location --disable-pip-version-check --no-index --find-links "C:\Crossbar373" PyWin32==224
   d) pip.exe install --no-warn-script-location --disable-pip-version-check --no-index --find-links "C:\Crossbar373" incremental
   e) pip.exe install --no-warn-script-location --disable-pip-version-check --no-index --find-links "C:\Crossbar373" crossbar
   f) Finally, this issue occurs.

The only workaround found to fix this issue is to:
1) download python_snappy-0.5.4-cp37-cp37m-win32.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/
2) and install it with our MSI in the target VM before step e):
   pip install C:\Crossbar372\python_snappy-0.5.4-cp37-cp37m-win32.whl

This issue seems also to occur with Python 3.7.2 version.

Questions:
1) Is there any invalid step in our process?
2) Is this workaround validated by you? As this wheel file does not seem to be official.
3) Is this issue related to https://github.com/crossbario/crossbar/issues/1521 one? and thus will be fixed in forthcoming versions?

----------
messages: 339721
nosy: telatoa
priority: normal
severity: normal
status: open
title: python-snappy install issue during Crossbar install with Python 3.7.3 (Windows x86 executable installer)
type: compile error
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36572>
_______________________________________


More information about the New-bugs-announce mailing list