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

Updated installation instructions for Linux (here Mint V22) #28

Open
DittelHome opened this issue Nov 3, 2024 · 4 comments
Open

Updated installation instructions for Linux (here Mint V22) #28

DittelHome opened this issue Nov 3, 2024 · 4 comments

Comments

@DittelHome
Copy link

DittelHome commented Nov 3, 2024

Since the installation instructions are no longer valid for newer Python versions, I'll describe my installation steps here, maybe it will help someone. Testet with Mint Linux V22 (Python 3.12.3) and DL24P
It would be a shame if the great work of Misdoro could no longer be used..

Download:
git clone https://github.com/misdoro/Electronic_load_px100.git

Corrections:
Edit /gui/internatl_r.py line 26:

def append(self, row):
        self.beginInsertRows(QModelIndex(), self.rowCount(1), self.rowCount(1))
        self._data = self._data.append(row, ignore_index=True)
        self.endInsertRows()

to

def append(self, row):
        self.beginInsertRows(QModelIndex(), self.rowCount(1), self.rowCount(1))
        self._data = self._data._append(row, ignore_index=True)
        self.endInsertRows()

Edit requirements.txt: remove "< 2.0" behind pandas

Installation:
Only pip install -r requirements.txt wont work, we have to create a new virtual enviroment: (@misdoro pipx would be nice)

python3 -m venv .venv 
source .venv/bin/activate 
pip install -r requirements.txt 

Program call:

source .venv/bin /activate
python3 main.py
deactivate

Bluetooth:
Program does not work via Bleutooth, it does not search /dev/rfcomx...
@misdoro Is it possible to add ?

@misdoro
You may be able to adapt the instructions accordingly...

regards Klaus

@ivanbistrovic
Copy link

For use with DL24 there is already a fork made by Jay2k1. There are some modifications made to make it more compatible with DL24, I tested it and it works really good with Bluetooth.
Would be great if this project continues as it would be nice to have some improvements.

@DittelHome
Copy link
Author

I have tested fork made by Jay2k1. On my side Bluetooth is not working. In addition, the fields capacity and time are not readable (black letters on black background).

@ivanbistrovic
Copy link

I don't think the problem is in the program but with the settings in your OS. For example, I needed to add my user in the bluetooth group, and restart. I also work on Linux Mint 22. I can't remember now all the steps but try with that one, Bluetooth on Linux is sometimes tricky to get working.

@misdoro
Copy link
Owner

misdoro commented Nov 5, 2024

Working or not might depend on the hardware version/software revision of DL24 as well.

From my own experience, my version of DL24 doesn't react to PX100 commands for first couple of seconds, then somehow switches to this protocol, so re-starting this program once or twice made things working for me.

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

3 participants