Giter Club home page Giter Club logo

latex_render's Introduction

Hi there 👋

  • 🎯 I’m currently working on nlp. 😎
  • 🌱 I’m currently learning go. 😅
  • 🤔 I'm thinking about how to write better code. 😁
  • 💬 Ask me about python、go、nlp.
  • 📫 How to reach me: kebo.site

rfyiamcool's github stats

visitor badge

latex_render's People

Contributors

bo-ke avatar

Watchers

 avatar

latex_render's Issues

Broken on Python 3.10

OS: Fedora 35

Invoking help with Python 3.9 is fine

$ python3.9 -m latex_render -h
usage: latex_render [-h] [--version] -i INPUT_FILE_PATH [-o OUTPUT_FILE_PATH] [-type TYPE]

Run Latex_render

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -i INPUT_FILE_PATH, --i INPUT_FILE_PATH
                        input file path
  -o OUTPUT_FILE_PATH, --o OUTPUT_FILE_PATH
                        output file path, if None use the input file path
  -type TYPE, --type TYPE
                        type, 1: use codecogs.com 2: use render.githubusercontent.com (default = 1)

but crashes with 3.10

$ python3.10 -m latex_render -h
Traceback (most recent call last):
  File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/USER/.local/lib/python3.10/site-packages/latex_render/__main__.py", line 30, in <module>
    class ArgumentParser(argparse.ArgumentParser):
  File "/home/USER/.local/lib/python3.10/site-packages/latex_render/__main__.py", line 47, in ArgumentParser
    def add_argument(self, *args, **kwargs):
  File "/home/USER/.local/lib/python3.10/site-packages/overrides/overrides.py", line 59, in overrides
    for super_class in _get_base_classes(sys._getframe(2), method.__globals__):
  File "/home/USER/.local/lib/python3.10/site-packages/overrides/overrides.py", line 76, in _get_base_classes
    class_name_components in _get_base_class_names(frame)]
  File "/home/USER/.local/lib/python3.10/site-packages/overrides/overrides.py", line 139, in _get_base_class_names
    extends.append(('name', co.co_names[oparg]))
IndexError: tuple index out of range

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.