Coder Social home page Coder Social logo

Comments (5)

spanezz avatar spanezz commented on June 3, 2024 1

This has become something not so relevant to a38's code and more relevant to assistance with local system setup. At a38 level, I cannot do much more than documenting the requirements.

I'm closing the ticket

from python-a38.

spanezz avatar spanezz commented on June 3, 2024

It looks like you're using an old version of Python3 that a38 is not supporting: the required argument to add_subparsers has been added in Python 3.7:

required - Whether or not a subcommand must be provided, by default False (added in 3.7)

Note that Python 3.6 is end-of-life as of 2021-12-23.

from python-a38.

angus73 avatar angus73 commented on June 3, 2024

Many thanks, I had Python 3.6 indeed.
Now I have just installed Python 3.7 using the deadsnakes PPA (as described here, but the problem is still there. More info:

$ python --version
Python 2.7.17

$ python3.7 --version
Python 3.7.12

I can guess there is some kind of binding to do, I tried to alias "python" to "python3.7" but still doesn't work, so (obviously), as I am not an expert, I think I would need some more help. Let me know if you can kindly help me, or maybe where I can ask.

Many thanks, again
(running Ubuntu 18.04)

---edit---
I tried to setup update-alternatives according to this page, but still doesn't work, although at the moment I have

$ python --version
Python 3.7.12

from python-a38.

spanezz avatar spanezz commented on June 3, 2024

Hello. The only thing I can think of is to replace the first line of a38tool to point to python3.7 instead of python3

from python-a38.

angus73 avatar angus73 commented on June 3, 2024

Thank you!
Did it, and it seems something is movin' on, but now:

$ a38tool --help
Traceback (most recent call last):
File "/home/andrea/.local/bin/a38tool", line 9, in
import a38.fattura as a38
ModuleNotFoundError: No module named 'a38'

My previous step was "pip3 install a38", was it correct or is there a better way?

Thanks again

from python-a38.

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.