【问题标题】:python setup.py egg_info did not run successfullypython setup.py egg_info 没有运行成功
【发布时间】:2022-06-25 19:08:22
【问题描述】:

刚开始学习Python通过python控制RIGOL DG4000,但是安装Pyvxii11时总是显示失败。

C:\Users\1013>pip install PyVXI11
Collecting PyVXI11
  Using cached PyVXI11-1.15.57.tar.gz (56 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [2195 lines of output]
      'hg' is not recognized as an internal or external command,
      operable program or batch file.
      'rpcgen' is not recognized as an internal or external command,
      operable program or batch file.
      'rpcgen' is not recognized as an internal or external command,
      operable program or batch file.
      'rpcgen' is not recognized as an internal or external command,
      operable program or batch file.
      'rpcgen' is not recognized as an internal or external command,
      operable program or batch file.
      'rpcgen' is not recognized as an internal or external command,
      operable program or batch file.
      'rpcgen' is not recognized as an internal or external command,
      operable program or batch file.
      'rpcgen' is not recognized as an internal or external command,
      operable program or batch file.
      'rpcgen' is not recognized as an internal or external command,
      operable program or batch file.
      warning: cVXI11_3.pyx:600:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
      warning: cVXI11_3.pyx:601:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
      warning: cVXI11_3.pyx:602:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
      warning: cVXI11_3.pyx:603:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
      warning: cVXI11_3.pyx:604:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
      warning: cVXI11_3.pyx:605:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
      warning: cVXI11_3.pyx:606:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
      warning: cVXI11_3.pyx:607:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
              #print "dealloc GenericParms"
              if self.thisptr is NULL:
                  return
              with nogil:
                  xdr_free(<xdrproc_t> xdr_Device_GenericParms,
                           <c_xdr_free_argtype> self.thisptr)
                           ^
      ------------------------------------------------------------

      cVXI11_3.pyx:152:22: 'c_xdr_free_argtype' is not a type identifier

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          def __dealloc__(self):
              #print "dealloc GenericParms"
              if self.thisptr is NULL:
                  return
              with nogil:
                  xdr_free(<xdrproc_t> xdr_Device_GenericParms,
                          ^
      ------------------------------------------------------------

      cVXI11_3.pyx:151:21: Cannot convert 'xdrproc_t' to Python object

      Error compiling Cython file:
      ------------------------------------------------------------
      ...

          def __dealloc__(self):
              if self.thisptr is not NULL:
                  with nogil:
                      xdr_free(<xdrproc_t> xdr_Device_RemoteFunc,
                               <c_xdr_free_argtype> self.thisptr)
                               ^
      ------------------------------------------------------------

      cVXI11_3.pyx:203:26: 'c_xdr_free_argtype' is not a type identifier

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
              self.thisptr.progFamily=progFamily

          def __dealloc__(self):
              if self.thisptr is not NULL:
                  with nogil:
                      xdr_free(<xdrproc_t> xdr_Device_RemoteFunc,
                              ^
      ------------------------------------------------------------

      cVXI11_3.pyx:202:25: Cannot convert 'xdrproc_t' to Python object

      Error compiling Cython file:
      ------------------------------------------------------------
      ...

          def __dealloc__(self):
              if self.thisptr is NULL: return
              with nogil:
                  xdr_free(<xdrproc_t> xdr_Create_LinkResp,
                          <c_xdr_free_argtype>  self.thisptr)
                          ^
      ------------------------------------------------------------

     
      cVXI11_3.pyx:1145:25: Cannot convert 'xdrproc_t' to Python object

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
                  with nogil:
                      xdr_free(<xdrproc_t> xdr_Device_ReadStbResp, <c_xdr_free_argtype> res)
                  raise RuntimeError
              rstb=res.stb
              with nogil:
                  xdr_free(<xdrproc_t> xdr_Device_ReadStbResp, <c_xdr_free_argtype> res)
                                                               ^
      ------------------------------------------------------------

      cVXI11_3.pyx:1149:58: 'c_xdr_free_argtype' is not a type identifier

注意:这是上面提到的包的问题,​​而不是 pip。 提示:详情见上文。

这可能是什么原因?我真的没有找到答案。

【问题讨论】:

    标签: python


    【解决方案1】:

    你解决了这个错误吗?其实我的 requirements.txt 文件也面临同样的问题

    【讨论】:

      猜你喜欢
      • 2022-07-07
      • 2018-01-22
      • 2017-09-30
      • 1970-01-01
      • 2018-07-02
      • 2015-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多