Coder Social home page Coder Social logo

SyntaxError after install about pytm HOT 7 CLOSED

wasi0013 avatar wasi0013 commented on June 2, 2024
SyntaxError after install

from pytm.

Comments (7)

wasi0013 avatar wasi0013 commented on June 2, 2024 1

Are there any dependencies that require 3.12+?

No. Currently, there are two dependencies: click & rich. There is a possibility of exploring textual in the future. But, it should also be compatible with lower Python versions.

Would it be acceptable to bring compatibility with 3.11?

Absolutely. I wanted to develop the core features first, and then improve the test coverage before diving into compatibility.

I noticed that there are stub functions that are shadowing other functions in cli.py, is that intended behavior?

Nope! This is not intended. Thanks, for the catch, will fix it.

from pytm.

wasi0013 avatar wasi0013 commented on June 2, 2024 1

I've fixed the f-string issues, and renamed stub functions so that they don't shadow other functions. Thanks, @Aareon for pointing it out!

from pytm.

Aareon avatar Aareon commented on June 2, 2024

Due to usage of single quotes within a single-quoted f-string.

from pytm.

Aareon avatar Aareon commented on June 2, 2024
File "C:\Users\Aareon\.virtualenvs\PyTM-f4mTLz1x\Lib\site-packages\python_pytm-0.0.12-py3.11.egg\PyTM\core\invoice_handler.py", line 74
    <td class="p-2 border border-gray-300">{float(t['duration']/360):,.02f}</td>

Invalid decimal literal.

from pytm.

wasi0013 avatar wasi0013 commented on June 2, 2024

Which python version are you running? Python 3.11?

Only Python 3.12 is supported for now.

from pytm.

wasi0013 avatar wasi0013 commented on June 2, 2024

I just noticed you've forked the repo, if you are working on a fix, feel free to create a pull request when you are done.

from pytm.

Aareon avatar Aareon commented on June 2, 2024

Are there any dependencies that require 3.12+? Would it be acceptable to bring compatibility with 3.11? I noticed that there are stub functions that are shadowing other functions in cli.py, is that intended behavior?

from pytm.

Related Issues (2)

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.