awkman / pywifi

A cross-platform module for manipulating WiFi devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NotImplementedError in MacOSX10.15

Rhythmicc opened this issue · comments

~ $ pip3 install pywifi
Collecting pywifi
  Downloading https://files.pythonhosted.org/packages/89/55/170a52685eeefeab36bfaf26bdca629263a0a28efffc3b556b2cc86ab966/pywifi-1.1.12-py3-none-any.whl
Installing collected packages: pywifi
Successfully installed pywifi-1.1.12
You are using pip version 19.0.3, however version 19.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
➜ ~ $ python3 
Python 3.7.4 (v3.7.4:e09359112e, Jul  8 2019, 14:54:52) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywifi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pywifi/__init__.py", line 15, in <module>
    from .wifi import PyWiFi
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pywifi/wifi.py", line 15, in <module>
    from .iface import Interface
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pywifi/iface.py", line 15, in <module>
    raise NotImplementedError
NotImplementedError
>>> exit()

it seems like pywifi only support win or linux, and pywifi also can not run in my macbook

commented

it seems like pywifi only support win or linux, and pywifi also can not run in my macbook

我也遇到了相同的问题

same to me,how to solve the problem

same to me,how to solve the problem

write a fake class to replace pywifi. (using os.system())

raise NotImplementedError
The 10th to 15th line of ifcace.py file tells that the pywifi only supports Windows and Linux platform but in MacOS it doesn't implement.

aghhhhh why exclude mac peeps :'(((

直接pip install pywifi中的iface.py文件在导包的时候判断系统是没有Mac OS X

pip3 uninstall pywifi
git clone -b macos_dev https://github.com/awkman/pywifi
cd pywifi
pip3 install .

在进行import pywifi就不会报NotImplementedError

thanks!