Skip to content

Python 3.11 - error on BdPan #7

@Andrej730

Description

@Andrej730

Just installed it on python 3.11 (windows 11) and trying to run BdPan

> BdPan
2023-01-31 17:48:06,124 - ERROR: required field "type_ignores" missing from Module
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Software\Python311\Scripts\BdPan.exe\__main__.py", line 7, in <module>
  File "C:\Software\Python311\Lib\site-packages\pyBaiduPan\bdpan.py", line 300, in main
    raise e
  File "C:\Software\Python311\Lib\site-packages\pyBaiduPan\bdpan.py", line 297, in main
    pan.login()
  File "C:\Software\Python311\Lib\site-packages\pyBaiduPan\exceptions.py", line 26, in wrapper
    raise e
  File "C:\Software\Python311\Lib\site-packages\pyBaiduPan\exceptions.py", line 21, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Software\Python311\Lib\site-packages\pyBaiduPan\bdpan.py", line 105, in login
    self.session = baidu_pan_login(host, port)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Software\Python311\Lib\site-packages\pyBaiduPan\login.py", line 29, in baidu_pan_login
    app = Flask(__name__, static_url_path='/none')
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Software\Python311\Lib\site-packages\flask\app.py", line 559, in __init__
    self.add_url_rule(
  File "C:\Software\Python311\Lib\site-packages\flask\app.py", line 67, in wrapper_func
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Software\Python311\Lib\site-packages\flask\app.py", line 1217, in add_url_rule
    self.url_map.add(rule)
  File "C:\Software\Python311\Lib\site-packages\werkzeug\routing.py", line 1388, in add
    rule.bind(self)
  File "C:\Software\Python311\Lib\site-packages\werkzeug\routing.py", line 730, in bind
    self.compile()
  File "C:\Software\Python311\Lib\site-packages\werkzeug\routing.py", line 794, in compile
    self._build = self._compile_builder(False).__get__(self, None)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Software\Python311\Lib\site-packages\werkzeug\routing.py", line 951, in _compile_builder
    code = compile(module, "<werkzeug routing>", "exec")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: required field "type_ignores" missing from Module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions