Skip to content

Deprecated module location in python 3.12 #12

@ericjmartin

Description

@ericjmartin

cannot run webserver on Python 3.12 in ubuntu. Looking for an attribute of FileFinder that was deprecated "find_module" in types.py.

Full stack trace:
Traceback (most recent call last): File "/home/ops/.pyenv/versions/3.12.5/bin/lcm-websocket-json-proxy", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/ops/.pyenv/versions/3.12.5/lib/python3.12/site-packages/lcm_websocket_server/apps/json_proxy.py", line 107, in main asyncio.run(run(host, port, channel, lcm_packages)) File "/home/ops/.pyenv/versions/3.12.5/lib/python3.12/asyncio/runners.py", line 194, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/home/ops/.pyenv/versions/3.12.5/lib/python3.12/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ops/.pyenv/versions/3.12.5/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/home/ops/.pyenv/versions/3.12.5/lib/python3.12/site-packages/lcm_websocket_server/apps/json_proxy.py", line 65, in run registry.discover(*lcm_packages) File "/home/ops/.pyenv/versions/3.12.5/lib/python3.12/site-packages/lcm_websocket_server/lib/lcm_utils/types.py", line 98, in discover module = loader.find_module(module_name).load_module(module_name) ^^^^^^^^^^^^^^^^^^ AttributeError: 'FileFinder' object has no attribute 'find_module'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions