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

pip install failing on wrapt uninstall #56

Closed
joemcglinchy opened this issue Dec 19, 2019 · 11 comments
Closed

pip install failing on wrapt uninstall #56

joemcglinchy opened this issue Dec 19, 2019 · 11 comments

Comments

@joemcglinchy
Copy link

Hello, I have a fresh conda environment and when running pip install DeepForest it fails when trying to uninstall wrapt:

Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

This is on windows 10.

@bw4sz
Copy link
Collaborator

bw4sz commented Dec 19, 2019 via email

@bw4sz
Copy link
Collaborator

bw4sz commented Dec 19, 2019

Note that DeepForest needs tensorflow < 2.0 and has been tested on tensorflow==1.14.0

@joemcglinchy
Copy link
Author

thanks. I was able to get tensorflow installed using this suggestion tensorflow/tensorflow#30191 (comment)

However, the wheel for keras-retinanet still is not able to build.

@bw4sz
Copy link
Collaborator

bw4sz commented Dec 19, 2019 via email

@bw4sz
Copy link
Collaborator

bw4sz commented Dec 19, 2019

also, can you confirm what you did in the other issue, i'm making a windows install note in the docs:

https://deepforest.readthedocs.io/en/latest/installation.html#windows-installation

@joemcglinchy
Copy link
Author

here's what I did:

>conda create -n deepforest
>pip install wrapt --upgrade --ignore-installed
>pip install tensorflow
>pip install DeepForest
Collecting DeepForest
  Using cached https://files.pythonhosted.org/packages/06/87/7444ebcfb0bf4f495445e465f4e12c6e4a106f673c336209ba855654663f/deepforest-0.2.6-py2.py3-none-any.whl
Requirement already satisfied: slidingwindow in c:\software\anaconda3\lib\site-packages (from DeepForest) (0.0.13)
Collecting tensorflow==1.14
  Using cached https://files.pythonhosted.org/packages/f7/08/25e47a53692c2e0dcd2211a493ddfe9007a5cd92e175d6dffa6169a0b392/tensorflow-1.14.0-cp37-cp37m-win_amd64.whl
Requirement already satisfied: matplotlib in c:\software\anaconda3\lib\site-packages (from DeepForest) (3.0.2)
Requirement already satisfied: xmltodict in c:\software\anaconda3\lib\site-packages (from DeepForest) (0.12.0)
Requirement already satisfied: pillow in c:\software\anaconda3\lib\site-packages (from DeepForest) (5.3.0)
Requirement already satisfied: opencv-python in c:\software\anaconda3\lib\site-packages (from DeepForest) (4.1.2.30)
Requirement already satisfied: tqdm in c:\software\anaconda3\lib\site-packages (from DeepForest) (4.28.1)
Requirement already satisfied: keras>2.3.0 in c:\software\anaconda3\lib\site-packages (from DeepForest) (2.3.1)
Requirement already satisfied: pyyaml in c:\software\anaconda3\lib\site-packages (from DeepForest) (3.13)
Requirement already satisfied: pandas in c:\software\anaconda3\lib\site-packages (from DeepForest) (0.23.4)
Requirement already satisfied: psutil in c:\software\anaconda3\lib\site-packages (from slidingwindow->DeepForest) (5.4.8)
Requirement already satisfied: numpy in c:\software\anaconda3\lib\site-packages (from slidingwindow->DeepForest) (1.17.4)
Requirement already satisfied: google-pasta>=0.1.6 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (0.1.8)
Requirement already satisfied: keras-preprocessing>=1.0.5 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (1.1.0)
Collecting tensorflow-estimator<1.15.0rc0,>=1.14.0rc0
  Using cached https://files.pythonhosted.org/packages/3c/d5/21860a5b11caf0678fbc8319341b0ae21a07156911132e0e71bffed0510d/tensorflow_estimator-1.14.0-py2.py3-none-any.whl
Requirement already satisfied: protobuf>=3.6.1 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (3.11.1)
Requirement already satisfied: termcolor>=1.1.0 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (1.1.0)
Requirement already satisfied: keras-applications>=1.0.6 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (1.0.8)
Requirement already satisfied: grpcio>=1.8.6 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (1.26.0)
Requirement already satisfied: wheel>=0.26 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (0.32.3)
Requirement already satisfied: astor>=0.6.0 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (0.8.1)
Requirement already satisfied: six>=1.10.0 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (1.12.0)
Requirement already satisfied: wrapt>=1.11.1 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (1.11.2)
Requirement already satisfied: gast>=0.2.0 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (0.2.2)
Collecting tensorboard<1.15.0,>=1.14.0
  Using cached https://files.pythonhosted.org/packages/91/2d/2ed263449a078cd9c8a9ba50ebd50123adf1f8cfbea1492f9084169b89d9/tensorboard-1.14.0-py3-none-any.whl
Requirement already satisfied: absl-py>=0.7.0 in c:\software\anaconda3\lib\site-packages (from tensorflow==1.14->DeepForest) (0.9.0)
Requirement already satisfied: cycler>=0.10 in c:\software\anaconda3\lib\site-packages (from matplotlib->DeepForest) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\software\anaconda3\lib\site-packages (from matplotlib->DeepForest) (1.0.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\software\anaconda3\lib\site-packages (from matplotlib->DeepForest) (2.3.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\software\anaconda3\lib\site-packages (from matplotlib->DeepForest) (2.7.5)
Requirement already satisfied: scipy>=0.14 in c:\software\anaconda3\lib\site-packages (from keras>2.3.0->DeepForest) (1.1.0)
Requirement already satisfied: h5py in c:\software\anaconda3\lib\site-packages (from keras>2.3.0->DeepForest) (2.8.0)
Requirement already satisfied: pytz>=2011k in c:\software\anaconda3\lib\site-packages (from pandas->DeepForest) (2018.7)
Requirement already satisfied: setuptools in c:\software\anaconda3\lib\site-packages (from protobuf>=3.6.1->tensorflow==1.14->DeepForest) (42.0.2)
Requirement already satisfied: markdown>=2.6.8 in c:\software\anaconda3\lib\site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14->DeepForest) (3.0.1)
Requirement already satisfied: werkzeug>=0.11.15 in c:\software\anaconda3\lib\site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14->DeepForest) (0.14.1)
Installing collected packages: tensorflow-estimator, tensorboard, tensorflow, DeepForest
  Found existing installation: tensorflow-estimator 2.0.1
    Uninstalling tensorflow-estimator-2.0.1:
      Successfully uninstalled tensorflow-estimator-2.0.1
  Found existing installation: tensorboard 2.0.2
    Uninstalling tensorboard-2.0.2:
      Successfully uninstalled tensorboard-2.0.2
  Found existing installation: tensorflow 2.0.0
    Uninstalling tensorflow-2.0.0:
      Successfully uninstalled tensorflow-2.0.0
Successfully installed DeepForest-0.2.6 tensorboard-1.14.0 tensorflow-1.14.0 tensorflow-estimator-1.14.0

(dforest) C:\software\keras-retinanet>pip install git+git://github.com/bw4sz/keras-retinanet.git
Collecting git+git://github.com/bw4sz/keras-retinanet.git
  Cloning git://github.com/bw4sz/keras-retinanet.git to c:\users\jomc9287\appdata\local\temp\pip-req-build-my57su3f
  Running command git clone -q git://github.com/bw4sz/keras-retinanet.git 'C:\Users\jomc9287\AppData\Local\Temp\pip-req-build-my57su3f'
  Running command git submodule update --init --recursive -q
Requirement already satisfied: keras in c:\software\anaconda3\lib\site-packages (from keras-retinanet==0.5.1) (2.3.1)
Requirement already satisfied: keras-resnet==0.1.0 in c:\software\anaconda3\lib\site-packages (from keras-retinanet==0.5.1) (0.1.0)
Requirement already satisfied: six in c:\software\anaconda3\lib\site-packages (from keras-retinanet==0.5.1) (1.12.0)
Requirement already satisfied: scipy in c:\software\anaconda3\lib\site-packages (from keras-retinanet==0.5.1) (1.1.0)
Requirement already satisfied: cython in c:\software\anaconda3\lib\site-packages (from keras-retinanet==0.5.1) (0.29.2)
Requirement already satisfied: Pillow in c:\software\anaconda3\lib\site-packages (from keras-retinanet==0.5.1) (5.3.0)
Requirement already satisfied: opencv-python in c:\software\anaconda3\lib\site-packages (from keras-retinanet==0.5.1) (4.1.2.30)
Requirement already satisfied: progressbar2 in c:\software\anaconda3\lib\site-packages (from keras-retinanet==0.5.1) (3.47.0)
Requirement already satisfied: numpy>=1.9.1 in c:\software\anaconda3\lib\site-packages (from keras->keras-retinanet==0.5.1) (1.17.4)
Requirement already satisfied: h5py in c:\software\anaconda3\lib\site-packages (from keras->keras-retinanet==0.5.1) (2.8.0)
Requirement already satisfied: pyyaml in c:\software\anaconda3\lib\site-packages (from keras->keras-retinanet==0.5.1) (3.13)
Requirement already satisfied: keras-applications>=1.0.6 in c:\software\anaconda3\lib\site-packages (from keras->keras-retinanet==0.5.1) (1.0.8)
Requirement already satisfied: keras-preprocessing>=1.0.5 in c:\software\anaconda3\lib\site-packages (from keras->keras-retinanet==0.5.1) (1.1.0)
Requirement already satisfied: python-utils>=2.3.0 in c:\software\anaconda3\lib\site-packages (from progressbar2->keras-retinanet==0.5.1) (2.3.0)
Building wheels for collected packages: keras-retinanet
  Building wheel for keras-retinanet (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\software\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jomc9287\\AppData\\Local\\Temp\\pip-req-build-my57su3f\\setup.py'"'"'; __file__='"'"'C:\\Users\\jomc9287\\AppData\\Local\\Temp\\pip-req-build-my57su3f\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\jomc9287\AppData\Local\Temp\pip-wheel-suvcjtwr' --python-tag cp37
       cwd: C:\Users\jomc9287\AppData\Local\Temp\pip-req-build-my57su3f\
  Complete output (93 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\keras_retinanet
  copying keras_retinanet\initializers.py -> build\lib.win-amd64-3.7\keras_retinanet
  copying keras_retinanet\losses.py -> build\lib.win-amd64-3.7\keras_retinanet
  copying keras_retinanet\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet
  creating build\lib.win-amd64-3.7\tests
  copying tests\test_losses.py -> build\lib.win-amd64-3.7\tests
  copying tests\__init__.py -> build\lib.win-amd64-3.7\tests
  creating build\lib.win-amd64-3.7\keras_retinanet\backend
  copying keras_retinanet\backend\cntk_backend.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
  copying keras_retinanet\backend\common.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
  copying keras_retinanet\backend\dynamic.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
  copying keras_retinanet\backend\tensorflow_backend.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
  copying keras_retinanet\backend\theano_backend.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
  copying keras_retinanet\backend\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
  creating build\lib.win-amd64-3.7\keras_retinanet\bin
  copying keras_retinanet\bin\convert_model.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
  copying keras_retinanet\bin\debug.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
  copying keras_retinanet\bin\evaluate.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
  copying keras_retinanet\bin\train.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
  copying keras_retinanet\bin\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
  creating build\lib.win-amd64-3.7\keras_retinanet\callbacks
  copying keras_retinanet\callbacks\coco.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
  copying keras_retinanet\callbacks\common.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
  copying keras_retinanet\callbacks\eval.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
  copying keras_retinanet\callbacks\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
  creating build\lib.win-amd64-3.7\keras_retinanet\layers
  copying keras_retinanet\layers\filter_detections.py -> build\lib.win-amd64-3.7\keras_retinanet\layers
  copying keras_retinanet\layers\_misc.py -> build\lib.win-amd64-3.7\keras_retinanet\layers
  copying keras_retinanet\layers\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\layers
  creating build\lib.win-amd64-3.7\keras_retinanet\models
  copying keras_retinanet\models\densenet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
  copying keras_retinanet\models\mobilenet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
  copying keras_retinanet\models\resnet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
  copying keras_retinanet\models\retinanet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
  copying keras_retinanet\models\vgg.py -> build\lib.win-amd64-3.7\keras_retinanet\models
  copying keras_retinanet\models\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\models
  creating build\lib.win-amd64-3.7\keras_retinanet\preprocessing
  copying keras_retinanet\preprocessing\coco.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
  copying keras_retinanet\preprocessing\csv_generator.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
  copying keras_retinanet\preprocessing\generator.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
  copying keras_retinanet\preprocessing\kitti.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
  copying keras_retinanet\preprocessing\open_images.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
  copying keras_retinanet\preprocessing\pascal_voc.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
  copying keras_retinanet\preprocessing\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
  creating build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\anchors.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\coco_eval.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\colors.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\config.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\eval.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\gpu.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\image.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\keras_version.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\model.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\tf_version.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\transform.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\visualization.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  copying keras_retinanet\utils\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
  creating build\lib.win-amd64-3.7\tests\backend
  copying tests\backend\test_common.py -> build\lib.win-amd64-3.7\tests\backend
  copying tests\backend\__init__.py -> build\lib.win-amd64-3.7\tests\backend
  creating build\lib.win-amd64-3.7\tests\layers
  copying tests\layers\test_filter_detections.py -> build\lib.win-amd64-3.7\tests\layers
  copying tests\layers\test_misc.py -> build\lib.win-amd64-3.7\tests\layers
  copying tests\layers\__init__.py -> build\lib.win-amd64-3.7\tests\layers
  creating build\lib.win-amd64-3.7\tests\models
  copying tests\models\test_densenet.py -> build\lib.win-amd64-3.7\tests\models
  copying tests\models\test_mobilenet.py -> build\lib.win-amd64-3.7\tests\models
  copying tests\models\__init__.py -> build\lib.win-amd64-3.7\tests\models
  creating build\lib.win-amd64-3.7\tests\preprocessing
  copying tests\preprocessing\test_csv_generator.py -> build\lib.win-amd64-3.7\tests\preprocessing
  copying tests\preprocessing\test_generator.py -> build\lib.win-amd64-3.7\tests\preprocessing
  copying tests\preprocessing\__init__.py -> build\lib.win-amd64-3.7\tests\preprocessing
  creating build\lib.win-amd64-3.7\tests\utils
  copying tests\utils\test_anchors.py -> build\lib.win-amd64-3.7\tests\utils
  copying tests\utils\test_transform.py -> build\lib.win-amd64-3.7\tests\utils
  copying tests\utils\__init__.py -> build\lib.win-amd64-3.7\tests\utils
  running build_ext
  cythoning keras_retinanet/utils/compute_overlap.pyx to keras_retinanet/utils\compute_overlap.c
  c:\software\anaconda3\lib\site-packages\Cython\Compiler\Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\jomc9287\AppData\Local\Temp\pip-req-build-my57su3f\keras_retinanet\utils\compute_overlap.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  building 'keras_retinanet.utils.compute_overlap' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\keras_retinanet
  creating build\temp.win-amd64-3.7\Release\keras_retinanet\utils
  cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ic:\software\anaconda3\include -Ic:\software\anaconda3\include -Ic:\software\anaconda3\lib\site-packages\numpy\core\include /Tckeras_retinanet/utils\compute_overlap.c /Fobuild\temp.win-amd64-3.7\Release\keras_retinanet/utils\compute_overlap.obj
  error: command 'cl.exe' failed: No such file or directory
  ----------------------------------------
  ERROR: Failed building wheel for keras-retinanet
  Running setup.py clean for keras-retinanet
Failed to build keras-retinanet
Installing collected packages: keras-retinanet
    Running setup.py install for keras-retinanet ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\software\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jomc9287\\AppData\\Local\\Temp\\pip-req-build-my57su3f\\setup.py'"'"'; __file__='"'"'C:\\Users\\jomc9287\\AppData\\Local\\Temp\\pip-req-build-my57su3f\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\jomc9287\AppData\Local\Temp\pip-record-wzkt79mq\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\jomc9287\AppData\Local\Temp\pip-req-build-my57su3f\
    Complete output (91 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\keras_retinanet
    copying keras_retinanet\initializers.py -> build\lib.win-amd64-3.7\keras_retinanet
    copying keras_retinanet\losses.py -> build\lib.win-amd64-3.7\keras_retinanet
    copying keras_retinanet\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet
    creating build\lib.win-amd64-3.7\tests
    copying tests\test_losses.py -> build\lib.win-amd64-3.7\tests
    copying tests\__init__.py -> build\lib.win-amd64-3.7\tests
    creating build\lib.win-amd64-3.7\keras_retinanet\backend
    copying keras_retinanet\backend\cntk_backend.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
    copying keras_retinanet\backend\common.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
    copying keras_retinanet\backend\dynamic.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
    copying keras_retinanet\backend\tensorflow_backend.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
    copying keras_retinanet\backend\theano_backend.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
    copying keras_retinanet\backend\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\backend
    creating build\lib.win-amd64-3.7\keras_retinanet\bin
    copying keras_retinanet\bin\convert_model.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
    copying keras_retinanet\bin\debug.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
    copying keras_retinanet\bin\evaluate.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
    copying keras_retinanet\bin\train.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
    copying keras_retinanet\bin\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\bin
    creating build\lib.win-amd64-3.7\keras_retinanet\callbacks
    copying keras_retinanet\callbacks\coco.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
    copying keras_retinanet\callbacks\common.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
    copying keras_retinanet\callbacks\eval.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
    copying keras_retinanet\callbacks\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\callbacks
    creating build\lib.win-amd64-3.7\keras_retinanet\layers
    copying keras_retinanet\layers\filter_detections.py -> build\lib.win-amd64-3.7\keras_retinanet\layers
    copying keras_retinanet\layers\_misc.py -> build\lib.win-amd64-3.7\keras_retinanet\layers
    copying keras_retinanet\layers\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\layers
    creating build\lib.win-amd64-3.7\keras_retinanet\models
    copying keras_retinanet\models\densenet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
    copying keras_retinanet\models\mobilenet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
    copying keras_retinanet\models\resnet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
    copying keras_retinanet\models\retinanet.py -> build\lib.win-amd64-3.7\keras_retinanet\models
    copying keras_retinanet\models\vgg.py -> build\lib.win-amd64-3.7\keras_retinanet\models
    copying keras_retinanet\models\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\models
    creating build\lib.win-amd64-3.7\keras_retinanet\preprocessing
    copying keras_retinanet\preprocessing\coco.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
    copying keras_retinanet\preprocessing\csv_generator.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
    copying keras_retinanet\preprocessing\generator.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
    copying keras_retinanet\preprocessing\kitti.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
    copying keras_retinanet\preprocessing\open_images.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
    copying keras_retinanet\preprocessing\pascal_voc.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
    copying keras_retinanet\preprocessing\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\preprocessing
    creating build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\anchors.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\coco_eval.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\colors.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\config.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\eval.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\gpu.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\image.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\keras_version.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\model.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\tf_version.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\transform.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\visualization.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    copying keras_retinanet\utils\__init__.py -> build\lib.win-amd64-3.7\keras_retinanet\utils
    creating build\lib.win-amd64-3.7\tests\backend
    copying tests\backend\test_common.py -> build\lib.win-amd64-3.7\tests\backend
    copying tests\backend\__init__.py -> build\lib.win-amd64-3.7\tests\backend
    creating build\lib.win-amd64-3.7\tests\layers
    copying tests\layers\test_filter_detections.py -> build\lib.win-amd64-3.7\tests\layers
    copying tests\layers\test_misc.py -> build\lib.win-amd64-3.7\tests\layers
    copying tests\layers\__init__.py -> build\lib.win-amd64-3.7\tests\layers
    creating build\lib.win-amd64-3.7\tests\models
    copying tests\models\test_densenet.py -> build\lib.win-amd64-3.7\tests\models
    copying tests\models\test_mobilenet.py -> build\lib.win-amd64-3.7\tests\models
    copying tests\models\__init__.py -> build\lib.win-amd64-3.7\tests\models
    creating build\lib.win-amd64-3.7\tests\preprocessing
    copying tests\preprocessing\test_csv_generator.py -> build\lib.win-amd64-3.7\tests\preprocessing
    copying tests\preprocessing\test_generator.py -> build\lib.win-amd64-3.7\tests\preprocessing
    copying tests\preprocessing\__init__.py -> build\lib.win-amd64-3.7\tests\preprocessing
    creating build\lib.win-amd64-3.7\tests\utils
    copying tests\utils\test_anchors.py -> build\lib.win-amd64-3.7\tests\utils
    copying tests\utils\test_transform.py -> build\lib.win-amd64-3.7\tests\utils
    copying tests\utils\__init__.py -> build\lib.win-amd64-3.7\tests\utils
    running build_ext
    skipping 'keras_retinanet/utils\compute_overlap.c' Cython extension (up-to-date)
    building 'keras_retinanet.utils.compute_overlap' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\keras_retinanet
    creating build\temp.win-amd64-3.7\Release\keras_retinanet\utils
    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ic:\software\anaconda3\include -Ic:\software\anaconda3\include -Ic:\software\anaconda3\lib\site-packages\numpy\core\include /Tckeras_retinanet/utils\compute_overlap.c /Fobuild\temp.win-amd64-3.7\Release\keras_retinanet/utils\compute_overlap.obj
    error: command 'cl.exe' failed: No such file or directory
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\software\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jomc9287\\AppData\\Local\\Temp\\pip-req-build-my57su3f\\setup.py'"'"'; __file__='"'"'C:\\Users\\jomc9287\\AppData\\Local\\Temp\\pip-req-build-my57su3f\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\jomc9287\AppData\Local\Temp\pip-record-wzkt79mq\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

@bw4sz
Copy link
Collaborator

bw4sz commented Dec 20, 2019

Couple quick things. But I'm going to open up an azure windows instance to try to replicate.

pip install tensorflow

will give you 2.0, but < 2.0 is required by DeepForest, which is why you can see that pip install DeepForest uninstalls the tensorflow you just installed, and then installs tensorflow 1.14.0. I'll test making any < 2.0 available, but for the moment

pip install tensorflow==1.14.0 

is preferred.

For retinanet, I can see that you actually install fine, its building the C library after install which fails. That message means you do not have a valid c++ compiler on path.

https://stackoverflow.com/questions/41724445/python-pip-on-windows-command-cl-exe-failed

After we finish i'll try to brainstorm ways to wrap this together, maybe with pyinstaller for windows.

@bw4sz
Copy link
Collaborator

bw4sz commented Dec 20, 2019 via email

@bw4sz
Copy link
Collaborator

bw4sz commented Dec 20, 2019

This might be sufficient, https://wiki.python.org/moin/WindowsCompilers

will test on azure

@bw4sz
Copy link
Collaborator

bw4sz commented Jan 6, 2020

@joemcglinchy , I'm building a separate wheel for windows for the compiled c++ code. I will update here.

@bw4sz
Copy link
Collaborator

bw4sz commented Jan 9, 2020

#60 new compiled wheels for many python version and operating systems, this should make install much easier.

On a new azure windows 2019 data science image (https://azure.microsoft.com/en-us/services/virtual-machines/data-science-virtual-machines/)

benweinstein@windowstest C:\Users\benweinstein>conda create python=3.6 -n test
(test) benweinstein@windowstest C:\Users\benweinstein>pip install DeepForest
Collecting DeepForest
  Downloading https://files.pythonhosted.org/packages/71/6e/a88757c0f580c2647527c0a786d19d0bb46a4b5d8ee96eae9acb35fb25cd/deepforest-0.2.8-cp36-cp36m-win_a
md64.whl (8.2MB)
...
Successfully built keras-resnet gast absl-py termcolor wrapt
Installing collected packages: six, numpy, h5py, pyyaml, scipy, keras-preprocessing, keras-applications, keras, cycler, kiwisolver, python-dateutil, pypar
sing, matplotlib, astor, grpcio, gast, absl-py, google-pasta, markdown, protobuf, werkzeug, tensorboard, tensorflow-estimator, termcolor, wrapt, tensorflo
w, Pillow, pytz, pandas, tqdm, psutil, slidingwindow, keras-resnet, opencv-python, python-utils, progressbar2, xmltodict, DeepForest
Successfully installed DeepForest-0.2.8 Pillow-7.0.0 absl-py-0.9.0 astor-0.8.1 cycler-0.10.0 gast-0.3.2 google-pasta-0.1.8 grpcio-1.26.0 h5py-2.10.0 keras
-2.3.1 keras-applications-1.0.8 keras-preprocessing-1.1.0 keras-resnet-0.1.0 kiwisolver-1.1.0 markdown-3.1.1 matplotlib-3.1.2 numpy-1.18.1 opencv-python-4
.1.2.30 pandas-0.25.3 progressbar2-3.47.0 protobuf-3.11.2 psutil-5.6.7 pyparsing-2.4.6 python-dateutil-2.8.1 python-utils-2.3.0 pytz-2019.3 pyyaml-5.3 sci
py-1.4.1 six-1.13.0 slidingwindow-0.0.13 tensorboard-1.14.0 tensorflow-1.14.0 tensorflow-estimator-1.14.0 termcolor-1.1.0 tqdm-4.41.1 werkzeug-0.16.0 wrap
t-1.11.2 xmltodict-0.12.0

Check the code on the front of the repo

(test) benweinstein@windowstest C:\Users\benweinstein>python
Python 3.6.10 |Anaconda, Inc.| (default, Jan  7 2020, 15:18:16) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> from deepforest import deepforest
Using TensorFlow backend.
>>> from deepforest import get_data
>>>
>>> test_model = deepforest.deepforest()
Reading config file: c:\Miniconda\envs\test\lib\site-packages\deepforest\data\deepforest_config.yml
A blank deepforest object created. To perform prediction, either train or load an existing model.
>>> test_model.use_release()
Downloading model from DeepForest release v0.2.1, see https://github.com/weecology/DeepForest/releases/tag/v0.2.1 for details
finetuned_weights_20191126_170710.h5: 146MB [00:03, 37.7MB/s]
Model was downloaded and saved to c:\Miniconda\envs\test\lib\site-packages\deepforest\data/NEON.h5
Loading pre-built model: https://github.com/weecology/DeepForest/releases/tag/v0.2.1
WARNING:tensorflow:From c:\Miniconda\envs\test\lib\site-packages\keras\backend\tensorflow_backend.py:4070: The name tf.nn.max_pool is deprecated. Please u
se tf.nn.max_pool2d instead.

2020-01-09 18:00:20.663049: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compil
ed to use: AVX2
tracking <tf.Variable 'Variable:0' shape=(9, 4) dtype=float32> anchors
tracking <tf.Variable 'Variable_1:0' shape=(9, 4) dtype=float32> anchors
tracking <tf.Variable 'Variable_2:0' shape=(9, 4) dtype=float32> anchors
tracking <tf.Variable 'Variable_3:0' shape=(9, 4) dtype=float32> anchors
tracking <tf.Variable 'Variable_4:0' shape=(9, 4) dtype=float32> anchors
WARNING:tensorflow:From c:\Miniconda\envs\test\lib\site-packages\keras_retinanet\backend\tensorflow_backend.py:104: add_dispatch_support.<locals>.wrapper
(from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
>>>
>>> #predict image
... image_path = get_data("OSBS_029.tif")
>>> image = test_model.predict_image(image_path = image_path)

Looks good to me. Closing. Feel free to open if new install fails.

@bw4sz bw4sz closed this as completed Jan 9, 2020
ethanwhite pushed a commit that referenced this issue Jun 4, 2021
janjatovic pushed a commit to Treeconomy/DeepForest_new that referenced this issue Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants