Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md: broken links to the fatturapa.gov.it xsl files #10

Closed
paride opened this issue Oct 3, 2021 · 4 comments
Closed

README.md: broken links to the fatturapa.gov.it xsl files #10

paride opened this issue Oct 3, 2021 · 4 comments

Comments

@paride
Copy link

paride commented Oct 3, 2021

The two README.md links to the xsl files from fatturapa.gov.it:

are currently broken (404).

@paride
Copy link
Author

paride commented Oct 3, 2021

I found new links for updated stylesheets at https://www.fatturapa.gov.it/it/norme-e-regole/documentazione-fattura-elettronica/formato-fatturapa/index.html. They are:

I tried using the "fatturaordinaria" one but unfortunately it didn't work (well, at least not with version 0.1.3, currently in Debian unstable):

ERROR uncaught exception
Traceback (most recent call last):
  File "/usr/bin/a38tool", line 350, in <module>
    main()
  File "/usr/bin/a38tool", line 343, in main
    res = app.run()
  File "/usr/bin/a38tool", line 247, in run
    self.render(f, output)
  File "/usr/bin/a38tool", line 288, in render
    self.transform.to_pdf(self.wkhtmltopdf, f, output)
  File "/usr/lib/python3/dist-packages/a38/render.py", line 38, in to_pdf
    raise RuntimeError("%s exited with error %d: stderr: %s", self.wkhtmltopdf, res.returncode, res.stderr)
AttributeError: 'XSLTTransform' object has no attribute 'wkhtmltopdf'

OTOH the stylesheet from AssoSoftware works fine.

It would be nice to ship the stylesheets together with this library, however license for the site contents [1] doesn't allow so, and I couldn't find anything more specific for the stylesheets...

[1] https://www.fatturapa.gov.it/it/copyright/index.html

@spanezz
Copy link
Contributor

spanezz commented Oct 6, 2021

It would be nice to ship the stylesheets together with this library, however license for the site contents [1] doesn't allow so, and I couldn't find anything more specific for the stylesheets...

Indeed, I couldn't find anything that said I could distribute those files, so I just put links in the README.. which is quite sad.

I'll now fix the README to link to the FatturaPA index page instead of individual stylesheets, since their names, as you have noticed, change with versions

@spanezz
Copy link
Contributor

spanezz commented Oct 6, 2021

The exception you reported, seems to be fixed in the current main branch: can you confirm?

@paride
Copy link
Author

paride commented Oct 6, 2021

Thanks Enrico! I can confirm that the version from main works fine with the new stylesheet. I'm closing this issue.

@paride paride closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants