Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immutables does not have a py35 Windows wheel built #939

Closed
rongduan-zhu opened this issue Jul 24, 2020 · 4 comments
Closed

Immutables does not have a py35 Windows wheel built #939

rongduan-zhu opened this issue Jul 24, 2020 · 4 comments
Labels
backlog bug Something isn't working

Comments

@rongduan-zhu
Copy link

Describe your environment Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on master.
Python Version: 3.5
Version Number of OpenTelemetry: 0.10b0
OS Version: Windows 10

Steps to reproduce
Describe exactly how to reproduce the error. Include a code sample if applicable.
conda create -n py35 python=3.5
pip install opentelemetry-api

What is the expected behavior?
What did you expect to see?
Pip install opentelemetry-api should just work for Python3.5 on Windows

What is the actual behavior?
What did you see instead?
I removed some of the path information.

Collecting opentelemetry-api
  Downloading https://files.pythonhosted.org/packages/94/54/bd8123bf3abe0024d032b486f09f7eff610c3c7390ffe382e7336d8039f5/opentelemetry_api-0.10b0-py3-none-any.whl (43kB)
    100% |################################| 51kB 3.2MB/s
Collecting aiocontextvars; python_version < "3.7" and python_version >= "3.5" (from opentelemetry-api)
  Using cached https://files.pythonhosted.org/packages/db/c1/7a723e8d988de0a2e623927396e54b6831b68cb80dce468c945b849a9385/aiocontextvars-0.2.2-py2.py3-none-any.whl
Collecting contextvars==2.4; python_version < "3.7" (from aiocontextvars; python_version < "3.7" and python_version >= "3.5"->opentelemetry-api)
  Using cached https://files.pythonhosted.org/packages/83/96/55b82d9f13763be9d672622e1b8106c85acb83edd7cc2fa5bc67cd9877e9/contextvars-2.4.tar.gz
Collecting immutables>=0.9 (from contextvars==2.4; python_version < "3.7"->aiocontextvars; python_version < "3.7" and python_version >= "3.5"->opentelemetry-api)
  Downloading https://files.pythonhosted.org/packages/6b/58/c6be0577cccbe1658fcb1ec3673e9ac7508af26a2f5c814cc041c7d21212/immutables-0.14.tar.gz (42kB)
    100% |################################| 51kB 5.1MB/s
Building wheels for collected packages: contextvars, immutables
  Running setup.py bdist_wheel for contextvars ... done
  Stored in directory: 
\AppData\Local\pip\Cache\wheels\a5\7d\68\1ebae2668bda2228686e3c1cf16f2c2384cea6e9334ad5f6de
  Running setup.py bdist_wheel for immutables ... error
  Complete output from command E:\bdtools\python\4.7.12.1\envs\py35\python.exe -u -c "import setuptools, tokenize;__file__='AppData\\Local\\Temp\\pip-install-bojgpazd\\immutables\\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 \AppData\Local\Temp\pip-wheel-3dwsjdn3 --python-tag cp35:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.5
  creating build\lib.win-amd64-3.5\immutables
  copying immutables\map.py -> build\lib.win-amd64-3.5\immutables
  copying immutables\_testutils.py -> build\lib.win-amd64-3.5\immutables
  copying immutables\_version.py -> build\lib.win-amd64-3.5\immutables
  copying immutables\__init__.py -> build\lib.win-amd64-3.5\immutables
  running egg_info
  writing immutables.egg-info\PKG-INFO
  writing top-level names to immutables.egg-info\top_level.txt
  writing dependency_links to immutables.egg-info\dependency_links.txt
  reading manifest file 'immutables.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'immutables.egg-info\SOURCES.txt'
  copying immutables\_map.c -> build\lib.win-amd64-3.5\immutables
  copying immutables\_map.h -> build\lib.win-amd64-3.5\immutables
  copying immutables\_map.pyi -> build\lib.win-amd64-3.5\immutables
  copying immutables\py.typed -> build\lib.win-amd64-3.5\immutables
  running build_ext
  building 'immutables._map' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

  ----------------------------------------
  Failed building wheel for immutables
  Running setup.py clean for immutables
Successfully built contextvars
Failed to build immutables
Installing collected packages: immutables, contextvars, aiocontextvars, opentelemetry-api
  Running setup.py install for immutables ... error
    Complete output from command E:\bdtools\python\4.7.12.1\envs\py35\python.exe -u -c "import setuptools, tokenize;__file__='AppData\\Local\\Temp\\pip-install-bojgpazd\\immutables\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record AppData\Local\Temp\pip-record-rlgv8md_\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\immutables
    copying immutables\map.py -> build\lib.win-amd64-3.5\immutables
    copying immutables\_testutils.py -> build\lib.win-amd64-3.5\immutables
    copying immutables\_version.py -> build\lib.win-amd64-3.5\immutables
    copying immutables\__init__.py -> build\lib.win-amd64-3.5\immutables
    running egg_info
    writing immutables.egg-info\PKG-INFO
    writing dependency_links to immutables.egg-info\dependency_links.txt
    writing top-level names to immutables.egg-info\top_level.txt
    reading manifest file 'immutables.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'immutables.egg-info\SOURCES.txt'
    copying immutables\_map.c -> build\lib.win-amd64-3.5\immutables
    copying immutables\_map.h -> build\lib.win-amd64-3.5\immutables
    copying immutables\_map.pyi -> build\lib.win-amd64-3.5\immutables
    copying immutables\py.typed -> build\lib.win-amd64-3.5\immutables
    running build_ext
    building 'immutables._map' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

    ----------------------------------------
Command "E:\bdtools\python\4.7.12.1\envs\py35\python.exe -u -c "import setuptools, tokenize;__file__='\\AppData\\Local\\Temp\\pip-install-bojgpazd\\immutables\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record \AppData\Local\Temp\pip-record-rlgv8md_\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in ~1.RED\AppData\Local\Temp\pip-install-bojgpazd\immutables\
You are using pip version 10.0.1, however version 20.2b1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Additional context
Add any other context about the problem here.
This is because open telemetry depends on aiocontextvars which depends on contextvars which depends on immutable which doesn't have a python 3.5 Windows wheel. The reason is documented in their code.

It looks like open-census only depends on contextvars for python >= 3.6 so it doesn't have this issue.

@rongduan-zhu rongduan-zhu added the bug Something isn't working label Jul 24, 2020
@lzchen
Copy link
Contributor

lzchen commented Jul 27, 2020

I'm pretty sure bitarray part of opentelemetry-ext-datadog also has a similar issue.

@ffe4
Copy link
Contributor

ffe4 commented Sep 10, 2020

I would suggest we also run tests for the core components on Windows and MacOS for at least the oldest and newest supported Python to catch some of these types of issues.

rel: #910

srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this issue Nov 1, 2020
Co-authored-by: Mayur Kale <mayurkale@google.com>
@github-actions
Copy link

github-actions bot commented Apr 9, 2021

This issue was marked stale due to lack of activity. It will be closed in 30 days.

@github-actions
Copy link

github-actions bot commented Jun 8, 2021

Closed as inactive. Feel free to reopen if this issue needs resolving.

@github-actions github-actions bot closed this as completed Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants