QObject::moveToThread: Current thread (0x55f29a27e0e0) is not the object's thread (0x55f29a946dd0). Cannot move to target thread (0x55f29a27e0e0)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.10/dist-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Notice: if cannot start spider image, you need install google chrome explore, detail:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chrome/webdriver.py", line 45, in __init__ super().__init__( File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chromium/webdriver.py", line 49, in __init__ self.service.path = DriverFinder.get_path(self.service, options) │ │ │ │ │ │ │ └ <selenium.webdriver.chrome.options.Options object at 0x7f816cf3da20> │ │ │ │ │ │ └ <selenium.webdriver.chrome.service.Service object at 0x7f816cf3da80> │ │ │ │ │ └ <unprintable WebDriver object> │ │ │ │ └ <staticmethod(<function DriverFinder.get_path at 0x7f816eb9cb80>)> │ │ │ └ <class 'selenium.webdriver.common.driver_finder.DriverFinder'> │ │ └ <property object at 0x7f816eb5ebb0> │ └ <selenium.webdriver.chrome.service.Service object at 0x7f816cf3da80> └ <unprintable WebDriver object> File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/common/driver_finder.py", line 41, in get_path raise NoSuchDriverException(msg) from err │ └ 'Unable to obtain driver for chrome using Selenium Manager.' └ <class 'selenium.common.exceptions.NoSuchDriverException'>
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
~ For solve problem, need install follow package:
1 2 3 4 5 6
apt install chromium-browser sudo mkdir -p /home/czq/.local/share/applications sudo touch /home/czq/.local/share/applications/mimeapps.list chmod -R 777 /home/czq/ xdg-open https://www.baidu.com # re run ./sh/run.sh to solve the problem
For use face detect, you need run follow command on ubuntu:
1 2 3
sudo apt-get update sudo apt-get install libgtk2.0-dev pkg-config run ./sh/run_face_detect.sh # (on ubuntu os)
Install third-party libraries for project
1 2 3 4
# recommend use pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple # single lib install command pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python
Build project and publish pack
1
Pyinstaller main_test.spec #使用spec文件打包exe
solve not run on HECS(HuaWei ECS) from huawei cloud