Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import statement changing between versions and python 3.6 incompatibility #3

Open
charithjp opened this issue Jan 3, 2024 · 1 comment

Comments

@charithjp
Copy link

The module name might have changed from 0.2.4 to 0.3.1 so the import statement went from:
from OuiLookup import OuiLookup to from ouilookup import OuiLookup

The 0.3.1 version also throws the following error with Python 3.6:

  File "C:\Python36\lib\site-packages\ouilookup\__init__.py", line 23, in <module>
    from .main import OuiLookup  # noqa: E402
  File "<fstring>", line 1
    (expression=)
               ^
SyntaxError: invalid syntax

Possibly a newer string formatting method that's not compatible with 3.6 according to https://stackoverflow.com/questions/49582183/pythonl-invalid-syntax-file-fstring-line-1

@sanderjo
Copy link

Me too:

Following https://pypi.org/project/ouilookup/#:~:text=from%20OuiLookup%20import%20OuiLookup gives an error:

>>> from OuiLookup import OuiLookup
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'OuiLookup'

And this does work:

>>> from ouilookup import OuiLookup
>>> OuiLookup().query('00:00:aa:00:00:00')
[{'0000AA000000': 'XEROX CORPORATION'}]

So change in documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants