Skip to content

TypeError while running the program #128

Description

@PatrunoLuca

pi@raspberrypi:~/joycontrol $ sudo python3 run_controller_cli.py PRO_CONTROLLER
Traceback (most recent call last):
File "/home/pi/joycontrol/run_controller_cli.py", line 16, in
from joycontrol.server import create_hid_server
File "/home/pi/joycontrol/joycontrol/server.py", line 13, in
PROFILE_PATH = pkg_resources.resource_filename('joycontrol', 'profile/sdp_record_hid.xml')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1130, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 349, in get_provider
return _find_adapter(_provider_factories, loader)(module)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1379, in init
self.module_path = os.path.dirname(getattr(module, 'file', ''))
File "/usr/lib/python3.9/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

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