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

TypeError on apollo with python3.6 #10

Open
secholak opened this issue Jul 2, 2024 · 0 comments
Open

TypeError on apollo with python3.6 #10

secholak opened this issue Jul 2, 2024 · 0 comments

Comments

@secholak
Copy link

secholak commented Jul 2, 2024

When loading clock configs to EEPROM with python3 mcu_tools/python/LoadClkConfig_tripletEEPROM.py R0A Cornell_CM_Rev2_HW/ClockBuilderPRO/projects/Si5341-RevD-R0Av0004-Registers.txt --tty ttyUL1 I am getting the following error

Traceback (most recent call last):
  File "mcu_tools/python/LoadClkConfig_tripletEEPROM.py", line 133, in <module>
    print(get_command("gpio get ID_EEPROM_WP")[-1])
  File "mcu_tools/python/LoadClkConfig_tripletEEPROM.py", line 69, in get_command
    if ( len(line) > 0 and ord(line[0]) == 37 ) :
TypeError: ord() expected string of length 1, but int found

It works fine when removing the ord() function from the following line:

if ( len(line) > 0 and ord(line[0]) == 37 ) :

or, decoding a line before using it in the condition

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