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

filters package in zencoding causing import problems #4

Closed
mystilleef opened this issue May 11, 2010 · 1 comment
Closed

filters package in zencoding causing import problems #4

mystilleef opened this issue May 11, 2010 · 1 comment

Comments

@mystilleef
Copy link

The zencoding package is placed in one of my plugin folders. Importing zen_actions and zen_core works fine. The problem arises when either of this packages try to import zencoding.filters. So I spent the better part of yesterday trying to figure out what's going in. I latter discover some magic going on in filters.init.py. Don't fully understand it or why it's needed, but it's cause import problems. In fact, I can't import zencoding.filters. Strange and unusual since I don't have this problem with any other python package. I suspect the magic going on in filters.init.py is going to break my python packages.

Also in zen_actions.py, why are you import zencoding to get zen_core when both zen_core and zen_actions are in the same package? You are doing:

from zencoding import zen_core as zen_coding
from zencoding import html_matcher

when you could just do

import zen_core as zen_coding
import html_matcher

Anyway this import problems are cause problem in my application. Do I need to do a global import somewhere to avoid these problems? Am I missing something?

@mystilleef
Copy link
Author

Nevermind, I had to name my plugin folder zencoding. Works fine now.

Thanks

This issue was closed.
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