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

nxbt demo don't work at all #29

Closed
Deltavion opened this issue Sep 2, 2021 · 7 comments
Closed

nxbt demo don't work at all #29

Deltavion opened this issue Sep 2, 2021 · 7 comments

Comments

@Deltavion
Copy link

I'm a french student, sorry for the English mistakes

I tried NXBT on RaspberryPi 4 with Raspbian and a 12.1.0 Nintendo Switch

The commands I've done :

sudo pip3 install nxbt

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting nxbt
  Downloading https://files.pythonhosted.org/packages/e0/ec/6c7512c3b4371b1a34bd6176a86beb9050c7d07cc16f18c4874172ac8b87/nxbt-0.1.3-py3-none-any.whl (97kB)
    100% |████████████████████████████████| 102kB 255kB/s 
Requirement already satisfied: dbus-python==1.2.16 in /usr/local/lib/python3.7/dist-packages (from nxbt) (1.2.16)
Collecting Flask==1.1.2 (from nxbt)
  Downloading https://files.pythonhosted.org/packages/f2/28/2a03252dfb9ebf377f40fba6a7841b47083260bf8bd8e737b0c6952df83f/Flask-1.1.2-py2.py3-none-any.whl (94kB)
    100% |████████████████████████████████| 102kB 189kB/s 
Collecting psutil==5.6.6 (from nxbt)
  Downloading https://www.piwheels.org/simple/psutil/psutil-5.6.6-cp37-cp37m-linux_armv7l.whl (279kB)
    100% |████████████████████████████████| 286kB 248kB/s 
Collecting pynput==1.7.1 (from nxbt)
  Downloading https://files.pythonhosted.org/packages/89/66/0e62f409bb785db78ae5d228e6b1bf1e80d210744bcd21b9487417b049f5/pynput-1.7.1-py2.py3-none-any.whl (99kB)
    100% |████████████████████████████████| 102kB 383kB/s 
Collecting eventlet==0.27.0 (from nxbt)
  Downloading https://files.pythonhosted.org/packages/bc/19/1779ebc8d18aeb68187da49d0c2a76c8a775c63d7504b51e2da0244f18a8/eventlet-0.27.0-py2.py3-none-any.whl (223kB)
    100% |████████████████████████████████| 225kB 282kB/s 
Collecting Flask-SocketIO==5.0.1 (from nxbt)
  Downloading https://files.pythonhosted.org/packages/05/ff/4de07d38fd2a4fb6326d96a2ecf9fb48026c3f064bc600f33fde0dc1c891/Flask_SocketIO-5.0.1-py2.py3-none-any.whl
Collecting blessed==1.17.10 (from nxbt)
  Downloading https://files.pythonhosted.org/packages/7d/16/9109bec05f7927f796e498bafa4a250515afc3f6cdc668e94f4f5cbb46f1/blessed-1.17.10-py2.py3-none-any.whl (76kB)
    100% |████████████████████████████████| 81kB 276kB/s 
Requirement already satisfied: click>=5.1 in /usr/lib/python3/dist-packages (from Flask==1.1.2->nxbt) (7.0)
Requirement already satisfied: itsdangerous>=0.24 in /usr/lib/python3/dist-packages (from Flask==1.1.2->nxbt) (0.24)
Collecting Werkzeug>=0.15 (from Flask==1.1.2->nxbt)
  Downloading https://files.pythonhosted.org/packages/bd/24/11c3ea5a7e866bf2d97f0501d0b4b1c9bbeade102bb4b588f0d2919a5212/Werkzeug-2.0.1-py3-none-any.whl (288kB)
    100% |████████████████████████████████| 296kB 221kB/s 
Collecting Jinja2>=2.10.1 (from Flask==1.1.2->nxbt)
  Downloading https://files.pythonhosted.org/packages/80/21/ae597efc7ed8caaa43fb35062288baaf99a7d43ff0cf66452ddf47604ee6/Jinja2-3.0.1-py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 327kB/s 
Collecting evdev>=1.3; "linux" in sys_platform (from pynput==1.7.1->nxbt)
  Downloading https://www.piwheels.org/simple/evdev/evdev-1.4.0-cp37-cp37m-linux_armv7l.whl (99kB)
    100% |████████████████████████████████| 102kB 321kB/s 
Collecting python-xlib>=0.17; "linux" in sys_platform (from pynput==1.7.1->nxbt)
  Downloading https://files.pythonhosted.org/packages/c2/16/950463d36e8b64067c4d535038c5512de8200015e793d7d0a3f400187cbf/python_xlib-0.31-py2.py3-none-any.whl (179kB)
    100% |████████████████████████████████| 184kB 312kB/s 
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pynput==1.7.1->nxbt) (1.12.0)
Collecting greenlet>=0.3 (from eventlet==0.27.0->nxbt)
  Downloading https://www.piwheels.org/simple/greenlet/greenlet-1.1.1-cp37-cp37m-linux_armv7l.whl (155kB)
    100% |████████████████████████████████| 163kB 345kB/s 
Collecting monotonic>=1.4 (from eventlet==0.27.0->nxbt)
  Downloading https://files.pythonhosted.org/packages/9a/67/7e8406a29b6c45be7af7740456f7f37025f0506ae2e05fb9009a53946860/monotonic-1.6-py2.py3-none-any.whl
Collecting dnspython<2.0.0,>=1.15.0 (from eventlet==0.27.0->nxbt)
  Downloading https://files.pythonhosted.org/packages/ec/d3/3aa0e7213ef72b8585747aa0e271a9523e713813b9a20177ebe1e939deb0/dnspython-1.16.0-py2.py3-none-any.whl (188kB)
    100% |████████████████████████████████| 194kB 422kB/s 
Collecting python-socketio>=5.0.2 (from Flask-SocketIO==5.0.1->nxbt)
  Downloading https://files.pythonhosted.org/packages/77/d2/2971b41d907f2e33b2551efbfce99dcff3b361bcfbcdc3b72d84e5a4f2d6/python_socketio-5.4.0-py3-none-any.whl (55kB)
    100% |████████████████████████████████| 61kB 352kB/s 
Requirement already satisfied: wcwidth>=0.1.4 in /usr/lib/python3/dist-packages (from blessed==1.17.10->nxbt) (0.1.7)
Collecting MarkupSafe>=2.0 (from Jinja2>=2.10.1->Flask==1.1.2->nxbt)
  Downloading https://www.piwheels.org/simple/markupsafe/MarkupSafe-2.0.1-cp37-cp37m-linux_armv7l.whl
Collecting python-engineio>=4.1.0 (from python-socketio>=5.0.2->Flask-SocketIO==5.0.1->nxbt)
  Downloading https://files.pythonhosted.org/packages/b3/8f/08b886f7281b1d7045cebf447a6976ae2403c901e3c145acf3c8a31f93c2/python_engineio-4.2.1-py3-none-any.whl (52kB)
    100% |████████████████████████████████| 61kB 388kB/s 
Collecting bidict>=0.21.0 (from python-socketio>=5.0.2->Flask-SocketIO==5.0.1->nxbt)
  Downloading https://files.pythonhosted.org/packages/67/d4/eaf9242722bf991e0955380dd6168020cb15a71cc0d3cc2373f4911b1f1d/bidict-0.21.2-py2.py3-none-any.whl
Installing collected packages: Werkzeug, MarkupSafe, Jinja2, Flask, psutil, evdev, python-xlib, pynput, greenlet, monotonic, dnspython, eventlet, python-engineio, bidict, python-socketio, Flask-SocketIO, blessed, nxbt
  Found existing installation: Werkzeug 0.14.1
    Not uninstalling werkzeug at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'Werkzeug'. No files were found to uninstall.
  Found existing installation: MarkupSafe 1.1.0
    Not uninstalling markupsafe at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'MarkupSafe'. No files were found to uninstall.
  Found existing installation: Jinja2 2.10
    Not uninstalling jinja2 at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'Jinja2'. No files were found to uninstall.
  Found existing installation: Flask 1.0.2
    Not uninstalling flask at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'Flask'. No files were found to uninstall.
  Found existing installation: psutil 5.5.1
    Not uninstalling psutil at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'psutil'. No files were found to uninstall.
Successfully installed Flask-1.1.2 Flask-SocketIO-5.0.1 Jinja2-3.0.1 MarkupSafe-2.0.1 Werkzeug-2.0.1 bidict-0.21.2 blessed-1.17.10 dnspython-1.16.0 evdev-1.4.0 eventlet-0.27.0 greenlet-1.1.1 monotonic-1.6 nxbt-0.1.3 psutil-5.6.6 pynput-1.7.1 python-engineio-4.2.1 python-socketio-5.4.0 python-xlib-0.31

sudo nxbt demo
line break but nothing

sudo nxbt demo -d

[2021-09-02 14:18:25,880] DEBUG in bluez: Using adapter under object path: /org/bluez/hci0

Thanks for any help

@Brikwerk
Copy link
Owner

Brikwerk commented Sep 8, 2021

It looks like you're installing the PyPi version of NXBT. Unfortunately, SwitchOS v12 (the latest Switch Operating System as of this comment) is incompatible with NXBT 0.1.3 (the version up on PyPi currently). The good news is that NXBT 0.1.4 will have support for this release and is almost ready. You can check the progress of this release here and potentially install a pre-release version as per instructions there.

@Deltavion
Copy link
Author

rip

pi@raspberrypi:~ $ sudo pip3 uninstall nxbt
Uninstalling nxbt-0.1.3:
  Would remove:
    /usr/local/bin/nxbt
    /usr/local/lib/python3.7/dist-packages/nxbt-0.1.3.dist-info/*
    /usr/local/lib/python3.7/dist-packages/nxbt/*
Proceed (y/n)? y
pi@raspberrypi:~ $ sudo pip3 install git+http://github.com/Brikwerk/nxbt.git@b48b030b5e8c92666ed446be5c01a8ee2ec93c6f
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting git+http://github.com/Brikwerk/nxbt.git@b48b030b5e8c92666ed446be5c01a8ee2ec93c6f
  Cloning http://github.com/Brikwerk/nxbt.git (to revision b48b030b5e8c92666ed446be5c01a8ee2ec93c6f) to /tmp/pip-req-build-0kiy1x7z
fatal: unable to access 'http://github.com/Brikwerk/nxbt.git/': Could not resolve host: github.com
Command "git clone -q http://github.com/Brikwerk/nxbt.git /tmp/pip-req-build-0kiy1x7z" failed with error code 128 in None
pi@raspberrypi:~ $ sudo pip3 install git+http://github.com/Brikwerk/nxbt.git@b48b030b5e8c92666ed446be5c01a8ee2ec93c6f
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting git+http://github.com/Brikwerk/nxbt.git@b48b030b5e8c92666ed446be5c01a8ee2ec93c6f
  Cloning http://github.com/Brikwerk/nxbt.git (to revision b48b030b5e8c92666ed446be5c01a8ee2ec93c6f) to /tmp/pip-req-build-javh6um6
fatal: unable to access 'http://github.com/Brikwerk/nxbt.git/': Could not resolve host: github.com
Command "git clone -q http://github.com/Brikwerk/nxbt.git /tmp/pip-req-build-javh6um6" failed with error code 128 in None
pi@raspberrypi:~ $ 

@Deltavion
Copy link
Author

oh I forgot a b
sorry for this mistake :|

@Deltavion
Copy link
Author

So I try again with nxbt v0.1.4 and nothing happened:
I turned on my switch on grip/order menu and execute demo command :

sudo nxbt demo

@Brikwerk
Copy link
Owner

If you're still encountering issues with NXBT, I recommend reinstalling from PyPi for the latest version. Eg: sudo pip3 uninstall nxbt and sudo pip3 install nxbt.

If connection issues persist, please post the output from sudo nxbt test.

@Deltavion
Copy link
Author

okay I will try this soon

@Deltavion
Copy link
Author

oh my god it's so fun, demo have worked thanks a lot

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