Comments (7)
Thanks @fortunechen. Yes I also used to use the conda distribution of spams. More recently spams was made available on PyPI so I wanted to switch to that to make install simpler (not everyone uses conda). However it seems to be too buggy at the moment so I will consider to revert to conda again.
from staintools.
After commenting out the following lines,
# with open('README.md') as f:
# readme = f.read()
setup(
name='staintools',
version='2.1.1',
description='A package for tissue image stain normalization, augmentation and more.',
# long_description=readme,
author='Peter Byfield',
author_email='[email protected]',
url='https://github.com/Peter554/StainTools',
packages=find_packages(exclude=('tests')),
install_requires=[
'numpy',
'opencv-python',
'spams',
'matplotlib'
]
)
I tried installing from a local cloned directory using pip install -e .
and triggered the following error:
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ffbvu0zn/spams/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-3qf2_y4e/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ffbvu0zn/spams/
from staintools.
I haven't seen the first error before regarding readme encoding, just it should be easily fixable.
I'm more concerned about the second one regarding SPAMS. This is a package dependency that gives rather a headache it seems. It was recently made available of PyPI but unfortunately the install pip install spams
seems very buggy. Ideally that would be fixed or we would get rid of this dependency some how (but so far I haven't found anything suitable - sklearn did seem to have something similar but it was much slower).
from staintools.
I've sent the SPAMS dev team an email to ask about their pip install.
from staintools.
After commenting out the following lines,
# with open('README.md') as f: # readme = f.read() setup( name='staintools', version='2.1.1', description='A package for tissue image stain normalization, augmentation and more.', # long_description=readme, author='Peter Byfield', author_email='[email protected]', url='https://github.com/Peter554/StainTools', packages=find_packages(exclude=('tests')), install_requires=[ 'numpy', 'opencv-python', 'spams', 'matplotlib' ] )
I tried installing from a local cloned directory using
pip install -e .
and triggered the following error:Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ffbvu0zn/spams/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-3qf2_y4e/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ffbvu0zn/spams/
I installed spams
first by using conda https://anaconda.org/conda-forge/python-spams, and commented install_requires
lines, then pip install -e .
worked.
from staintools.
Response from SPAMS says they are looking into it but don't expect anything too soon. So for now I'll keep this issue open and have updated the README to advise using conda if possible.
pip install is currently broken due to the dependency on SPAMS. This issue has been raised with the SPAMS developers. In the meantime if you use conda you may have better luck resolving the SPAMS dependency via conda-forge:
from staintools.
Update:
long_description=readme
issue should now be resolved.- SPAMS install. For now have removed from setup.py and updated README to guide users to the conda option.
from staintools.
Related Issues (20)
- ModuleNotFoundError after installation HOT 3
- Make `pip install` great again (2) pip install documentation? HOT 1
- Floating point exception (core dumped) HOT 13
- Negative optical density issue HOT 1
- About stain normalization speed..... HOT 1
- Principal Eigen vectors inversion, based on the principal eigen vector HOT 5
- AssertionError: Negative optical density. HOT 10
- The software stops when have a empty tissue image when I tried to process hundreds of images HOT 3
- AttributeError: module 'staintools' has no attribute 'BrightnessStandardizer' HOT 2
- Copyright and usage question HOT 2
- ModuleNotFoundError after installation HOT 1
- Failed building wheel for spams HOT 1
- numpy.linalg.LinAlgError when calling transform HOT 2
- bad_array_new_length via vahadane/macenko on very large image
- MultiProcessing HOT 3
- omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
- GPU accelerate?
- Question about Normalization for Immunohistochemical Stainings
- Problem of using StainTools for a tensor input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from staintools.