`import wx` raising `AttributeError`

Matt Newville <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <CA+7ESbqNkf5YiEUKT+HsfCzgfK4uBVzwmMD1jQZbgq57u9H1RQ@mail.gmail.com>
Hi,

First sorry for the vagueness of the details for this question.
I have a couple of reports  hat a package of mine is raising
`AttributeError`  when trying to `import wx` instead of the
tested-for-and-should-be-acceptable `ImportError`.  That is, I want my
package to be able to use `wx` in many places, but not require it for all
use cases.  So, I test `import wx` for `ImportError`.

The report has this:

/srv/conda/envs/notebook/lib/python3.6/site-packages/wx/__init__.py in
<module>     10 # Load the main version string into the package
namespace     11 import wx.__version__---> 12 __version__ =
wx.__version__.VERSION_STRING     13      14
AttributeError: module 'wx' has no attribute '__version__'


I don't have any more details on the environment and I haven't been able to
make a conda environment that reproduces this problem.

Has anyone seen such a problem where `import wx` finds `wx/__init__.py` but
fails to find `__version__.py`?

--Matt Newville

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/CA%2B7ESbqNkf5YiEUKT%2BHsfCzgfK4uBVzwmMD1jQZbgq57u9H1RQ%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.