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

Install error? #40

Open
capt-rob opened this issue Jan 11, 2024 · 5 comments
Open

Install error? #40

capt-rob opened this issue Jan 11, 2024 · 5 comments

Comments

@capt-rob
Copy link

Had an issue attempting to install tilt-pitch on my Linux Mint machine. I saved a text file of the readouts from the Terminal. Below is the last error I got:

plex@PLEXSERVER:~$ pip3 install tilt-pitch
Defaulting to user installation because normal site-packages is not writeable
Collecting tilt-pitch
Downloading tilt_pitch-1.0.2-py3-none-any.whl (36 kB)
Collecting influxdb-client[ciso]
Downloading influxdb_client-1.39.0-py3-none-any.whl (743 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 744.0/744.0 KB 4.7 MB/s eta 0:00:00
Collecting influxdb
Downloading influxdb-5.3.1-py2.py3-none-any.whl (77 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.9/77.9 KB 5.8 MB/s eta 0:00:00
Collecting pybluez
Downloading PyBluez-0.23.tar.gz (97 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.6/97.6 KB 1.8 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in PyBluez setup command: use_2to3 is invalid.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
plex@PLEXSERVER:$ pytho3 - pitch
Command 'pytho3' not found, did you mean:
command 'python3' from deb python3 (3.10.6-1
22.04)
Try: sudo apt install
plex@PLEXSERVER:$ python3 -m pitch
/usr/bin/python3: No module named pitch
plex@PLEXSERVER:
$

@rcork
Copy link

rcork commented Jan 11, 2024

I had the same issue but found a link to an issue on github and a solution that worked for me. Here's the link: pybluez/pybluez#431 (comment)

What i did was, after installing all the prereqs, ran these commands

sudo apt install -y git
pip install git+https://github.com/pybluez/pybluez.git#egg=pybluez
pip3 install tilt-pitch

@capt-rob
Copy link
Author

That seemed to do the trick. Thanks a ton!

@capt-rob
Copy link
Author

capt-rob commented Jan 12, 2024

However, now on running Tilt Pitch I get the following:
plex@PLEXSERVER:~$ python3 -m pitch
____ _ __ __
/ __ () // /
/ /
/ / / __/ / __
/ ___/ / // /
/ / / /
/
/ /
/_
/_
_// //

Starting...
...started: Prometheus (http://127.0.0.1:8000/metrics)
...started: File (pitch_log.json)
Exception in thread Thread-2:
Traceback (most recent call last):
...started: Tilt scanner
Ready! Listening for beacons
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/home/plex/.local/lib/python3.10/site-packages/beacontools/scanner.py", line 144, in run
self.socket = self.backend.open_dev(self.bt_device_id)
File "/home/plex/.local/lib/python3.10/site-packages/beacontools/backend/linux.py", line 11, in open_dev
bluez.hci_filter_all_events(filtr)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 4: invalid start byte

@rcork
Copy link

rcork commented Jan 12, 2024

That ones over my pay grade :). Problem is pybluez is not maintained anymore. I found a commit referencing the issue but it hasn't been incorporated into the master repo so i dont know how to fix this issue

pybluez/pybluez@44265df

I actually stopped using tilt pitch and i'm using TiltBridge now. Much better and supports Tilt Pro Hydrometers.

http://tiltbridge.com/

@capt-rob
Copy link
Author

Thanks for giving it a shot anyway. i know just enough about Linux to get myself in trouble and even less about coding in Python, LOL! Got an old Raspberry Pi kicking around and got TiltPi running on that. Was just hoping to run the data monitor on an already running machine, but heck, TiltPi is probably my best bet. Happy brewing!

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