收藏
回答

[minium]按照官方文档的demo写了一下,运行的时候报错,有人能帮忙看一下是什么原因导致的吗?


F:\python3.9.9\python.exe "D:\AppData\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pycharm\_jb_unittest_runner.py" --path E:/youlu_code/minium-testcase1201/test/first_test.py

Testing started at 18:13 ...

Launching unittests with arguments python -m unittest E:/youlu_code/minium-testcase1201/test/first_test.py in E:\youlu_code\minium-testcase1201\test


INFO  2021-12-15 18:14:01,214 wx_minium.py launch_dev_tool 692 Starting dev tool and launch MiniProgram project ...


Failure

Traceback (most recent call last):

  File "F:\python3.9.9\lib\unittest\suite.py", line 166, in _handleClassSetUp

    setUpClass()

  File "F:\python3.9.9\lib\site-packages\minium\framework\assertbase.py", line 128, in setUpClass

    _miniClassSetUp()

  File "F:\python3.9.9\lib\site-packages\minium\framework\minitest.py", line 243, in _miniClassSetUp

    cls.mini = get_minium(cls.CONFIG)

  File "F:\python3.9.9\lib\site-packages\minium\framework\minitest.py", line 99, in get_minium

    g_minium = minium.miniprogram.get_minium_driver(conf=cfg, native=g_native)

  File "F:\python3.9.9\lib\site-packages\minium\miniprogram\__init__.py", line 28, in get_minium_driver

    return APP[application](conf, *args, **kwargs)

  File "F:\python3.9.9\lib\site-packages\minium\miniprogram\wx_minium.py", line 93, in __init__

    self.launch_weapp()

  File "F:\python3.9.9\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 135, in wrapper

    result = func(*args, **kwargs)

  File "F:\python3.9.9\lib\site-packages\minium\miniprogram\wx_minium.py", line 660, in launch_weapp

    self.launch_dev_tool()

  File "F:\python3.9.9\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 135, in wrapper

    result = func(*args, **kwargs)

  File "F:\python3.9.9\lib\site-packages\minium\miniprogram\wx_minium.py", line 705, in launch_dev_tool

    self.__update_project_config()

  File "F:\python3.9.9\lib\site-packages\minium\miniprogram\wx_minium.py", line 677, in __update_project_config

    self.sdk_version is not None and self._comp_version(self.sdk_version, "2.7.3") == -1

  File "F:\python3.9.9\lib\site-packages\minium\miniprogram\base_driver\minium_object.py", line 437, in _comp_version

    if int(a[i]) > int(b[i]):

ValueError: invalid literal for int() with base 10: ''







回答关注问题邀请回答
收藏

2 个回答

  • yopofeng
    yopofeng
    2021-12-15

    麻烦确认一下小程序源码项目下 project.config.json中的libVersion字段是什么

    2021-12-15
    有用
    回复 1
    • 何静静
      何静静
      2021-12-16
      是空的
      2021-12-16
      回复
  • ******
    ******
    2022-02-15

    遇到同样问题,不知是否解决了?

    2022-02-15
    有用
    回复
登录 后发表内容