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

threadpool issue #44

Open
martinschorb opened this issue Feb 12, 2024 · 11 comments
Open

threadpool issue #44

martinschorb opened this issue Feb 12, 2024 · 11 comments

Comments

@martinschorb
Copy link
Contributor

Hi,

I am trying to set up mboie_utils on Windows and Python 3.9 (fresh mamba installation, no other packages).
I run into:

...\cluster_tools\watershed\watershed.py", line 140, in <module>
    @threadpool_limits.wrap(limits=1)  # restrict the numpy threadpool to 1 to avoid oversubscription
AttributeError: type object 'threadpool_limits' has no attribute 'wrap'

I remember having hit this before but could not find an issue for it.

@martinschorb
Copy link
Contributor Author

running a pip install -U threadpoolctl after the mobie_utils installation does the Job.
Maybe the environment can be adapted accordingly.

@constantinpape
Copy link
Owner

Thanks! I guess threadpoolctl is missing from some dependency list.

@martinschorb
Copy link
Contributor Author

I really had a lot of dependency trouble installing the mobie conda env using a miniforge base environment under Windows,
When using the full-blown Anaconda and installing mamba in there and then creating the mobie env, there were no issues.

@constantinpape
Copy link
Owner

The issue with threadpoolctl should be fixed here: conda-forge/python-elf-feedstock#12

@constantinpape
Copy link
Owner

For other dependency issues feel free to create a new issue.

@martinschorb
Copy link
Contributor Author

Just running into that again...

  • Brand new Anaconda or Miniforge
  • conda install mobie_utils -c conda-forge
  • python -c import mobie

Throws that error.

@martinschorb martinschorb reopened this Feb 20, 2024
@martinschorb
Copy link
Contributor Author

import cluster_tools is sufficient to throw the error.
import elf works.

versions shipped by conda-forge:

python-elf-0.5.0
cluster_tools-0.4.6
mobie_utils-0.4.5

Python is the conda default 3.11.5 Could that be causing problems?

@martinschorb
Copy link
Contributor Author

same issue with Python 3.10.13 in Miniforge

@martinschorb
Copy link
Contributor Author

works now in a fresh Anaconda with new environment Python 3.11.9 I am starting to hate this conda mess...

@constantinpape
Copy link
Owner

This seems to depend on the version of threadpoolctl. I will set a lower version limit with the new release here.

@constantinpape
Copy link
Owner

This should be fixed for environments that include mobie_utils with the new release.
See https://github.com/conda-forge/mobie_utils-feedstock/pull/18/files.

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

No branches or pull requests

2 participants