Giter VIP home page Giter VIP logo

Comments (1)

kawasaki avatar kawasaki commented on June 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.