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

Errors compiling on Raspberry Pi. #16

Open
develroo opened this issue Mar 14, 2024 · 0 comments
Open

Errors compiling on Raspberry Pi. #16

develroo opened this issue Mar 14, 2024 · 0 comments

Comments

@develroo
Copy link

Not compiling against python3 it seems?

Traceback (most recent call last):
  File "/root/devel/opensnoop-native/opensnoop.py", line 122, in <module>
    c_entry, rust_entry, entry_size, = gen_c("generate_trace_entry", "trace_entry")
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/devel/opensnoop-native/opensnoop.py", line 110, in gen_c
    c_code, rust_code = generate_c_function(
                        ^^^^^^^^^^^^^^^^^^^^
  File "/root/devel/opensnoop-native/debug.py", line 224, in generate_c_function
    for index, instruction in get_list_of_instructions(bytecode):
  File "/root/devel/opensnoop-native/debug.py", line 42, in get_list_of_instructions
    for index, b_offset in enumerate(xrange(0, len(bytecode), 8)):
                                     ^^^^^^
NameError: name 'xrange' is not defined. Did you mean: 'range'?

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

No branches or pull requests

1 participant