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

Ujson import doesn't work #26

Open
CuboidRaptor opened this issue Jul 20, 2023 · 0 comments
Open

Ujson import doesn't work #26

CuboidRaptor opened this issue Jul 20, 2023 · 0 comments

Comments

@CuboidRaptor
Copy link

CuboidRaptor commented Jul 20, 2023

Code I used: (reproduce)

import lazy_import
ujson = lazy_import.lazy_module("ujson")
print(dir(ujson))
# Returns ['__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__']
ujson.dump()
# AttributeError

Ujson when lazy imported is basically blank. This works with many other libraries, just not ujson.
Lazy_import version 0.2.2, Windows 10, Python 3.11.4

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

1 participant