Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Not able to mount using BTLE #9

Open
s1shed opened this issue Jun 24, 2023 · 2 comments
Open

Not able to mount using BTLE #9

s1shed opened this issue Jun 24, 2023 · 2 comments

Comments

@s1shed
Copy link

s1shed commented Jun 24, 2023

❯ python3 fzfs.py -a MACADDR -m /home/user/fzmount
Traceback (most recent call last):
  File "/home/user/src/fzfs/fzfs.py", line 63, in <module>
    main()
  File "/home/user/src/fzfs/fzfs.py", line 42, in main
    if not os.path.exists(args.serial_device):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 19, in exists
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

I tried the following to troubleshoot a bit

import serial
import serial.tools.list_ports
import serial_ble
bluetooth = serial_ble.BLESerial(MACADDR, '19ed82ae-ed21-4c9d-4145-228e61fe0000', '19ed82ae-ed21-4c9d-4145-228e62fe0000')
print(bluetooth)

which yielded the following

Traceback (most recent call last):
  File "/home/user/src/fzfs/t.py", line 5, in <module>
    print(bluetooth)
  File "/home/user/.virtualenvs/fzfs/lib/python3.11/site-packages/serial/serialutil.py", line 532, in __repr__
    'rtscts={p.rtscts!r}, dsrdtr={p.dsrdtr!r})'.format(
                                                ^^^^^^^
AttributeError: 'BLESerial' object has no attribute 'is_open'. Did you mean: 'isOpen'?

Using the cable with my FZ works fine.

Please let me know if there's anything I can try to help debug this.

@dakhnod
Copy link
Owner

dakhnod commented Jun 24, 2023

Hm, weird. Could this be a dependency issue? Did you install from requirements.txt?

@s1shed
Copy link
Author

s1shed commented Jun 24, 2023

Yes, the dependencies were installed using requirements.txt

OS: Debian Sid
Python 3.11.4

❯ pip3 list
Package       Version
------------- -------
async-timeout 4.0.2
bleak         0.17.0
dbus-fast     1.4.0
fusepy        3.0.1
numpy         1.23.3
pip           23.1.2
protobuf      4.21.6
pyserial      3.5
setuptools    67.8.0
wheel         0.38.4

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants