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

Has a namespace clash with other factur-x package #40

Open
nyov opened this issue Dec 18, 2019 · 1 comment
Open

Has a namespace clash with other factur-x package #40

nyov opened this issue Dec 18, 2019 · 1 comment

Comments

@nyov
Copy link

nyov commented Dec 18, 2019

Trying the README example:

from facturx import FacturX

inv = FacturX('some-file.pdf')

errors spectacularly in Python3 at least:

$ python3 test.py
Traceback (most recent call last):
  File "test.py", line 1, in <module>
	from facturx import FacturX
  File "/home/testlab/.local/lib/python3.7/site-packages/facturx/__init__.py", line 3, in <module>
	from .facturx import FacturX
ImportError: cannot import name 'FacturX' from 'facturx.facturx' (/home/testlab/.local/lib/python3.7/site-packages/facturx/facturx.py)

It does say Python3 is supported, right?
https://github.com/invoice-x/factur-x-ng/blob/master/setup.py#L21

@nyov
Copy link
Author

nyov commented Dec 18, 2019

Okay, this happens to be a name-clash with the other factur-x package, because the package name changed but the module dir did not, and so they were co-installable but overwrote each other.

I think this should be changed.

@nyov nyov changed the title import fails Has a namespace clash with other factur-x package Dec 18, 2019
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

1 participant