Post Reply 
New transfer tool for Linux: HPex
05-16-2022, 11:24 PM
Post: #17
RE: New transfer tool for Linux: HPex
(05-16-2022 07:52 PM)ramon_ea1gth Wrote:  However, I have to confess that I am with Python 3.6.9, so maybe that's the problem. Anyway, the GUI has launched successfully, so now, let's see what happens with my HP48 GX and with my HP 50g! (the HP 50g is the one most I use).

From the README:
Quote:Also important: While HPex is currently stable when used with the HP 48 series, I don't currently own any of the Meta Kernel calculators (the 49G, 49g+, 50g, and 48gII). As a result, consider HPex unstable and untested for use with these models.

Software Requirements
Python 3.9 or better

(05-16-2022 07:52 PM)ramon_ea1gth Wrote:  I had to install dataclasses, not indicated in the version of the instructions I have.

They came only with Python 3.7.
But it appears that they were back-ported to 3.6, so you could install them as a package.

Code:
  File "/home/ramros/hpex/hpex-1.0.0/hpex_gui.py", line 868, in process_kermit_data
    crc=KermitProcessTools.checksum_to_hexstr(i[3])))
  File "/home/ramros/hpex/hpex-1.0.0/helpers.py", line 92, in checksum_to_hexstr
    return '#' + str(hex(int(checksum))).replace('0x', '').upper() + 'h'
ValueError: invalid literal for int() with base 10: '13036,'

From the code in process_kermit_data it looks as if the last element crc contains an additional comma at the end: '13036,'
This leads to the error since it can not be translated to an int.

Code:
        kermit_vars = [row.split() for row in lines]
        
        for i in kermit_vars:
            # each element of each row is the name, size, type, and
            # crc in that order
            
            # undo the thing we did in kermit_done()
            t = i[2]
            if t == 'RealNumber':
                t = 'Real Number'
            elif t == 'GlobalName':
                t = 'Global Name'
                
            self.hpvars.append(
                KermitVariable(name=i[0], size=i[1], vtype=t,
                               crc=KermitProcessTools.checksum_to_hexstr(i[3])))

In order to analyse the problem you could insert a print statement in line 858 of /home/ramros/hpex/hpex-1.0.0/hpex_gui.py:

Code:
            # each element of each row is the name, size, type, and
            # crc in that order
            print(i)

This might give some insights into the output from Kermit.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New transfer tool for Linux: HPex - Thomas Klemm - 05-16-2022 11:24 PM



User(s) browsing this thread: 1 Guest(s)