nnUNet icon indicating copy to clipboard operation
nnUNet copied to clipboard

ImportError: cannot import name 'find_namespace_packages'

Open mehnaz1985 opened this issue 3 years ago • 1 comments

Please read the following resources before posting issues: I am facing problem at the beginning of the installation

(nnUnet_ve) mehnaz@carlo-DGX-Station:~/environments/nnUNet/nnUNet$ pip install -e . Obtaining file:///home/mehnaz/environments/nnUNet/nnUNet Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/home/mehnaz/environments/nnUNet/nnUNet/setup.py", line 1, in from setuptools import setup, find_namespace_packages ImportError: cannot import name 'find_namespace_packages'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /home/mehnaz/environments/nnUNet/nnUNet/

Common questions: https://github.com/MIC-DKFZ/nnUNet/blob/master/documentation/common_questions.md

Common Problems and their solutions: https://github.com/MIC-DKFZ/nnUNet/blob/master/documentation/common_problems_and_solutions.md

Expected epoch times and tips on how to identify bottlenecks: https://github.com/MIC-DKFZ/nnUNet/blob/master/documentation/expected_epoch_times.md

mehnaz1985 avatar Feb 24 '22 05:02 mehnaz1985

pip install --upgrade setuptools #474

FabianIsensee avatar Mar 03 '22 08:03 FabianIsensee

Upgrading/Reinstalling setuptools seems to be the way to go on this. Based on some downvotes above, if the problem was not solved maybe providing further details would help us to provide a solution, but regardless this is not a nnUNet specific issue.

I will be closing the issue for the moment.

saikat-roy avatar Aug 03 '23 12:08 saikat-roy