Git Product home page Git Product logo

Comments (12)

doveshots avatar doveshots commented on August 13, 2024 1

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.

svpcom avatar svpcom commented on August 13, 2024

What python version do you have?

from wfb-ng.

ramkrishna757575 avatar ramkrishna757575 commented on August 13, 2024

What python version do you have?

My system has Python 3.12.3

from wfb-ng.

doveshots avatar doveshots commented on August 13, 2024

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.

ramkrishna757575 avatar ramkrishna757575 commented on August 13, 2024

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.

svpcom avatar svpcom commented on August 13, 2024

Try to install stdeb from this repo https://github.com/DdangJin/stdeb

from wfb-ng.

ramkrishna757575 avatar ramkrishna757575 commented on August 13, 2024

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?

image

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

sudo journalctl -xu wifibroadcast@gs
see troubleshooting guide in wiki

from wfb-ng.

ramkrishna757575 avatar ramkrishna757575 commented on August 13, 2024

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.

ramkrishna757575 avatar ramkrishna757575 commented on August 13, 2024

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.

svpcom avatar svpcom commented on August 13, 2024

See Setup HOWTO how to unblock rfkill

from wfb-ng.

ramkrishna757575 avatar ramkrishna757575 commented on August 13, 2024

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)

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.