Skip to content

Unable to import and use Python module simultaneously in try form #1065

Closed
@ikappaki

Description

@ikappaki

Hi,

it is not posible to import and use Python module within a try form

message: unable to resolve symbol 'logging/getLogger' in this context

To reproduce, open a REPL and try importing and using the logging module within a try form

basilisp.user=> (try
                  (import logging)
                  (logging/getLogger "abc")
                  (finally :done))

  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>:3

This is similar to #1028 but for the try form.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions