Giter VIP home page Giter VIP logo

wificonfig's People

Contributors

roberware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wificonfig's Issues

Missing wifiConfApp

I just installed on Raspberry Python 3.9. Install looks good, but it is missing wifiConfApp

pi@raspberrypi:~ $ sudo pip3 install wifiConfig
   Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
   Collecting wifiConfig
   Using cached https://www.piwheels.org/simple/wificonfig/wifiConfig-0.1.14-py3-none-any.whl (9.6 kB)
   Requirement already satisfied: PyAccessPoint in /usr/local/lib/python3.9/dist-packages (from wifiConfig) (0.2.5)
   Requirement already satisfied: flask in /usr/lib/python3/dist-packages (from wifiConfig) (1.1.2)
   Requirement already satisfied: netifaces in /usr/local/lib/python3.9/dist-packages (from PyAccessPoint->wifiConfig) (0.11.0)
   Requirement already satisfied: psutil in /usr/lib/python3/dist-packages (from PyAccessPoint->wifiConfig) (5.8.0)
   Requirement already satisfied: wireless in /usr/local/lib/python3.9/dist-packages (from PyAccessPoint->wifiConfig) (0.3.3)
   Installing collected packages: wifiConfig
   Successfully installed wifiConfig-0.1.14
   pi@raspberrypi:~ $ sudo python3 wifiSetup.py 
python3: can't open file '/home/pi/wifiSetup.py': [Errno 2] No such file or directory
   pi@raspberrypi:~ $ cd rfid
   pi@raspberrypi:~/rfid $ sudo python3 wifiSetup.py 
   Traceback (most recent call last):
   File "/home/pi/rfid/wifiSetup.py", line 1, in <module>
   from wifiConfig import WifiConfApp
ImportError: cannot import name 'WifiConfApp' from 'wifiConfig' (/usr/local/lib/python3.9/dist-packages/wifiConfig/__init__.py)


KeyError

Hello just want to say thank you for this library as it has saved me a lot of headaches and you did a very good job.

On line 50 in main.py in the colors dict it throws a key error exception when checking for wifi connection and not finding one. I was able to resolve the issue by adding "FAILED": '\033[91m', to the colors dict.
Update dict.
colors={
"INFO": '\033[94m',
"OK": '\033[92m',
"FAIL": '\033[91m',
"FAILED": '\033[91m',
"END": '\033[0m'
}
Hopefully, you are available to add the fix.
If you would like me to submit a pull request I can do that as well.
Thanks, Noah

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.