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

DeprecationWarning about pkg_resources.declare_namespace #76

Closed
kba opened this issue Mar 10, 2023 · 10 comments
Closed

DeprecationWarning about pkg_resources.declare_namespace #76

kba opened this issue Mar 10, 2023 · 10 comments
Assignees
Labels
bug Something isn't working maintenance

Comments

@kba
Copy link
Contributor

kba commented Mar 10, 2023

__import__("pkg_resources").declare_namespace(__name__)

I'm getting

DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('qurator')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages

for these, consider switching to using implicit PEP420 namespaces?

@mikegerber
Copy link
Member

(Edit to fix the link to PEP420)

@mikegerber mikegerber self-assigned this Mar 14, 2023
@mikegerber mikegerber added maintenance bug Something isn't working labels Mar 14, 2023
@mikegerber
Copy link
Member

Messing with this stuff feels like computer-aided Jenga, I hope it works 🙏

@mikegerber mikegerber reopened this Mar 14, 2023
@mikegerber
Copy link
Member

Yeah, it's broken... Should have tested it properly, as installation is broken now.

@mikegerber
Copy link
Member

I guess it's OK now.

no idea what i am doing

@mikegerber
Copy link
Member

OCR-D/ocrd_all#356 (comment)

The GIF couldn't be truer. It seems this is broken because i.e. eynollah (and probably other packages) uses the old style namespace.

@mikegerber
Copy link
Member

Thinking about just ditching the qurator namespace and using "dinglehopper".

@mikegerber
Copy link
Member

Reinstalling it makes it broken again...

@mikegerber
Copy link
Member

#77 has more info of why I didn't notice further breakage.

I'm done for the week and going to fix this on Monday.

@mikegerber
Copy link
Member

Reinstalling it makes it broken again...

It was not the reinstalling, but installing without -e that made it break, because then the namespace comes into play.

@mikegerber
Copy link
Member

Should be fixed with f668963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maintenance
Projects
None yet
Development

No branches or pull requests

2 participants