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

Troublesome installation and use of cli #51

Open
maxdd opened this issue Nov 2, 2024 · 3 comments
Open

Troublesome installation and use of cli #51

maxdd opened this issue Nov 2, 2024 · 3 comments

Comments

@maxdd
Copy link

maxdd commented Nov 2, 2024

Hello,
This is not really a bug but it's more related to the flow in using this project.
I'm currently struggling to find a somewhat flawless or the intended installation method and usage.
I have compiled and flashed my esp32devikit with make clean build flash and i get

[RFQK]        134 T: Standalone mode network setup: done!
...
[RFQK]        630 T: Setup is over.
[RFQK]        630 T: Transport is sending 2 bytes on topic RFQUACK/out/set/discovery/rfquack_CmdReply/discovery
<RFQUACK/out/set/discovery/rfquack_CmdReply/discovery~CAA=␀[RFQK]       1652 T: Starting main loop.

but the proper usage of the cli in this repo is somewhat undocumented, the repo says

The CLI is now integrated in this repository. The old rfquack/RFQuack-cli repository is no longer used nor maintained.
but unless a setup.py isn't provided the rfq command will never work.
It also misses some dependencies as well (loguru).

@maxdd
Copy link
Author

maxdd commented Nov 2, 2024

The only reasonable solution i've found was

make docker-build-image
docker run --device /dev/ttyUSB0 --user=root --rm -it rfquack/rfquack bash
pip install loguru rich
cd client
PYTHONPATH=$PYTHONPATH:$(pwd) python3 rfquack/cli.py tty -P /dev/ttyUSB0

@phretor
Copy link
Contributor

phretor commented Nov 2, 2024

I saw your comment on missing the import time ; did you solve this? If yes, do you mind sending a pull request?

@maxdd
Copy link
Author

maxdd commented Nov 2, 2024

If you are talking about the import time i generally type it right before starting interacting with the cli.

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

2 participants