Comments (1)
@antoine56100 Thanks for the report. Unfortunately, this issue looks difficult to resolve. It means that pyscrlink is not working for EV3 now. The error was reported by pybluez, but it is not well maintained (I don't have much time to maintain pyscrlink recently, either). Certain amount of issues are reported for pybluez but they are not resolved.
Maybe pyscrlink should stop relying on pybluez. I'm not sure if I can allocate my time to purge pybluez from pyscrlink and switch to other newer bluetooth python library.
As a memorandom, here I note what I observed.
I tried Bluetooth device search on my system, and I observed similar, but different error.
$ scratch_link
2022-07-16 12:00:22,270 Certificate is ready in FireFox NSS DB: /home/shin/.mozilla/firefox/nnysaloj.default
2022-07-16 12:00:22,739 Certificate is ready in FireFox NSS DB: /home/shin/.mozilla/firefox/nnysaloj.default/chrome_debugger_profile
2022-07-16 12:00:22,759 Certificate is ready for Chrome
2022-07-16 12:00:22,803 Started scratch-link
2022-07-16 12:02:55,435 Start session for web socket path: /scratch/bt
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/home/shin/.local/lib/python3.10/site-packages/pyscrlink/scratch_link.py", line 212, in run
self.discover()
File "/home/shin/.local/lib/python3.10/site-packages/pyscrlink/scratch_link.py", line 189, in discover
discoverer.find_devices(lookup_names=True)
File "/usr/lib/python3.10/site-packages/bluetooth/bluez.py", line 433, in find_devices
flt = _bt.hci_filter_new ()
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
I also tried to install pybluez again, but failed to install pybluez from pip.
$ sudo pip install pybluez
Collecting pybluez
Using cached PyBluez-0.23.tar.gz (97 kB)
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.
This means that, pyscrlink really needs fixes.
from pyscrlink.
Related Issues (20)
- Lego WeDo Support HOT 3
- Delay between sending command from Scratch and forwarding to the device HOT 3
- bluetooth connection to lego boost HOT 16
- Try to connect to LEGO HUB HOT 16
- Bluetooh connection Raspberry Pi 4 with Lego WeDo 2.0 HOT 13
- Second device disconnected HOT 10
- scratch_link procudes endless loop HOT 6
- BLE session disconnected with toio on playmat HOT 3
- Issue during device scanning HOT 5
- failed to connect with latest master HOT 8
- Support for Intelino Smart Train HOT 21
- BUG Method always returns None and awaits a miracle? ;) HOT 3
- LEGO boost HOT 8
- ERROR:ssl_client_socket_impl.cc handshake failed on Ubuntu 22.04 HOT 10
- PR_END_OF_FILE_ERROR - Secure Connection Failed HOT 6
- Lego WeDo: Unable to reestablish connection HOT 3
- CPU ressources HOT 2
- Lego WeDo2.0 not connecting anymore HOT 6
- pyscrlink for Debian 12 (Bookworm) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyscrlink.