-
-
Couldn't load subscription status.
- Fork 19
Closed
Labels
component:compilerIssue pertaining to compilerIssue pertaining to compilerissue-type:bugSomething isn't workingSomething isn't working
Description
Hi,
It seems that it's not possible to import and use a Python module within a do form simultaneously
unable to resolve symbol 'logging/getLogger' in this context
To reproduce, open a REPL and try importing and using the logging module within a do form
basilisp.user=> (do (import logging) (logging/getLogger "abc"))
exception: <class 'basilisp.lang.compiler.exception.CompilerException'>
phase: :analyzing
message: unable to resolve symbol 'logging/getLogger' in this context
form: logging/getLogger
location: <REPL Input>:1However, the same code works as expected when not using the do form:
basilisp.user=> (import logging) (logging/getLogger "abc")
<Logger abc (WARNING)>I would expect this to work inside a do form as well.
Thanks
Metadata
Metadata
Assignees
Labels
component:compilerIssue pertaining to compilerIssue pertaining to compilerissue-type:bugSomething isn't workingSomething isn't working