pretalx / pretalx-plugin-cookiecutter

A cookiecutter for pretalx plugins
3 stars 2 forks source link

missing __init__.py file for a module #4

Open kvbik opened 1 year ago

kvbik commented 1 year ago

I run into the problem while debugging one plugin. Take pretalx-downstream [1] as an example. The plugin works, because there is some internal import magic. Though import pretalx_downstream fails. And so would any other absolut imports. I think this can cause some unnecessary confusion.

[1] https://pypi.org/project/pretalx-downstream/

PS: In the pretix plugin cookiecutter [2] this is a non issue, because the apps.py logic is in the __init__.py - which I am not saying you have to follow :)

[2] https://github.com/pretix/pretix-plugin-cookiecutter/

rixx commented 1 year ago

Hm, yes, let's talk about pretalx-downstream:

In [1]: import pretalx_downstream

In [2]: type(pretalx_downstream)
Out[2]: module

What is the exact import error you are seeing? Which Python version is this on?