首页 > 其他分享 >使用tensorbaoardx报错——Descriptors cannot not be created directly. If this call came from a _pb2.py file

使用tensorbaoardx报错——Descriptors cannot not be created directly. If this call came from a _pb2.py file

时间:2022-09-22 07:55:18浏览次数:59  
标签:3.19 code cannot 报错 directly your

运行代码报错:

from tensorboardX import SummaryWriter

 

 

报错内容:

 

 

 

发生异常: 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

 

 

 

=================================================

 

 

根据报错信息提供的链接:

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

 

 

 

 

标签:3.19,code,cannot,报错,directly,your
From: https://www.cnblogs.com/devilmaycry812839668/p/16717855.html

相关文章

  • JAVA字符串转Unicode编码
    importjava.util.ArrayList;publicclassHello{publicstaticvoidmain(String[]args){Strings="我爱JAVA";System.out.println(s2uni......
  • Codeforces Round #813 (Div. 2) - D. Empty Graph
    构造Problem-D-Codeforces题意给\(n(1<=n<=10^5)\)个点,与权值\(a_i\),这\(n\)个点组成一个完全图,\(a_l\)与\(a_r\)连的边的权值为\(min(a_l,a_{l+1}...a_{r......
  • Codeforces Round #821 (Div. 2) D E
    E首先发现无论何时,每个位置上至多只会有一个球。原因:每个时刻每个球都会移动,所以移动到某个点的时间一定,自然出生时间也一定,显然不可能会有2个点出生时间相同。既然如......
  • 关于VScode中GDB调试和cmake配合使用的方法
    关于VScode调试GDB的说明      Hello,各位看官好,小弟最近在做嵌入式的项目,那么嵌入式的项目有三个很重要的工具,一个就是VScode,一个就是GDB,还有一个就是CMake工具......
  • letcode算法--17.字符串相乘
    给定两个以字符串形式表示的非负整数 num1 和 num2,返回 num1 和 num2 的乘积,它们的乘积也表示为字符串形式。注意:不能使用任何内置的BigInteger库或直接将输入转......
  • Android Studio 中 Gradle 版本升级导致 ndk 报错
    Errorwhileexecutingprocess..\android-ndk-r16-beta1\ndk-build.cmdwitharguments{NDK_PROJECT_PATH=null ....Noruletomaketarget.. AndroidStudioA......
  • Educational Codeforces Round 119 E
    E.ReplacetheNumbers开始想到了一个二分的做法好像是O(nlog)的后来才想了一下可以在两个数组之间反复横跳那我是不是像记忆化搜索一样记录一个路径即可我们记录f[i]......
  • 运行 docker run hello-world 报错 Unable to find image ‘hello-world:latest‘ loc
    原文链接:https://blog.csdn.net/weixin_43520450/article/details/107377342报错提示如下:解决办法:1、执行以下命令vi/etc/docker/daemon.json2、添加以下的内容并保......
  • 解决 vue 报错:This dependency was not found
    最近遇到一个报错,如下图  提示让我安装default-passive-events,而我之前为了祛除谷歌浏览器控制台警告,已经安装并引入了 default-passive-events   谷歌浏览器......
  • vue 中使用 eslint 常见的 4 个报错小结
    前言eslint是什么?一个用来识别javascript语法规则和代码风格的检查工具,以避免一些如拼写或语法错误等低级错误的发生,并统一代码风格但在实际开发中,可能总是遇到一......