Giter Club home page Giter Club logo

Comments (6)

dvershinin avatar dvershinin commented on May 19, 2024

Thanks for the bug report. Fixed and released 0.0.9 with tests and fixes.

from lastversion.

mNantern avatar mNantern commented on May 19, 2024

That's great, thank you ! But in the process it looks like you broke something.

For example now the repository roer is failing :

Traceback (most recent call last):
  File "/usr/local/bin/lastversion", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/lastversion/lastversion.py", line 153, in main
    version = latest(args.repo, args.sniff, args.validate, args.format)
  File "/usr/local/lib/python3.7/site-packages/lastversion/lastversion.py", line 100, in latest
    description = r.find(class_='markdown-body').text
AttributeError: 'NoneType' object has no attribute 'text'

It was working in version 0.0.8.

from lastversion.

dvershinin avatar dvershinin commented on May 19, 2024

Some update with new options (--format json) caused it. The 0.0.10 (just released) should fix that.
Added test for that repo as well.

Thanks.

from lastversion.

mNantern avatar mNantern commented on May 19, 2024

Unfortunately I think something went wrong with the release. I now always have the following error with v0.0.10:

Traceback (most recent call last):
  File "/usr/local/bin/lastversion", line 6, in <module>
    from lastversion import main
  File "/usr/local/lib/python3.7/site-packages/lastversion/__init__.py", line 9, in <module>
    from .lastversion import main
  File "/usr/local/lib/python3.7/site-packages/lastversion/lastversion.py", line 16, in <module>
    from __about__ import __version__
ModuleNotFoundError: No module named '__about__'

from lastversion.

dvershinin avatar dvershinin commented on May 19, 2024

I've been testing with Python 2.7 mainly. Now with 3.6 confirmed the issue and the fix was very simple.
Released 0.0.11 and now testing Python 3.7 as well. Thanks :)

from lastversion.

mNantern avatar mNantern commented on May 19, 2024

Everything is working great now, thank you 👍

from lastversion.

Related Issues (20)

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.