Comments (12)
I read the document of this lib,it seems like it's using python2.7,what about using python-is-python2 or reinstalling older os,my pi is not around,sorry for not being able to test.it seems like the project wiki should be updated or something,even the name of the folder is wrong :d
from wfb-ng.
What python version do you have?
from wfb-ng.
What python version do you have?
My system has Python 3.12.3
from wfb-ng.
Just vim /home/ubuntu/wfb-ng/env/lib/python3.12/site-packages/stdeb/util.py
rewrite SafeConfigPaser in line 733 to ConfigParser could work for me
also rewrite all readfp() to read_file(),and change the filename=filename to only filename
from wfb-ng.
Just vim /home/ubuntu/wfb-ng/env/lib/python3.12/site-packages/stdeb/util.py rewrite SafeConfigPaser in line 733 to ConfigParser could work for me also rewrite all readfp() to read_file(),and change the filename=filename to only filename
Thanks @doveshots .
I followed your instructions and was able to successfully build it. Seems like the installation went through successfully.
However the wifibroadcast service seems to be crashing.
> systemctl status wifibroadcast@gs
● [email protected] - WFB profile gs
Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled; preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2024-06-17 11:46:11 IST; 4s ago
Process: 17290 ExecStart=/usr/bin/wfb-server gs ${WFB_NICS} (code=exited, status=1/FAILURE)
Main PID: 17290 (code=exited, status=1/FAILURE)
CPU: 267ms
from wfb-ng.
Try to install stdeb from this repo https://github.com/DdangJin/stdeb
from wfb-ng.
Thanks @svpcom . Seems like the installation worked fine. But the wifibroadcast service is crashing for some reason. Is there a way to check the error logs?
from wfb-ng.
sudo journalctl -xu wifibroadcast@gs
see troubleshooting guide in wiki
from wfb-ng.
sudo journalctl -xu wifibroadcast@gs
see troubleshooting guide in wiki
This is what I'm getting when I run sudo journalctl -xu wifibroadcast@gs
:
Jun 17 11:40:51 X570-PC wfb-server[11675]: Traceback (most recent call last):
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/lib/python3/dist-packages/wfb_ng/config_parser.py", line 77, in parse_>
Jun 17 11:40:51 X570-PC wfb-server[11675]: config.readfp(fd, filename=filename)
Jun 17 11:40:51 X570-PC wfb-server[11675]: ^^^^^^^^^^^^^
Jun 17 11:40:51 X570-PC wfb-server[11675]: AttributeError: 'RawConfigParser' object has no attribute 'readfp'. Did you mean: '>
Jun 17 11:40:51 X570-PC wfb-server[11675]: During handling of the above exception, another exception occurred:
Jun 17 11:40:51 X570-PC wfb-server[11675]: Traceback (most recent call last):
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/bin/wfb-server", line 33, in <module>
Jun 17 11:40:51 X570-PC wfb-server[11675]: sys.exit(load_entry_point('wfb-ng==23.8.141.53708', 'console_scripts', 'wfb-ser>
Jun 17 11:40:51 X570-PC wfb-server[11675]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/bin/wfb-server", line 25, in importlib_load_entry_point
Jun 17 11:40:51 X570-PC wfb-server[11675]: return next(matches).load()
Jun 17 11:40:51 X570-PC wfb-server[11675]: ^^^^^^^^^^^^^^^^^^^^
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
Jun 17 11:40:51 X570-PC wfb-server[11675]: module = import_module(match.group('module'))
Jun 17 11:40:51 X570-PC wfb-server[11675]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
Jun 17 11:40:51 X570-PC wfb-server[11675]: return _bootstrap._gcd_import(name[level:], package, level)
Jun 17 11:40:51 X570-PC wfb-server[11675]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "<frozen importlib._bootstrap_external>", line 995, in exec_module
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/lib/python3/dist-packages/wfb_ng/server.py", line 36, in <module>
Jun 17 11:40:51 X570-PC wfb-server[11675]: from .common import abort_on_crash, exit_status, df_sleep
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/lib/python3/dist-packages/wfb_ng/common.py", line 24, in <module>
Jun 17 11:40:51 X570-PC wfb-server[11675]: from .conf import settings
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/lib/python3/dist-packages/wfb_ng/conf/__init__.py", line 17, in <modul>
Jun 17 11:40:51 X570-PC wfb-server[11675]: settings, cfg_files = _parse_config()
Jun 17 11:40:51 X570-PC wfb-server[11675]: ^^^^^^^^^^^^^^^
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/lib/python3/dist-packages/wfb_ng/conf/__init__.py", line 14, in _parse>
Jun 17 11:40:51 X570-PC wfb-server[11675]: return config_parser.parse_config(os.path.join(os.getcwd(), os.path.dirname(__f>
Jun 17 11:40:51 X570-PC wfb-server[11675]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>
Jun 17 11:40:51 X570-PC wfb-server[11675]: File "/usr/lib/python3/dist-packages/wfb_ng/config_parser.py", line 79, in parse_>
Jun 17 11:40:51 X570-PC wfb-server[11675]: raise ConfigError(v)
Jun 17 11:40:51 X570-PC wfb-server[11675]: wfb_ng.config_parser.ConfigError: 'RawConfigParser' object has no attribute 'readfp'
Jun 17 11:40:51 X570-PC systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
I am not familiar with Python. Not sure why the build contains the incorrect function name.
from wfb-ng.
ok..i was able to fix the above error. Install is working.
Now the service is crashing. When i run sudo service wifibroadcast@gs status
This is the error I see:
○ [email protected] - WFB profile gs
Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled; preset: enabled)
Active: inactive (dead)
Jun 24 16:51:34 X570-PC wfb-server[9506]: [defer.Deferred._runCallbacks #info] # nmcli device show wlx502b73d146e8
Jun 24 16:51:34 X570-PC wfb-server[9506]: [defer.Deferred._runCallbacks #info] # ip link set wlx502b73d146e8 down
Jun 24 16:51:35 X570-PC wfb-server[9506]: [defer.Deferred._runCallbacks #info] # iw dev wlx502b73d146e8 set monitor otherbss
Jun 24 16:51:35 X570-PC wfb-server[9506]: [server.init_wlans #error] RTNETLINK answers: Operation not possible due to RF-kill
Jun 24 16:51:35 X570-PC wfb-server[9506]: [common.abort_on_crash #info] Stopping reactor due to fatal error: RC 2: ip link set wlx502b73d146e8 up
Jun 24 16:51:35 X570-PC wfb-server[9506]: [base.EPollReactor.mainLoop #info] Main loop terminated.
Jun 24 16:51:35 X570-PC wfb-server[9506]: [server.main #info] Exiting with code 1
Jun 24 16:51:35 X570-PC systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Jun 24 16:51:35 X570-PC systemd[1]: [email protected]: Failed with result 'exit-code'.
Jun 24 16:51:39 X570-PC systemd[1]: Stopped [email protected] - WFB profile gs.
from wfb-ng.
See Setup HOWTO how to unblock rfkill
from wfb-ng.
Thanks @svpcom . I was able to resolve the issue. Seems like the rtl8812u driver was not working correctly.
I reinstalled it and it is working now.
from wfb-ng.
Related Issues (20)
- FPV-Camera Service Script fail to start
- Does it support h265? HOT 4
- [BUG] don't compile in arm32v7/ubuntu HOT 4
- Build for nanopi NEO-Core HOT 4
- Требует python3-all-dev HOT 1
- Speed up mavlink? HOT 6
- ssh connection HOT 1
- wfb-cli gs cannot be used HOT 12
- [Jetson Orin] wfb-ng/env/bin/pip: No such file or directory HOT 13
- If RTL88xx support 11ac or only can use 11n to broadcast? HOT 5
- [BUG]wifi driver failed to compile on ubuntu 24.04 LTS HOT 10
- wfbng@gs fails to start as "ip link set" command returns No such device (-19) HOT 1
- Why I use RTL8812AU 2.4g, the signal seems to be poor? HOT 1
- [REQUEST] radxa zero 3w with cam as airunit support HOT 1
- The fopen function can specify binary read mode, which is more suitable for reading key files. HOT 2
- [REQUEST] Make encryption optional on the GS HOT 2
- ubnutu重启后无法正常工作 HOT 5
- 服务重启后无法正常启动 HOT 5
- [BUG]Unable to decrypt packet on wifi6 WNIC HOT 9
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 wfb-ng.