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

Remove Feature module to match setuptools >=46.0.0 #76

Merged
merged 1 commit into from
May 21, 2020

Conversation

userkkw
Copy link
Contributor

@userkkw userkkw commented Mar 21, 2020

@rosbo
Copy link

rosbo commented Mar 27, 2020

This works for me.

I tested in a simple docker container. Here is the Dockerfile.

FROM continuumio/anaconda3:2019.03

RUN apt-get update && \
    apt-get install -y build-essential && \
    pip install pip==19.0.3 setuptools==46.1.3

ADD . openslide-python

RUN cd openslide-python && \
    pip install .

I then ran:

cd openslide-python
docker build --rm -t openslide -f Dockerfile .
(output) ... 
Successfully built openslide-python
Installing collected packages: openslide-python
Successfully installed openslide-python-1.1.1

Without this change, it was failing because the setuptools Feature has been removed for setuptools >= 0.46:

    ERROR: Command errored out with exit status 1:
     command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7qfdcpya/openslide-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7qfdcpya/openslide-python/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-7qfdcpya/openslide-python/pip-egg-info
         cwd: /tmp/pip-install-7qfdcpya/openslide-python/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-7qfdcpya/openslide-python/setup.py", line 2, in <module>
        from setuptools import setup, Extension, Feature
    ImportError: cannot import name 'Feature'
    ----------------------------------------

@sadeel
Copy link

sadeel commented Apr 22, 2020

Will this be merged to the repo?

@sbrugman
Copy link

Will this be merged to the repo?

@bgilbert @jaharkes

@robertschweizer
Copy link

Maybe @agoode?

@frapa
Copy link

frapa commented May 18, 2020

We're currently experiencing the issue, because OpenSlides does not install on setuptools >= 46. I think this should be merged ASAP, because the installation is broken.

I'm not a setuptools expert, but the PR looks good IMHO.

@agoode agoode merged commit 13ffa16 into openslide:master May 21, 2020
@frapa
Copy link

frapa commented May 22, 2020

Thanks for the merge! Is there any plan to release the fixes to pypi?

@agoode
Copy link
Member

agoode commented May 22, 2020

Hi,

Unfortunately, I've never done a pypi release. I don't know if one of the other folks could do it.

@sbrugman
Copy link

sbrugman commented May 22, 2020

@agoode According to the PyPi page Benjamin @bgilbert is the only one who could do this currently. If we can get a hold of him, he can do a release and/or add collaborators there.

@keeganwitt
Copy link

Was there any luck in getting in touch with Benjamin?

@sbrugman
Copy link

Was there any luck in getting in touch with Benjamin?

I'll have another shot

@alessiamarcolini
Copy link

Dear everyone, as a gesture of courtesy towards the community, we forked the openslide-python repo and we released it on PyPI. Please note that this is a temporary workaround to have openslide-python installable via pip without the setuptools issue.

https://pypi.org/project/openslide-wrapper/1.1.2/

cc @ernestoarbitrio and @nicolebussola

@bgilbert
Copy link
Member

We'll get a new release out soon.

@bgilbert
Copy link
Member

Followup PR in #95.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

10 participants