Code Monkey home page Code Monkey logo

pkglog's People

Contributors

bulletmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

some-forks

pkglog's Issues

ValueError: Invalid isoformat string

On Arch Linux I'm seeing these Invalid isoformat string errors with the latest version from the AUR package.

$ pacman -Q pkglog python
pkglog 1.27-2
python 3.11.3-2
$ /usr/bin/pkglog -V
1.27
$ /usr/bin/pkglog
Traceback (most recent call last):
  File "/usr/bin/pkglog", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/pkglog/pkglog.py", line 327, in main
    dt = logmod.get_time(line)
         ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pkglog/parsers/pacman.py", line 25, in get_time
    dt = datetime.fromisoformat(f'{dts[1:23]}:{dts[23:-1]}')
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Invalid isoformat string: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00:\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00[2022-09-14T07:53:11+0200'

If there's additional info needed, I'll be happy to add it here.

Regards

Does not reset color

docker run --rm -it debian:11
apt update
apt install python3-pip
pip3 install pkglog # pkglog-1.19-py3-none-any.whl
script /tmp/log
pkglog; exit
...
^[[39m--------------------------------------------------------------------------------^M
^[[32m2023-02-12 23:48:36 vim         2:8.2.2434-3+deb11u1 installed^M
^[[32m2023-02-12 23:48:36 xxd         2:8.2.2434-3+deb11u1 installed^M
^[[32m2023-02-12 23:48:36 vim-common  2:8.2.2434-3+deb11u1 installed^M
^[[32m2023-02-12 23:48:36 less        551-2 installed^M
^[[32m2023-02-12 23:48:36 vim-runtime 2:8.2.2434-3+deb11u1 installed^M
# ^M

Script done on 2023-02-12 23:48:50+00:00 [COMMAND_EXIT_CODE="0"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.