chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
856 stars 132 forks source link

unable to pip install mmcv-full == 1.0.5 #414

Closed AngSoonKim closed 3 years ago

AngSoonKim commented 3 years ago

I was able to build with mmdet==2.3.0 (see #413) however, it requires the use of mmcv ==1.0.5

I ran into an issue where typing.py was causing the problem and uninstalled it. However I met with subprocess error next which I did not managed to find a good solution to.

> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:extractPythonBuildPackages UP-TO-DATE

> Task :app:generateDebugPythonRequirements
Chaquopy: Installing for armeabi-v7a
Looking in indexes: https://pypi.org/simple, https://chaquo.com/pypi-7.0
Collecting mmcv-full==1.0.5
  Using cached https://files.pythonhosted.org/packages/81/21/ac881594427f879bc35a0803ad1159c287ebc85b273618fcc622192d7291/mmcv-full-1.0.5.tar.gz
Collecting numpy
  Using version 1.17.4 (newest version is 1.19.4, but Chaquopy prefers native wheels)
  Using cached https://chaquo.com/pypi-7.0/numpy/numpy-1.17.4-3-cp38-cp38-android_16_armeabi_v7a.whl
Collecting cython
  Using cached https://files.pythonhosted.org/packages/ad/4b/9e53bcce3c959fd0db143626e573210bba07be810fe8d7296373948c4183/Cython-0.29.21-py2.py3-none-any.whl
Collecting matplotlib
  Using version 3.1.2 (newest version is 3.3.3, but Chaquopy prefers native wheels)
  Using cached https://chaquo.com/pypi-7.0/matplotlib/matplotlib-3.1.2-1-cp38-cp38-android_16_armeabi_v7a.whl
Collecting torch
  Using cached https://chaquo.com/pypi-7.0/torch/torch-1.4.0-2-cp38-cp38-android_16_armeabi_v7a.whl
Collecting mmdet==2.3.0
  Using cached https://files.pythonhosted.org/packages/d0/37/1a78b3e4d319b3620d7f95a940073311502204578bd639b6a30ef2b96128/mmdet-2.3.0-py3-none-any.whl
Collecting addict (from mmcv-full==1.0.5)
  Using cached https://files.pythonhosted.org/packages/6a/00/b08f23b7d7e1e14ce01419a467b583edbb93c6cdb8654e54a9cc579cd61f/addict-2.4.0-py3-none-any.whl
Collecting pyyaml (from mmcv-full==1.0.5)
Collecting yapf (from mmcv-full==1.0.5)
  Using cached https://files.pythonhosted.org/packages/c1/5d/d84677fe852bc5e091739acda444a9b6700ffc6b11a21b00dd244c8caef0/yapf-0.30.0-py2.py3-none-any.whl
Collecting opencv-python-headless>=3 (from mmcv-full==1.0.5)
  Using version 4.1.2.30 (newest version is 4.4.0.46, but Chaquopy prefers native wheels)
  Using cached https://chaquo.com/pypi-7.0/opencv-python-headless/opencv_python_headless-4.1.2.30-1-cp38-cp38-android_16_armeabi_v7a.whl
Collecting chaquopy-openblas>=0.2.20 (from numpy)
  Using cached https://chaquo.com/pypi-7.0/chaquopy-openblas/chaquopy_openblas-0.2.20-5-py3-none-android_16_armeabi_v7a.whl
Collecting chaquopy-libpng>=1.6.34 (from matplotlib)
  Using cached https://chaquo.com/pypi-7.0/chaquopy-libpng/chaquopy_libpng-1.6.34-1-py3-none-android_16_armeabi_v7a.whl
Collecting chaquopy-freetype>=2.9.1 (from matplotlib)
  Using cached https://chaquo.com/pypi-7.0/chaquopy-freetype/chaquopy_freetype-2.9.1-1-py3-none-android_16_armeabi_v7a.whl
Collecting cycler>=0.10 (from matplotlib)
  Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting kiwisolver>=1.0.1 (from matplotlib)
  Using version 1.1.0 (newest version is 1.3.1, but Chaquopy prefers native wheels)
  Using cached https://chaquo.com/pypi-7.0/kiwisolver/kiwisolver-1.1.0-1-cp38-cp38-android_16_armeabi_v7a.whl
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib)
  Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl
Collecting chaquopy-libcxx>=7000 (from matplotlib)
  Using cached https://chaquo.com/pypi-7.0/chaquopy-libcxx/chaquopy_libcxx-7000-2-py3-none-android_16_armeabi_v7a.whl
Collecting python-dateutil>=2.1 (from matplotlib)
  Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl
Collecting chaquopy-libgfortran>=4.9 (from torch)
  Using cached https://chaquo.com/pypi-7.0/chaquopy-libgfortran/chaquopy_libgfortran-4.9-0-py3-none-android_16_armeabi_v7a.whl
Collecting six (from mmdet==2.3.0)
  Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Collecting terminaltables (from mmdet==2.3.0)
Collecting chaquopy-libjpeg>=1.5.3 (from opencv-python-headless>=3->mmcv-full==1.0.5)
  Using cached https://chaquo.com/pypi-7.0/chaquopy-libjpeg/chaquopy_libjpeg-1.5.3-1-py3-none-android_16_armeabi_v7a.whl
Collecting setuptools (from kiwisolver>=1.0.1->matplotlib)
  Using cached https://files.pythonhosted.org/packages/6e/77/e921ae5c370698762cf645797f42e6d4d7e679f705a8a9697234591808aa/setuptools-51.1.0.post20201221-py3-none-any.whl
Building wheels for collected packages: mmcv-full
  Running setup.py bdist_wheel for mmcv-full: started
  Running setup.py bdist_wheel for mmcv-full: finished with status 'error'
  Complete output from command /home/adotesdotekdote/miniconda3/bin/python -u -S -c "import setuptools, tokenize;__file__='/tmp/pip-install-h0_pr7zk/mmcv-full/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 /tmp/pip-wheel-lznn21_e --python-tag py3:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/mmcv
  copying mmcv/__init__.py -> build/lib.linux-x86_64-3.8/mmcv
  copying mmcv/version.py -> build/lib.linux-x86_64-3.8/mmcv
  creating build/lib.linux-x86_64-3.8/mmcv/fileio
  copying mmcv/fileio/io.py -> build/lib.linux-x86_64-3.8/mmcv/fileio
  copying mmcv/fileio/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/fileio
  copying mmcv/fileio/file_client.py -> build/lib.linux-x86_64-3.8/mmcv/fileio
  copying mmcv/fileio/parse.py -> build/lib.linux-x86_64-3.8/mmcv/fileio
  creating build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/masked_conv.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/info.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/sync_bn.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/corner_pool.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/merge_cells.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/cc_attention.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/roi_align.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/nms.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/psa_mask.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/carafe.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/roi_pool.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/deform_roi_pool.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/deform_conv.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/wrappers.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/point_sample.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/focal_loss.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/saconv.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/modulated_deform_conv.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  copying mmcv/ops/bbox.py -> build/lib.linux-x86_64-3.8/mmcv/ops
  creating build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/path.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/config.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/env.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/ext_loader.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/parrots_wrapper.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/logging.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/progressbar.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/timer.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/registry.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/version_utils.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  copying mmcv/utils/misc.py -> build/lib.linux-x86_64-3.8/mmcv/utils
  creating build/lib.linux-x86_64-3.8/mmcv/video
  copying mmcv/video/io.py -> build/lib.linux-x86_64-3.8/mmcv/video
  copying mmcv/video/processing.py -> build/lib.linux-x86_64-3.8/mmcv/video
  copying mmcv/video/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/video
  copying mmcv/video/optflow.py -> build/lib.linux-x86_64-3.8/mmcv/video
  creating build/lib.linux-x86_64-3.8/mmcv/image
  copying mmcv/image/io.py -> build/lib.linux-x86_64-3.8/mmcv/image
  copying mmcv/image/photometric.py -> build/lib.linux-x86_64-3.8/mmcv/image
  copying mmcv/image/colorspace.py -> build/lib.linux-x86_64-3.8/mmcv/image
  copying mmcv/image/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/image
  copying mmcv/image/misc.py -> build/lib.linux-x86_64-3.8/mmcv/image
  copying mmcv/image/geometric.py -> build/lib.linux-x86_64-3.8/mmcv/image
  creating build/lib.linux-x86_64-3.8/mmcv/cnn
  Command "/home/adotesdotekdote/miniconda3/bin/python -u -S -c "import setuptools, tokenize;__file__='/tmp/pip-install-h0_pr7zk/mmcv-full/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 /tmp/pip-wheel-lznn21_e --python-tag py3" failed with error code 1 in /tmp/pip-install-h0_pr7zk/mmcv-full/
  copying mmcv/cnn/vgg.py -> build/lib.linux-x86_64-3.8/mmcv/cnn
  copying mmcv/cnn/alexnet.py -> build/lib.linux-x86_64-3.8/mmcv/cnn
  copying mmcv/cnn/resnet.py -> build/lib.linux-x86_64-3.8/mmcv/cnn
  copying mmcv/cnn/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/cnn
  creating build/lib.linux-x86_64-3.8/mmcv/visualization
  copying mmcv/visualization/color.py -> build/lib.linux-x86_64-3.8/mmcv/visualization
  copying mmcv/visualization/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/visualization
  copying mmcv/visualization/optflow.py -> build/lib.linux-x86_64-3.8/mmcv/visualization
  copying mmcv/visualization/image.py -> build/lib.linux-x86_64-3.8/mmcv/visualization
  creating build/lib.linux-x86_64-3.8/mmcv/arraymisc
  copying mmcv/arraymisc/quantization.py -> build/lib.linux-x86_64-3.8/mmcv/arraymisc
  copying mmcv/arraymisc/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/arraymisc
  creating build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/dist_utils.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/iter_based_runner.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/priority.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/fp16_utils.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/utils.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/epoch_based_runner.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/checkpoint.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/log_buffer.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  copying mmcv/runner/base_runner.py -> build/lib.linux-x86_64-3.8/mmcv/runner
  creating build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/scatter_gather.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/distributed.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/utils.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/collate.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/distributed_deprecated.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/data_container.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/registry.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/data_parallel.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  copying mmcv/parallel/_functions.py -> build/lib.linux-x86_64-3.8/mmcv/parallel
  creating build/lib.linux-x86_64-3.8/mmcv/onnx
  copying mmcv/onnx/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/onnx
  copying mmcv/onnx/symbolic.py -> build/lib.linux-x86_64-3.8/mmcv/onnx
  creating build/lib.linux-x86_64-3.8/mmcv/fileio/handlers
  copying mmcv/fileio/handlers/json_handler.py -> build/lib.linux-x86_64-3.8/mmcv/fileio/handlers
  copying mmcv/fileio/handlers/base.py -> build/lib.linux-x86_64-3.8/mmcv/fileio/handlers
  copying mmcv/fileio/handlers/pickle_handler.py -> build/lib.linux-x86_64-3.8/mmcv/fileio/handlers
  copying mmcv/fileio/handlers/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/fileio/handlers
  copying mmcv/fileio/handlers/yaml_handler.py -> build/lib.linux-x86_64-3.8/mmcv/fileio/handlers
  creating build/lib.linux-x86_64-3.8/mmcv/video/optflow_warp
  copying mmcv/video/optflow_warp/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/video/optflow_warp
  creating build/lib.linux-x86_64-3.8/mmcv/cnn/utils
  copying mmcv/cnn/utils/flops_counter.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/utils
  copying mmcv/cnn/utils/weight_init.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/utils
  copying mmcv/cnn/utils/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/utils
  copying mmcv/cnn/utils/fuse_conv_bn.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/utils
  creating build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/conv_module.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/norm.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/context_block.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/activation.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/hswish.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/conv_ws.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/upsample.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/non_local.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/generalized_attention.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/registry.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/hsigmoid.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/conv.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/padding.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/plugin.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  copying mmcv/cnn/bricks/scale.py -> build/lib.linux-x86_64-3.8/mmcv/cnn/bricks
  creating build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/momentum_updater.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/optimizer.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/ema.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/hook.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/lr_updater.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/iter_timer.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/sampler_seed.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/closure.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/sync_buffer.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/checkpoint.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  copying mmcv/runner/hooks/memory.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks
  creating build/lib.linux-x86_64-3.8/mmcv/runner/optimizer
  copying mmcv/runner/optimizer/builder.py -> build/lib.linux-x86_64-3.8/mmcv/runner/optimizer
  copying mmcv/runner/optimizer/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/runner/optimizer
  copying mmcv/runner/optimizer/default_constructor.py -> build/lib.linux-x86_64-3.8/mmcv/runner/optimizer
  creating build/lib.linux-x86_64-3.8/mmcv/runner/hooks/logger
  copying mmcv/runner/hooks/logger/wandb.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks/logger
  copying mmcv/runner/hooks/logger/base.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks/logger
  copying mmcv/runner/hooks/logger/tensorboard.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks/logger
  copying mmcv/runner/hooks/logger/mlflow.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks/logger
  copying mmcv/runner/hooks/logger/text.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks/logger
  copying mmcv/runner/hooks/logger/pavi.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks/logger
  copying mmcv/runner/hooks/logger/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/runner/hooks/logger
  creating build/lib.linux-x86_64-3.8/mmcv/onnx/onnx_utils
  copying mmcv/onnx/onnx_utils/symbolic_helper.py -> build/lib.linux-x86_64-3.8/mmcv/onnx/onnx_utils
  copying mmcv/onnx/onnx_utils/__init__.py -> build/lib.linux-x86_64-3.8/mmcv/onnx/onnx_utils
  running egg_info
  writing mmcv_full.egg-info/PKG-INFO
  writing dependency_links to mmcv_full.egg-info/dependency_links.txt
  writing requirements to mmcv_full.egg-info/requires.txt
  writing top-level names to mmcv_full.egg-info/top_level.txt
  reading manifest file 'mmcv_full.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'mmcv_full.egg-info/SOURCES.txt'
  creating build/lib.linux-x86_64-3.8/mmcv/model_zoo
  copying mmcv/model_zoo/deprecated.json -> build/lib.linux-x86_64-3.8/mmcv/model_zoo
  copying mmcv/model_zoo/open_mmlab.json -> build/lib.linux-x86_64-3.8/mmcv/model_zoo
  creating build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/bbox_overlaps_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/carafe_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/carafe_naive_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/cc_attention_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/common_cuda_helper.hpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/deform_conv_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/deform_roi_pool_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/masked_conv2d_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/modulated_deform_conv_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/nms_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/parrots_cpp_helper.hpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/parrots_cuda_helper.hpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/parrots_cudawarpfunction.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/psamask_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/pytorch_cpp_helper.hpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/pytorch_cuda_helper.hpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/roi_align_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/roi_pool_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/sigmoid_focal_loss_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/softmax_focal_loss_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  copying mmcv/ops/csrc/sync_bn_cuda_kernel.cuh -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc
  creating build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/bbox_overlaps.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/bbox_overlaps_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/carafe.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/carafe_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/carafe_naive.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/carafe_naive_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/cc_attention.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/cc_attention_cuda_kernel.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/corner_pool.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/deform_conv.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/deform_conv_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/deform_roi_pool.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/deform_roi_pool_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/focal_loss.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/focal_loss_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/masked_conv2d.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/masked_conv2d_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/modulated_deform_conv.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/modulated_deform_conv_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/nms.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/nms_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/parrots_cpp_helper.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/parrots_cuda_helper.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/psamask.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/psamask_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/roi_align.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/roi_align_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/roi_pool.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/roi_pool_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/sync_bn.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  copying mmcv/ops/csrc/parrots/sync_bn_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/parrots
  creating build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/bbox_overlaps.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/carafe.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/carafe_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/carafe_naive.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/carafe_naive_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/cc_attention.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/cc_attention_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/corner_pool.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/deform_conv.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/deform_conv_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/deform_roi_pool.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/deform_roi_pool_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/focal_loss.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/focal_loss_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/info.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/masked_conv2d.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/masked_conv2d_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/modulated_deform_conv.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/modulated_deform_conv_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/nms.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/nms_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/psamask.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/psamask_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/pybind.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/roi_align.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/roi_align_cpu.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/roi_align_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/roi_pool.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/roi_pool_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/sync_bn.cpp -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/ops/csrc/pytorch/sync_bn_cuda.cu -> build/lib.linux-x86_64-3.8/mmcv/ops/csrc/pytorch
  copying mmcv/video/optflow_warp/flow_warp.hpp -> build/lib.linux-x86_64-3.8/mmcv/video/optflow_warp
  copying mmcv/video/optflow_warp/flow_warp_module.pyx -> build/lib.linux-x86_64-3.8/mmcv/video/optflow_warp
  running build_ext
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-h0_pr7zk/mmcv-full/setup.py", line 194, in <module>
      setup(
    File "/home/adotesdotekdote/AndroidStudioProjects/FYPTest/app/build/generated/python/bp.zip/setuptools/__init__.py", line 129, in setup
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/home/adotesdotekdote/AndroidStudioProjects/FYPTest/app/build/generated/python/bp.zip/setuptools/command/build_ext.py", line 78, in run
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/distutils/command/build_ext.py", line 340, in run
      self.build_extensions()
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 361, in build_extensions
      self._check_abi()
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 696, in _check_abi
      check_compiler_abi_compatibility(compiler)
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 265, in check_compiler_abi_compatibility
      if not check_compiler_ok_for_platform(compiler):
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 225, in check_compiler_ok_for_platform
      which = subprocess.check_output(['which', compiler], stderr=subprocess.STDOUT)
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/subprocess.py", line 411, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "/home/adotesdotekdote/miniconda3/lib/python3.8/subprocess.py", line 512, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['which', 'Chaquopy_cannot_compile_native_code']' returned non-zero exit status 1.

Is there a work around that I can use? I am using anocoda python 3.8.5 for the build and I tried various python version

python 3.6 (need version 3.7)

python 3.7

  building 'mmcv._flow_warp_ext' extension
  error: CCompiler.compile: Chaquopy cannot compile native code

python 3.9 AttributeError: 'HTMLParser' object has no attribute 'unescape'

mhsmith commented 3 years ago

Why do you need mmcv version 1.0.5? It looks like the current version 1.2.2 can be installed OK.

AngSoonKim commented 3 years ago

When I ran the code for mmdet==2.3 it needs mmcv==1.0.5 to be compatible. It seems to only work in the specific version

   File "demo/image_demo.py", line 3, in <module>
    from mmdet.apis import inference_detector, init_detector, show_result_pyplot
  File "/home/adotesdotekdote/miniconda3/lib/python3.8/site-packages/mmdet/__init__.py", line 23, in <module>
    assert (mmcv_version >= digit_version(mmcv_minimum_version)
AssertionError: MMCV==1.1.5 is used but incompatible. Please install mmcv>=1.0.5, <=1.0.5.
mhsmith commented 3 years ago

OK, then it looks like we won't be able to support this package at the moment. Sorry about that.

Please subscribe to #330 for any future updates.

AngSoonKim commented 3 years ago

Understood. Thank you very much, I will look for a way around it.

mhsmith commented 3 years ago

python 3.9 AttributeError: 'HTMLParser' object has no attribute 'unescape'

If anyone's had this error with other packages, please see #416. It can be fixed by upgrading to Chaquopy 9.1.0 or newer, or using the buildPython setting to build with Python 3.8 or older.