Skip to content

Importing logging module raises exception #2586

Open
@tjnaughton

Description

@tjnaughton

Hi,

I was curious about how logging works in Brython and noticed it cannot be imported in the latest version. To reproduce, in the console on the Brython website:

Brython 3.13.1 on Netscape 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import logging
  File "VFS.logging/__init__.py", line 59, in <module>
    _startTime=time.time_ns()
               ^^^^^^^^^^^^
AttributeError: 'module' object has no attribute 'time_ns'. Did you mean: 'timezone'?
>>> 

Thanks for advancing Brython so far over so many years!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions