Closed ntomita closed 6 years ago
Same here, on ubuntu 16.04, python 3.5.
After installing staintools from pip, I could not find the stain_extractors directory in the package directory. Terminal screen for demonstration:
scorbie@scorbie-laptop /usr/local/lib/python3.5/dist-packages/staintools
$ ls
__init__.py reinhard_color_normalizer.py stain_normalizer.py
__pycache__ stain_augmentor.py utils
On setup.py
, line 14 setuptools.find_packages()
is used.
Browsing the setuptools documentation, it seems like find_packages()
only recognizes packages that contain __init__.py
, which only stain_extractors
does not have.
Thus, I think a simple fix of adding __init__.py
to the stain_extractors
directory may solve the issue. I'll test it and send you a pull request if it works.
Edit: That worked. Am writing a pull request right now. Until the change gets on its way, one can manually apply the change by manually copying the missing folders and files from Github.
Awesome, thanks! @Scorbie
Yes sorry not sure how I missed that init file
Hi Peter,
I got a ModuleNotFoundError when importing staintools. Here's the traceback:
I installed staintools via pip on Ubuntu16.04 with python 3.6. I installed the required library as well. Do you have any idea why this happens and how to make it work properly?