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

TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file……

這篇具有很好參考價(jià)值的文章主要介紹了TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file……。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

問題描述

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).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

解決方案

pip uninstall protobuf
pip install protobuf==3.20.1

引用參考

https://github.com/protocolbuffers/protobuf/issues/10051文章來源地址http://www.zghlxwxcb.cn/news/detail-704196.html

到了這里,關(guān)于TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file……的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

    Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

    當(dāng)我們運(yùn)行代碼要運(yùn)用到cv2庫時(shí),提示我們沒有安裝cv2,而直接用pip install opencv-python下載卻顯示下載失?。?Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly 直接運(yùn)用conda安裝: 隨后完成cv2的安裝。

    2024年02月10日
    瀏覽(37)
  • Could not build wheels for opencv-python-headless which use PEP 517 and cannot be installed directly

    筆者是python環(huán)境下安裝 albumentations 出現(xiàn)的,該庫經(jīng)常用于圖像增強(qiáng),在cv領(lǐng)域有很大的知名度。在使用下邊的命令進(jìn)行安裝后 就報(bào)了 ERROR:Could not build wheels for opencv-python-headless which use PEP 517 and cannot be installed directly 。 albumentations庫依賴opencv,在直接使用pip命令安裝時(shí),albumen

    2024年02月15日
    瀏覽(22)
  • ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

    ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

    pip install --upgrade -r requirements.txt -i https://mirror.baidu.com/pypi/simple Looking in indexes: https://mirror.baidu.com/pypi/simple Collecting prettytable Downloading https://mirror.baidu.com/pypi/packages/5f/ab/64371af206988d7b15c8112c9c277b8eb4618397c01471e52b902a17f59c/prettytable-3.3.0-py3-none-any.whl (26 kB) Collecting ujson Downloading https://

    2024年01月22日
    瀏覽(26)
  • git fatal: ‘xxx‘ is not a commit and a branch ‘xxx‘ ‘ cannot be created from it

    當(dāng)拉取一個(gè)git遠(yuǎn)程倉庫分支時(shí)報(bào)錯(cuò): 命令:git checkout -b 本地分支名 遠(yuǎn)程分支名 報(bào)錯(cuò):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 遠(yuǎn)程新建的分支沒有更新到本地。實(shí)際上,git倉庫分為本地倉庫和遠(yuǎn)程倉庫,我們用 checkout 命令是從本

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

    【Git報(bào)錯(cuò)】fatal: ‘origin/XXX‘ is not a commit and a branch ‘XXX‘ cannot be created from it

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

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

    git拉取遠(yuǎn)程分支到本地報(bào)錯(cuò)fatal: ‘origin/XXX‘ is not a commit and a branch ‘XXX‘ cannot be created from it

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

    2024年02月15日
    瀏覽(27)
  • 【前端】報(bào)錯(cuò)TypeError: Cannot create property ‘xxx‘ on string ‘xxx‘

    報(bào)錯(cuò)原因分析:賦值的類型錯(cuò)誤 前端在遍歷時(shí)通過判斷條件為數(shù)據(jù)添加屬性時(shí)報(bào)錯(cuò),在重新查看代碼時(shí)發(fā)現(xiàn)為遍歷語句錯(cuò)誤。 for (let item in list) {} for (let item of list) {} 二者的不同之處在于,前者在遍歷數(shù)組時(shí)若數(shù)組下存在屬性,則會(huì)對屬性也進(jìn)行遍歷操作,故報(bào)賦值的類型錯(cuò)

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

    SQLIntegrityConstraintViolationException: Column ‘create_time‘ cannot be null

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

    2024年02月01日
    瀏覽(32)
  • [Vue warn]: Error in created hook: “TypeError: Cannot read properties of undefined (reading ‘$on‘)“

    vue實(shí)現(xiàn) 兄弟進(jìn)程 間的通信。 我想實(shí)現(xiàn)VUE中兄弟組件的通信,除了VueX之外,還可以使用eventBus,這幾個(gè)教程把eventbus講的很詳細(xì)。 (34條消息) Vue 兄弟組件之間的通信_coffee豆丿的博客-CSDN博客_兄弟組件 大部分教程都是這樣,我看了一個(gè)小時(shí)的教程。但是,我按照他們的代碼去

    2023年04月09日
    瀏覽(28)
  • TypeError: this.getOptions is not a function 的解決

    TypeError: this.getOptions is not a function 的解決

    ?一、問題的出現(xiàn): 在進(jìn)行? React ?/ vue項(xiàng)目開發(fā)的時(shí)候,出現(xiàn)了這個(gè)錯(cuò)誤: TypeError: this.getOptions is not a function ,如下所示: ?二、問題的分析: ????????這個(gè)實(shí)際上就是 sass-loader 的版本過高或過低,與當(dāng)前node版本不對應(yīng),不兼容 getOptions 函數(shù)方法,所以需要對 sass-loa

    2024年02月12日
    瀏覽(27)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包