Hi,

Has anyone had a chance of looking at the 'import' issues created by switching to Py3 style imports (done by running 2to3)? Or maybe even has a solution?

I am currently suspecting the 'import' issues to be related to:

1. module files are named the same as the corresponding class, I got a bit further by renaming the files to be lower case and keep the class as is. This is against Pep 8 and I also came across a SO post the other day which pointed to this as an issue - which I obviously can't find today.
2. AttributeError: 'module' object has no attribute 'uiwx'
3. exec("from %s import *" % mods[typ], globals())

What do you think, could 1. be the base issue?

If yes I think the lines in uiwx.__init__.py like this:

from .dPemMixin import dPemMixin
dabo.ui.dPemMixin = dPemMixin

should become this:

from dabo.ui.uiws.dpemmixin import dPemMixin
dabo.ui.dPemMixin = dPemMixin

Do you think this is correct?

I don't understand why 'uiwx' is not found, this is when I try to run dMenu.py

Anyone has a suggestion on how 3. could be changed to not use "import *"?

I'd really appreciate some feedback or even better help on this as I am stuck and don't get anywhere with this.

Werner

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to