awkman / pywifi

A cross-platform module for manipulating WiFi devices.
MIT License
447 stars 154 forks source link

Cannot import name'const' from 'pywifi'(unknown location) #73

Open TomyTiger opened 2 years ago

TomyTiger commented 2 years ago

import time import pywifi from pywifi import const Traceback (most recent call last): File "<pyshell#4>", line 1, in from pywifi import const ImportError: cannot import name 'const' from 'pywifi' (unknown location)

can you help to check what's the problem?

receptopalak commented 2 years ago

i am having the same problem, can you support?

Hammer2900 commented 1 year ago

Use constants directly

import pywifi

from pywifi import Profile

print(pywifi.AUTH_ALG_OPEN)