Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python builds downloaded by uv miss certain constants #650

Closed
rumpelsepp opened this issue Dec 17, 2024 · 0 comments · Fixed by #649
Closed

Python builds downloaded by uv miss certain constants #650

rumpelsepp opened this issue Dec 17, 2024 · 0 comments · Fixed by #649
Milestone

Comments

@rumpelsepp
Copy link
Member

/cc @peckto

 module 'socket' has no attribute 'CAN_RAW_JOIN_FILTERS'
Traceback (most recent call last):
  File "/home/tobias/Downloads/gallia/src/gallia/command/base.py", line 343, in entry_point
    exit_code = self.run()
  File "/home/tobias/Downloads/gallia/src/gallia/command/base.py", line 450, in run
    asyncio.run(self._run())
    ~~~~~~~~~~~^^^^^^^^^^^^^
  File "/home/tobias/.local/share/uv/python/cpython-3.13.0-linux-x86_64-gnu/lib/python3.13/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "/home/tobias/.local/share/uv/python/cpython-3.13.0-linux-x86_64-gnu/lib/python3.13/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/home/tobias/.local/share/uv/python/cpython-3.13.0-linux-x86_64-gnu/lib/python3.13/asyncio/base_events.py", line 721, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/home/tobias/Downloads/gallia/src/gallia/command/base.py", line 445, in _run
    await self.main()
  File "/home/tobias/Downloads/gallia/src/gallia/commands/discover/uds/isotp.py", line 117, in main
    transport.set_filter(addr_idle, inv_filter=True)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tobias/Downloads/gallia/src/gallia/transports/can.py", line 174, in set_filter
    self._sock.setsockopt(s.SOL_CAN_RAW, s.CAN_RAW_JOIN_FILTERS, 1)
                                         ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'socket' has no attribute 'CAN_RAW_JOIN_FILTERS'. Did you mean: 'CAN_RAW_FILTER'?

The python builds published by https://github.com/indygreg/python-build-standalone miss certain constants for some reasons.

@rumpelsepp rumpelsepp linked a pull request Dec 17, 2024 that will close this issue
@rumpelsepp rumpelsepp added this to the gallia 2.0 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant