Giter VIP home page Giter VIP logo

Comments (8)

LFeightyFour avatar LFeightyFour commented on May 23, 2024

运行DEBUG.exe的结果

D:\QPT_UT_OUT_CACHE\paddledetection\Debug>"./Python/python.exe" -c "import sys;sys.path.append('./Python');sys.path.append('./Python/Lib');sys.path.append('./Python/Lib/site-packages');sys.path.append('./Python/Scripts');import qpt.run as run"
2022-04-14 18:33:01,647 DEBUG: 操作系统类型:Windows
2022-04-14 18:33:01,661 DEBUG: 操作系统位数:AMD64
2022-04-14 18:33:01,662 DEBUG: Python所识别到的环境变量如下:
PATH:D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages
PATH:D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib
PATH:D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\ext
PATH:D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python
PATH:D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Scripts
PATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin
PATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp
PATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin
PATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\libnvvp
PATH:C:\Program Files\Basler\pylon 6\Runtime\x64
PATH:C:\Program Files\Basler\pylon 6\Runtime\Win32
PATH:C:\Program Files\Common Files\Oracle\Java\javapath
PATH:C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS
PATH:C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS
PATH:C:\Windows\system32
PATH:C:\Windows
PATH:C:\Windows\System32\Wbem
PATH:C:\Windows\System32\WindowsPowerShell\v1.0
PATH:C:\Windows\System32\OpenSSH
PATH:C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
PATH:C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
PATH:C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
PATH:C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
PATH:C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
PATH:C:\Program Files\dotnet
PATH:C:\Program Files\Polyspace\R2019b\runtime\win64
PATH:C:\Program Files\Polyspace\R2019b\bin
PATH:C:\Program Files\Polyspace\R2019b\polyspace\bin
PATH:C:\mingw64\bin
PATH:C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.4.0
PATH:C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
PATH:C:\Program Files\Git\cmd
PATH:D:\opencv\build\x64\vc15\bin
PATH:D:\TensorRT-6.0.1.5\bin
PATH:C:\Program Files\nodejs
PATH:C:\ProgramData\chocolatey\bin
PATH:C:\Program Files\Microsoft VS Code\bin
PATH:C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps
PATH:C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin
PATH:C:\Program Files\JetBrains\PyCharm 2020.3.4\bin
PATH:C:\Users\Administrator.dotnet\tools
PATH:E:\snap7_envs
PATH:C:\Program Files\JetBrains\CLion 2021.3.4\bin
PATH:C:\Program Files\CMake\bin
PATH:C:\Users\Administrator\AppData\Roaming\npm
PATH:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0
PATH:C:/Windows/System32/WindowsPowerShell/v1.0
PATH:%ProgramFiles%/WindowsPowerShell/Modules
PATH:%SystemRoot%/system32/WindowsPowerShell/v1.0/Modules
PATH:D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/CUDA
PATH:
PYTHONPATH:D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages
PYTHONPATH:D:\QPT_UT_OUT_CACHE\paddledetection\Debug
PYTHONPATH:D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python

2022-04-14 18:33:01,727 WARNING: C:\Users\ADMINI~1\AppData\Local\Temp\QPT_Cache_V/1.0b3.dev7中 ~ 字符会可能影响使用。
2022-04-14 18:33:01,727 WARNING: 当前系统的用户名中包含中文/空格等可能会对程序造成异常的字符,现已默认QPT临时目录为C:/q_tmp
D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages_distutils_hack_init_.py:30: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
2022-04-14 18:33:02,521 INFO: QPT Runtime版本号为1.0b3.dev7,若无法使用该程序,可向程序发布者或GitHub: QPT-Family/QPT提交issue寻求帮助
2022-04-14 18:33:02,529 DEBUG: SHELL: chcp 65001
2022-04-14 18:33:02,744 DEBUG: Windows PowerShell
2022-04-14 18:33:02,744 DEBUG: Copyright (C) Microsoft Corporation. All rights reserved.
2022-04-14 18:33:02,745 DEBUG: Try the new cross-platform PowerShell https://aka.ms/pscore6
2022-04-14 18:33:03,109 DEBUG: PS D:\QPT_UT_OUT_CACHE\paddledetection\Debug> chcp 65001 ; echo "---QPT OUTPUT STATUS CODE---" $?
2022-04-14 18:33:03,142 DEBUG: Active code page: 65001
2022-04-14 18:33:03,160 DEBUG: 终端命令执行成功!
2022-04-14 18:33:03,161 DEBUG: 正在连接PIPTerminal
2022-04-14 18:33:03,345 DEBUG: 已设置PIP跨版本编译模式,目标解释器路径为:D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe
2022-04-14 18:33:03,350 DEBUG: SHELL: chcp 65001
2022-04-14 18:33:03,433 DEBUG: Windows PowerShell
2022-04-14 18:33:03,434 DEBUG: Copyright (C) Microsoft Corporation. All rights reserved.
2022-04-14 18:33:03,435 DEBUG: Try the new cross-platform PowerShell https://aka.ms/pscore6
2022-04-14 18:33:03,772 DEBUG: PS D:\QPT_UT_OUT_CACHE\paddledetection\Debug> chcp 65001 ; echo "---QPT OUTPUT STATUS CODE---" $?
2022-04-14 18:33:03,793 DEBUG: Active code page: 65001
2022-04-14 18:33:03,797 DEBUG: 终端命令执行成功!
2022-04-14 18:33:03,797 DEBUG: 正在连接PTerminal
2022-04-14 18:33:03,807 INFO: 初次使用将会适应本地环境,可能需要几分钟时间,请耐心等待...
初始化进度 18:331/8 |━━ | 12.50% Python38部署中...2022-04-14 18:33:03,926 DEBUG: 正在加载Python38-UnPackPythonEnvOptOP
初始化进度 18:332/8 |━━━━━ | 25.00% QPTDependencyPackage部署中...2022-04-14 18:33:03,942 DEBUG: 正在加载QPTDependencyPackage-LocalInstallWhlOptOP
2022-04-14 18:33:03,945 DEBUG: SHELL: cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install -r C:/q_tmp\Cache\FileSerialize.tmp --target D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages --no-index -f D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary
2022-04-14 18:33:03,948 DEBUG: PS D:\QPT_UT_OUT_CACHE\paddledetection\Debug> cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install -r C:/q_tmp\Cache\FileSerialize.tmp --target D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages --no-index -f D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary; echo "---QPT OUTPUT STATUS CODE---" ;$?
2022-04-14 18:33:05,689 DEBUG: Looking in links: d:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages
2022-04-14 18:33:05,991 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\setuptools-62.1.0-py3-none-any.whl
2022-04-14 18:33:06,075 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\wheel-0.37.1-py2.py3-none-any.whl
2022-04-14 18:33:06,112 DEBUG: Collecting wget
2022-04-14 18:33:06,113 DEBUG: Using cached wget-3.2-py3-none-any.whl
2022-04-14 18:33:06,718 DEBUG: Installing collected packages: wheel, wget, setuptools
2022-04-14 18:33:10,198 DEBUG: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
2022-04-14 18:33:10,199 DEBUG: qpt 1.0b3.dev7 requires click, which is not installed.
2022-04-14 18:33:10,201 DEBUG: qpt 1.0b3.dev7 requires pefile, which is not installed.
2022-04-14 18:33:10,202 DEBUG: qpt 1.0b3.dev7 requires ttkbootstrap==0.5.1, which is not installed.
2022-04-14 18:33:10,203 DEBUG: Successfully installed setuptools-62.1.0 wget-3.2 wheel-0.37.1
2022-04-14 18:33:10,203 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\distutils-precedence.pth already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,204 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\pkg_resources already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,205 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\setuptools already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,206 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\setuptools-62.1.0.dist-info already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,206 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\wget-3.2.dist-info already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,207 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\wget.py already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,208 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\wheel already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,209 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\wheel-0.37.1.dist-info already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,212 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages_distutils_hack already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,212 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages_pycache_ already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,213 DEBUG: WARNING: Target directory D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\bin already exists. Specify --upgrade to force replacement.
2022-04-14 18:33:10,586 DEBUG: 终端命令执行成功!
初始化进度 18:333/8 |━━━━━━━ | 37.50% CopyCUDAPackage部署中...2022-04-14 18:33:10,601 DEBUG: 正在加载CopyCUDAPackage-SetCUDAEnvOP
初始化进度 18:334/8 |━━━━━━━━━━ | 50.00% PaddlePaddlePackage部署中...2022-04-14 18:33:10,606 DEBUG: 正在加载PaddlePaddlePackage-LocalInstallWhlOptOP
2022-04-14 18:33:10,607 DEBUG: SHELL: cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install paddlepaddle_gpu==2.2.2.post101 -U --upgrade-strategy eager --target D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages --no-index -f D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary
2022-04-14 18:33:10,610 DEBUG: PS D:\QPT_UT_OUT_CACHE\paddledetection\Debug> cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install paddlepaddle_gpu==2.2.2.post101 -U --upgrade-strategy eager --target D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages --no-index -f D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary; echo "---QPT OUTPUT STATUS CODE---" ;$?
2022-04-14 18:33:11,504 DEBUG: Looking in links: d:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages
2022-04-14 18:33:11,763 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\paddlepaddle_gpu-2.2.2.post101-cp38-cp38-win_amd64.whl
2022-04-14 18:33:11,931 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\six-1.16.0-py2.py3-none-any.whl
2022-04-14 18:33:11,964 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\protobuf-3.20.0-cp38-cp38-win_amd64.whl
2022-04-14 18:33:11,998 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\requests-2.27.1-py2.py3-none-any.whl
2022-04-14 18:33:12,032 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\decorator-5.1.1-py3-none-any.whl
2022-04-14 18:33:12,060 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\astor-0.8.1-py2.py3-none-any.whl
2022-04-14 18:33:12,088 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\numpy-1.19.3-cp38-cp38-win_amd64.whl
2022-04-14 18:33:12,132 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\pillow-9.1.0-cp38-cp38-win_amd64.whl
2022-04-14 18:33:12,206 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\certifi-2021.10.8-py2.py3-none-any.whl
2022-04-14 18:33:12,238 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\urllib3-1.26.9-py2.py3-none-any.whl
2022-04-14 18:33:12,270 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\idna-3.3-py3-none-any.whl
2022-04-14 18:33:12,314 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\charset_normalizer-2.0.12-py3-none-any.whl
2022-04-14 18:33:12,626 DEBUG: Installing collected packages: urllib3, idna, charset-normalizer, certifi, six, requests, protobuf, Pillow, numpy, decorator, astor, paddlepaddle-gpu
2022-04-14 18:33:39,463 DEBUG: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
2022-04-14 18:33:39,464 DEBUG: qpt 1.0b3.dev7 requires click, which is not installed.
2022-04-14 18:33:39,464 DEBUG: qpt 1.0b3.dev7 requires pefile, which is not installed.
2022-04-14 18:33:39,464 DEBUG: qpt 1.0b3.dev7 requires ttkbootstrap==0.5.1, which is not installed.
2022-04-14 18:33:39,464 DEBUG: Successfully installed Pillow-9.1.0 astor-0.8.1 certifi-2021.10.8 charset-normalizer-2.0.12 decorator-5.1.1 idna-3.3 numpy-1.19.3 paddlepaddle-gpu-2.2.2.post101 protobuf-3.20.0 requests-2.27.1 six-1.16.0 urllib3-1.26.9
2022-04-14 18:34:08,539 DEBUG: 终端命令执行成功!
2022-04-14 18:34:08,546 DEBUG: 正在加载PaddlePaddlePackage-SetPaddleFamilyEnvValueOptOP
初始化进度 18:345/8 |━━━━━━━━━━━━ | 62.50% AutoRequirementsPackage部署中...2022-04-14 18:34:08,616 DEBUG: 正在加载AutoRequirementsPackage-LocalInstallWhlOptOP
2022-04-14 18:34:08,619 DEBUG: SHELL: cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install -r C:/q_tmp\Cache\FileSerialize.tmp --target D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages --no-index -f D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary
2022-04-14 18:34:08,622 DEBUG: PS D:\QPT_UT_OUT_CACHE\paddledetection\Debug> cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install -r C:/q_tmp\Cache\FileSerialize.tmp --target D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages --no-index -f D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary; echo "---QPT OUTPUT STATUS CODE---" ;$?
2022-04-14 18:34:09,331 DEBUG: Looking in links: d:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages
2022-04-14 18:34:09,552 DEBUG: ERROR: Could not find a version that satisfies the requirement qpt==1.0b3.dev7 (from versions: none)
2022-04-14 18:34:09,552 DEBUG: ERROR: No matching distribution found for qpt==1.0b3.dev7
2022-04-14 18:34:09,602 ERROR: 在执行终端命令时检测到了失败,完整信息如下:
PS D:\QPT_UT_OUT_CACHE\paddledetection\Debug> cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install -r C:/q_tmp\Cache\FileSerialize.tmp --target D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages --no-index -f D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary; echo "---QPT OUTPUT STATUS CODE---" ;$?
Looking in links: d:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages
ERROR: Could not find a version that satisfies the requirement qpt==1.0b3.dev7 (from versions: none)
ERROR: No matching distribution found for qpt==1.0b3.dev7

初始化进度 18:346/8 |━━━━━━━━━━━━━━━ | 75.00% BatchInstallation部署中...2022-04-14 18:34:09,609 DEBUG: 正在加载BatchInstallation-BatchInstallationOptOP
2022-04-14 18:34:09,834 INFO: 需要补充的安装包数量为:2
2022-04-14 18:34:09,836 DEBUG: SHELL: cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages\charset_normalizer-2.0.12-py3-none-any.whl --no-index --no-deps -i https://mirrors.bfsu.edu.cn/pypi/web/simple --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary
2022-04-14 18:34:09,838 DEBUG: PS D:\QPT_UT_OUT_CACHE\paddledetection\Debug> cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages\charset_normalizer-2.0.12-py3-none-any.whl --no-index --no-deps -i https://mirrors.bfsu.edu.cn/pypi/web/simple --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary; echo "---QPT OUTPUT STATUS CODE---" ;$?
2022-04-14 18:34:10,529 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\charset_normalizer-2.0.12-py3-none-any.whl
2022-04-14 18:34:10,744 DEBUG: charset-normalizer is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
2022-04-14 18:34:10,803 DEBUG: 终端命令执行成功!
2022-04-14 18:34:10,804 DEBUG: SHELL: cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages\paddlepaddle_gpu-2.2.2.post101-cp38-cp38-win_amd64.whl --no-index --no-deps -i https://mirrors.bfsu.edu.cn/pypi/web/simple --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary
2022-04-14 18:34:10,807 DEBUG: PS D:\QPT_UT_OUT_CACHE\paddledetection\Debug> cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages\paddlepaddle_gpu-2.2.2.post101-cp38-cp38-win_amd64.whl --no-index --no-deps -i https://mirrors.bfsu.edu.cn/pypi/web/simple --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary; echo "---QPT OUTPUT STATUS CODE---" ;$?
2022-04-14 18:34:11,472 DEBUG: Processing d:\qpt_ut_out_cache\paddledetection\debug\opt\packages\paddlepaddle_gpu-2.2.2.post101-cp38-cp38-win_amd64.whl
2022-04-14 18:34:11,753 DEBUG: paddlepaddle-gpu is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
2022-04-14 18:34:11,830 DEBUG: 终端命令执行成功!
初始化进度 18:347/8 |━━━━━━━━━━━━━━━━━ | 87.50% PaddlePaddleCheckAVX部署中...2022-04-14 18:34:11,835 DEBUG: 正在加载PaddlePaddleCheckAVX-CheckAVXOptOP
D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\paddle\vision\transforms\functional_pil.py:36: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
'nearest': Image.NEAREST,
D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\paddle\vision\transforms\functional_pil.py:37: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
'bilinear': Image.BILINEAR,
D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\paddle\vision\transforms\functional_pil.py:38: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
'bicubic': Image.BICUBIC,
D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\paddle\vision\transforms\functional_pil.py:39: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
'box': Image.BOX,
D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\paddle\vision\transforms\functional_pil.py:40: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
'lanczos': Image.LANCZOS,
D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages\paddle\vision\transforms\functional_pil.py:41: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
'hamming': Image.HAMMING
初始化进度 18:348/8 |━━━━━━━━━━━━━━━━━━━━| 100.00% 初始化完毕2022-04-14 18:34:15,912 INFO:
2022-04-14 18:34:15,912 INFO: ----------WARNING SUMMARY
2022-04-14 18:34:15,913 INFO: 0|C:\Users\ADMINI~1\AppData\Local\Temp\QPT_Cache_V/1.0b3.dev7中 ~ 字符会可能影响使用。

2022-04-14 18:34:15,913 INFO: 1|当前系统的用户名中包含中文/空格等可能会对程序造成异常的字符,现已默认QPT临时目录为C:/q_tmp

2022-04-14 18:34:15,913 INFO: ----------ERROR SUMMARY
2022-04-14 18:34:15,914 INFO: 2|在执行终端命令时检测到了失败,完整信息如下:
PS D:\QPT_UT_OUT_CACHE\paddledetection\Debug> cd D: ;D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\python.exe -m pip install -r C:/q_tmp\Cache\FileSerialize.tmp --target D:\QPT_UT_OUT_CACHE\paddledetection\Debug\Python\Lib\site-packages --no-index -f D:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages --isolated --disable-pip-version-check --cache-dir C:/q_tmp\pip_cache --timeout 10 --prefer-binary; echo "---QPT OUTPUT STATUS CODE---" ;$?
Looking in links: d:\QPT_UT_OUT_CACHE\paddledetection\Debug\opt/packages
ERROR: Could not find a version that satisfies the requirement qpt==1.0b3.dev7 (from versions: none)
ERROR: No matching distribution found for qpt==1.0b3.dev7

from qpt.

GT-ZhangAcer avatar GT-ZhangAcer commented on May 23, 2024

目前QPT在非二进制的Python依赖中处理的还很差,看日志内容更偏向是在安装pycocoapi时出现了问题:Setup.py中没有锁定cython依赖 + pycocoapi未提供二进制版本的whl包。
重构包管理器是QPT近期重点的工作,可能在发版前做不到很轻松解决这类依赖问题,但可以尝试以下方案来碰碰运气:

  1. 手动构建pycocoapi whl包,并删除其上层依赖对其的约束
  2. (建议)使用不限于自定义SubModule的形式,优先安装cython依赖,虽然自定义SubModule的文档还没写,但有个优先安装Numpy的issue可以参考:#36 (comment)

from qpt.

GT-ZhangAcer avatar GT-ZhangAcer commented on May 23, 2024

关于方案1中的手动构建,我这边有一份现成的,但还没有测试,构建方案与成品可参考:https://github.com/QPT-Family/GetWhl/actions/runs/2049898404

from qpt.

LFeightyFour avatar LFeightyFour commented on May 23, 2024

谢谢,打包成功了,采用了方式一与方式二结合的方法
由于paddledetection安装时,官方推荐先安装cython再安装pycocotools,所以先把cython安装的优先级往前调,再分别安装你提供的pycocotools的whl文件与修改过的cython-bbox的whl文件,使用时要删去依赖文件中pycocotools以及cython-bbox的相关内容,保留cython

这是我qpt2exe的代码

from qpt.executor import CreateExecutableModule as CEM
from qpt.modules.package import CopyWhl2Packages

from qpt.modules.base import HIGH_LEVEL
from qpt.modules.package import CustomPackage, LOCAL_INSTALL_DEPLOY_MODE



numpy_package = CustomPackage(package="numpy", version='1.19.3', deploy_mode=LOCAL_INSTALL_DEPLOY_MODE)
lap_package = CustomPackage(package="lap", version=None, deploy_mode=LOCAL_INSTALL_DEPLOY_MODE)
cython_package = CustomPackage(package="Cython",version=None,deploy_mode=LOCAL_INSTALL_DEPLOY_MODE)

numpy_package.level = HIGH_LEVEL
cython_package.level = HIGH_LEVEL

module = CEM(work_dir="./",                              # [项目文件夹]待打包的目录,并且该目录下需要有↓下方提到的py文件
             launcher_py_path="main.py",                  # [主程序文件]用户启动EXE文件后,QPT要执行的py文件
             save_path="D:/QPT_UT_OUT_CACHE/paddledetection",       # [输出目录]打包后相关文件的输出目录
             requirements_file="auto",                    # [Python依赖]此处可填入依赖文件路径,也可设置为auto自动搜索依赖
             hidden_terminal=False,                    # [终端窗口]设置为True后,运行时将不会展示黑色终端窗口
             sub_modules=[
                 numpy_package,
                 lap_package,
                 cython_package,
                 CopyWhl2Packages('./dist/pycocotools-2.0-cp38-cp38-win_amd64.whl'),  # 修改这一行
                 CopyWhl2Packages('./dist/cython_bbox-0.1.3-cp38-cp38-win_amd64.whl')
             ]
             )

module.make()

from qpt.

GT-ZhangAcer avatar GT-ZhangAcer commented on May 23, 2024

那太好了哈哈哈,如果方便的话,也可以整理一下类似这样https://github.com/QPT-Family/QPT/tree/%E5%BC%80%E5%8F%91%E5%88%86%E6%94%AF/examples/advanced 的教程PR至QPT,这样也会帮到更多人~

from qpt.

LFeightyFour avatar LFeightyFour commented on May 23, 2024

本来是想着把手头的项目搞定之后写一篇教程的,但是这两天刚好paddledetection更新到了2.4.0,我之前打包出问题的是2.3.0

试用paddledetection2.4.0版本之后,直接按照你最原始的打包代码就打包成功啦,不需要额外配置pycocotools和cython

from qpt.

GT-ZhangAcer avatar GT-ZhangAcer commented on May 23, 2024

好嘞~辛苦

from qpt.

GT-ZhangAcer avatar GT-ZhangAcer commented on May 23, 2024

from qpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.