Giter VIP home page Giter VIP logo

Comments (8)

deltaredentertainment avatar deltaredentertainment commented on August 15, 2024 1

I have forgot to mention that it gives the error for both encode and decode

from python-codicefiscale.

deltaredentertainment avatar deltaredentertainment commented on August 15, 2024 1

thanks, it works.

from python-codicefiscale.

fabiocaccamo avatar fabiocaccamo commented on August 15, 2024

@deltaredentertainment Could you tell me the input arguments you are using for both, encoding and decoding?

from python-codicefiscale.

deltaredentertainment avatar deltaredentertainment commented on August 15, 2024

certamente, here is a copy of the code used for trial:

`
from codicefiscale import codicefiscale

cod = codicefiscale.encode(
lastname="Rossi",
firstname="Mario",
gender="M",
birthdate="29/11/2004",
birthplace="Torino",
)

cod1 = codicefiscale.decode(
"RSSMRA00S29L219C"
)

print(cod1)
print(cod)
and here is the error:
site-packages/codicefiscale/codicefiscale.py", line 408, in encode
decode(code)
line 485, in decode
raise ValueError(f"[codicefiscale] wrong birthplace code: {birthplace_code!r}")
ValueError: [codicefiscale] wrong birthplace code: 'L219'`

Thanks!

from python-codicefiscale.

fabiocaccamo avatar fabiocaccamo commented on August 15, 2024

Thank you!
That birthplace code is correct and I'm also sure that it has been used in the test suite.

I will try to replicate the error.

from python-codicefiscale.

deltaredentertainment avatar deltaredentertainment commented on August 15, 2024

i tried even with others, but it keeps resulting in the same error. Let me know, thanks.

from python-codicefiscale.

deltaredentertainment avatar deltaredentertainment commented on August 15, 2024

Dear Fabio,
I have downloaded the previous version (0.6.1) and now is working properly.
Regards,
DR

from python-codicefiscale.

fabiocaccamo avatar fabiocaccamo commented on August 15, 2024

@deltaredentertainment Looking at the cause of the problem I don't understand how the previous version can work well for you.

Anyway... this is fixed now, you can upgrade to 0.7.1 version.

from python-codicefiscale.

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.