国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Descriptors cannot not be created directly

這篇具有很好參考價值的文章主要介紹了Descriptors cannot not be created directly。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

1?Descriptors cannot not be created directly

????????在運行諸如深度學習python等程序時,如mmdetection、mmdetection3d中的程序,會出現(xiàn)報錯:“Descriptors cannot not be created directly”。詳細報錯如下:

????????TypeError: Descriptors cannot not be created directly.
????????If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
????????If you cannot immediately regenerate your protos, some other possible workarounds are:
?????????1. Downgrade the protobuf package to 3.20.x or lower.
?????????2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
?1. Downgrade the protobuf package to 3.20.x or lower.
?2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

? ? ? ? 出現(xiàn)這個問題的主要原因是protobuf版本不匹配。因此,按照錯誤提示,用pip安裝對應版本的protobuf即可,如上述問題中對應的 3.20.1版本。安裝命令為:

pip install protobuf==3.20.1

2?AttributeError: type object 'DialogCode' has no attribute 'Accepted'

? ? ? ? 這個錯誤通常和pyQT組件版本有關,特別是在mayavi使用時會出現(xiàn)該錯誤。詳細報錯內(nèi)容如下:

int(QtGui.QDialog.DialogCode.Accepted): OK,
AttributeError: type object 'DialogCode' has no attribute 'Accepted'

? ? ? ? 解決方式是重新安裝pyqt5,即:

pip install protobuf==pyqt5

?2?AttributeError: type object 'DialogCode' has no attribute 'Accepted'

? ? ? ? 這個錯誤通常和pyQT組件版本有關,特別是在mayavi使用時會出現(xiàn)該錯誤。詳細報錯內(nèi)容如下:

int(QtGui.QDialog.DialogCode.Accepted): OK,
AttributeError: type object 'DialogCode' has no attribute 'Accepted'

? ? ? ? 解決方式是重新安裝pyqt5,即:

pip install protobuf==pyqt5

更多三維、二維感知算法和金融量化分析算法請關注“樂樂感知學堂”微信公眾號,并將持續(xù)進行更新。文章來源地址http://www.zghlxwxcb.cn/news/detail-590322.html

到了這里,關于Descriptors cannot not be created directly的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

  • git fatal: ‘xxx‘ is not a commit and a branch ‘xxx‘ ‘ cannot be created from it

    當拉取一個git遠程倉庫分支時報錯: 命令:git checkout -b 本地分支名 遠程分支名 報錯:fatal: \\\'origin/dev_v2.8.4_v10.74.1\\\' is not a commit and a branch \\\'dev_v2.8.4_v10.74.1\\\' cannot be created from it 遠程新建的分支沒有更新到本地。實際上,git倉庫分為本地倉庫和遠程倉庫,我們用 checkout 命令是從本

    2024年02月10日
    瀏覽(21)
  • 【Git報錯】fatal: ‘origin/XXX‘ is not a commit and a branch ‘XXX‘ cannot be created from it

    【Git報錯】fatal: ‘origin/XXX‘ is not a commit and a branch ‘XXX‘ cannot be created from it

    發(fā)現(xiàn)問題 遠程已有分支,本地需要新建對應分支,于是執(zhí)行命令: git checkout --track origin/XXX 時報錯。 原因: 遠程真的沒有這個分支,所以失敗 這個情況沒什么好說的 遠程有這個分支,但是本地認為遠程沒有這個分支 執(zhí)行如下命令,查看本地緩存的所有遠程分支,看看你要

    2024年02月16日
    瀏覽(22)
  • git拉取遠程分支到本地報錯fatal: ‘origin/XXX‘ is not a commit and a branch ‘XXX‘ cannot be created from it

    git拉取遠程分支到本地報錯fatal: ‘origin/XXX‘ is not a commit and a branch ‘XXX‘ cannot be created from it

    遠程已有分支,本地需要新建對應分支,報下面錯誤 原因: 遠程真的沒有這個分支,所以失敗 遠程有這個分支,但是本地認為遠程沒有這個分支 執(zhí)行 git branch -r 命令,查看本地緩存的所有遠程分支 輸出顯示遠程并沒有要拉取的分支,但是實際上遠程倉庫是有該分支的,從

    2024年02月15日
    瀏覽(27)
  • elasticsearch啟動報max file descriptors [65535]

    elasticsearch啟動報max file descriptors [65535]

    環(huán)境centos7? ?es版本elasticsearch-5.4.0 今天安裝es,啟動一直報ERROR: bootstrap checks failed max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536] 第一檢查這三個文件是否配置正確 ?vim ?/etc/security/limits.conf vim /etc/profile ? 把ulimit注釋掉 修改 /etc/sysctl.conf 添加配置:

    2024年02月15日
    瀏覽(28)
  • SQLIntegrityConstraintViolationException: Column ‘create_time‘ cannot be null

    SQLIntegrityConstraintViolationException: Column ‘create_time‘ cannot be null

    在使用MySQL + MyBatis時遇到的問題,記錄一下。 在測試環(huán)境里,往MySQL數(shù)據(jù)表里插入數(shù)據(jù)時報錯: SQLIntegrityConstraintViolationException: Column \\\'create_time\\\' cannot be null 表結(jié)構(gòu)字段定義: 備注: MySQL數(shù)據(jù)庫版本: 使用的MyBatis版本: 使用的MySQL驅(qū)動版本: 參考mysql-insert-error-cannot-be-null-

    2024年02月01日
    瀏覽(32)
  • Ubuntu18.04修改file descriptors(文件描述符限制),解決elasticsearch啟動報錯問題

    Ubuntu18.04修改file descriptors(文件描述符限制),解決elasticsearch啟動報錯問題

    最近在學習elasticsearch,使用的平臺是Ubuntu18.04,在部署過程中的坑記錄一下。 下載安裝的過程就不說了,在啟動es的時候報錯 1 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535] 看了下網(wǎng)上給的解決方案都是修改vim /etc/security/limits.conf,添加配置 1 2 * s

    2024年02月13日
    瀏覽(20)
  • elastic安裝報錯:max file descriptors [4096] for elasticsearch process is too low, increase to at least

    elastic安裝報錯:max file descriptors [4096] for elasticsearch process is too low, increase to at least

    一、現(xiàn)象 因為 es 不允許使用root用戶安裝,在使用新建的es用戶安裝的時候報錯如下, max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535] 二、解決辦法 將當前用戶的軟硬限制調(diào)大。找到文件 /etc/security/limits.conf ,編輯,在文件的最后追加如下配置: ?

    2024年02月11日
    瀏覽(26)
  • Warning: Could not create server TCP listening socket Cannot assign request

    Warning: Could not create server TCP listening socket Cannot assign request

    一、問題:docker部署redis時發(fā)現(xiàn)docker ps命令查看redis端口號為空 ?二、原因:在網(wǎng)上查找基本都是6379端口被占用 三、解決方法 1、先docker stop停掉redis容器 2、通過修改redis掛載在linux上的redis.conf文件,將bind 127.0.0.1ip地址放開,之前注釋掉了。 bind 127.0.0.1 這個是綁定了我們的主

    2024年02月03日
    瀏覽(36)
  • ERROR: Network tsg declared as external, but could not be found. Please create the network manually

    ERROR: Network tsg declared as external, but could not be found. Please create the network manually

    docker第一次安裝,然后在用docker-compose up -d部署redis時出現(xiàn)這個錯誤,就按照它的提示,使用docker network create tsg命令,再次執(zhí)行部署成功。 ? ? ?

    2024年02月11日
    瀏覽(27)
  • ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directl

    ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directl

    安裝yolov5依賴庫時,最后pycocotools報錯 重點是以下原因: error: Microsoft Visual C++ 14.0 or greater is required. Get it with \\\"Microsoft C++ Build Tools\\\": https://visualstudio.microsoft.com/visual-cpp-build-tools/ 嘗試的解決方法如下: 1、直接下載VS2022中,工作負荷里有關C++和Python的(未成功) 結(jié)果報錯 vs2

    2024年02月02日
    瀏覽(36)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包