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

Note that install is broken on Alpine Linux #541

Closed
wants to merge 2 commits into from
Closed

Note that install is broken on Alpine Linux #541

wants to merge 2 commits into from

Conversation

bsolomon1124
Copy link
Contributor

Related:

As of 2020-03-28:

$ docker container run -it --rm python:3-alpine /bin/sh -c 'python -m pip install pytype'
Collecting pytype
  Downloading pytype-2020.2.6.tar.gz (1.1 MB)
     |████████████████████████████████| 1.1 MB 3.5 MB/s 
Collecting attrs
  Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting importlab>=0.5.1
  Downloading importlab-0.5.1.tar.gz (19 kB)
Collecting ninja
  Downloading ninja-1.9.0.post1.tar.gz (25 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-99u6fv5a/ninja/setup.py'"'"'; __file__='"'"'/tmp/pip-install-99u6fv5a/ninja/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-99u6fv5a/ninja/pip-egg-info
         cwd: /tmp/pip-install-99u6fv5a/ninja/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-99u6fv5a/ninja/setup.py", line 7, in <module>
        from skbuild import setup
    ModuleNotFoundError: No module named 'skbuild'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Also confirmed this is still the case after a pip downgrade.

Copy link
Contributor

@rchen152 rchen152 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! A couple of comments.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@bsolomon1124
Copy link
Contributor Author

A thought for a different PR: it might be sane to symlink docs/index.md to README.md, or vice versa. They do have a diff, but it looks like only a few relative links.

Copy link
Contributor

@rchen152 rchen152 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! (Please don't merge this PR directly; I'll need to import it and re-export to GitHub.)

@rchen152
Copy link
Contributor

A thought for a different PR: it might be sane to symlink docs/index.md to README.md, or vice versa. They do have a diff, but it looks like only a few relative links.

Our google3 -> GitHub export process copies the README to turn it into a home page for https://google.github.io/pytype, so yes, they are the same doc under the hood :)

@kamahen
Copy link
Contributor

kamahen commented Mar 31, 2020

If you're listing broken installs -- pytype doesn't install with Python3.7 on Ubuntu 18.04 (either native or with WSL). It works fine with Python3.6 on native Ubuntu but gives the same error message under WSL.

$ python3.7 -m pip install --upgrade --user .
Processing /home/peter/src/pytype
    Complete output from command python setup.py egg_info:
    Force-cleaning 'out' directory.
    Running CMake ...

    -- The C compiler identification is GNU 7.5.0
    -- The CXX compiler identification is GNU 7.5.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found BISON: /usr/bin/bison (found suitable version "3.0.4", minimum required is "3.0.2")
    -- Found FLEX: /usr/bin/flex (found suitable version "2.6.4", minimum required is "2.5.35")
    -- Found PythonInterp: /usr/bin/python3.7 (found version "3.7.5")
    -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found version "3.6.9")
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Check if compiler accepts -pthread
    -- Check if compiler accepts -pthread - yes
    -- Found Threads: TRUE
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /tmp/pip-h8a4hbrm-build/out

    Building flex and bison outputs ...

    Copying lexer.lex.cc to source tree ...

    Copying location.hh to source tree ...

    Copying parser.tab.cc to source tree ...

    Copying parser.tab.hh to source tree ...

    Copying position.hh to source tree ...

    Copying stack.hh to source tree ...

    running egg_info
    creating pip-egg-info/pytype.egg-info
    writing pip-egg-info/pytype.egg-info/PKG-INFO
    writing dependency_links to pip-egg-info/pytype.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/pytype.egg-info/entry_points.txt
    writing requirements to pip-egg-info/pytype.egg-info/requires.txt
    writing top-level names to pip-egg-info/pytype.egg-info/top_level.txt
    writing manifest file 'pip-egg-info/pytype.egg-info/SOURCES.txt'
    error: package directory 'find:' does not exist

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-h8a4hbrm-build/

rchen152 pushed a commit that referenced this pull request Mar 31, 2020
Related:

Resolves #541

PiperOrigin-RevId: 304020432
rchen152 pushed a commit that referenced this pull request Apr 1, 2020
Related:

Resolves #541

PiperOrigin-RevId: 304020432
rchen152 pushed a commit that referenced this pull request Apr 1, 2020
Related:

Resolves #541

PiperOrigin-RevId: 304020432
@rchen152 rchen152 closed this in 485a68c Apr 2, 2020
@bsolomon1124 bsolomon1124 deleted the doc-alpine-broken branch April 2, 2020 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants