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

CPA dev error: "ImportError: No module named aui" #235

Closed
dlogan opened this issue Oct 18, 2016 · 11 comments
Closed

CPA dev error: "ImportError: No module named aui" #235

dlogan opened this issue Oct 18, 2016 · 11 comments

Comments

@dlogan
Copy link
Member

dlogan commented Oct 18, 2016

I've tried many ways to get CPA dev environment configured on Mac and always fail.
Here I am trying virtualenv, then pip install all the files in https://github.com/CellProfiler/CellProfiler-Analyst/blob/master/requirements.txt
no problem.

But I get this:

$ python CellProfiler-Analyst/CellProfiler-Analyst.py
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
INFO:root:No PIL.ArgImagePlugin
Traceback (most recent call last):
  File "CellProfiler-Analyst/CellProfiler-Analyst.py", line 81, in <module>
    from cpa.classifier import Classifier
  File "/Users/logand05/Projects_local/CellProfiler_Analyst_venv_DEV/CellProfiler-Analyst/cpa/classifier.py", line 32, in <module>
    from dimensredux import PlotMain
  File "/Users/logand05/Projects_local/CellProfiler_Analyst_venv_DEV/CellProfiler-Analyst/cpa/dimensredux.py", line 26, in <module>
    import wx.aui
ImportError: No module named aui

I then did
pip install wxpython successfully.
Same error.

I then did
pip install wx successfully.
Same error.

Help?

@jhung0
Copy link
Collaborator

jhung0 commented Oct 18, 2016

Do you know the versions?

On Tue, Oct 18, 2016 at 11:42 AM, David Logan notifications@github.com
wrote:

I've tried many ways to get CPA dev environment configured on Mac and
always fail.
Here I am trying virtualenv, then pip install all the files in
https://github.com/CellProfiler/CellProfiler-Analyst/blob/master/
requirements.txt
no problem.

But I get this:

$ python CellProfiler-Analyst/CellProfiler-Analyst.py
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
INFO:root:No PIL.ArgImagePlugin
Traceback (most recent call last):
File "CellProfiler-Analyst/CellProfiler-Analyst.py", line 81, in
from cpa.classifier import Classifier
File "/Users/logand05/Projects_local/CellProfiler_Analyst_venv_DEV/CellProfiler-Analyst/cpa/classifier.py", line 32, in
from dimensredux import PlotMain
File "/Users/logand05/Projects_local/CellProfiler_Analyst_venv_DEV/CellProfiler-Analyst/cpa/dimensredux.py", line 26, in
import wx.aui
ImportError: No module named aui

I then did
pip install wxpython successfully.
Same error.

I then did
pip install wx successfully.
Same error.

Help?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#235, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJJbgmcsViGbMX8aaB7m9-ZZqlKL3WZrks5q1OjvgaJpZM4KZ9Lb
.

@dlogan
Copy link
Member Author

dlogan commented Oct 18, 2016

$ pip freeze | grep wx
wxPython==3.0.0.0
wxPython-common==3.0.0.0
wxPython-Phoenix==3.0.3

@jhung0
Copy link
Collaborator

jhung0 commented Oct 18, 2016

Ok...I'm having issues too (but a different one)

@dlogan
Copy link
Member Author

dlogan commented Oct 19, 2016

#236

@dlogan
Copy link
Member Author

dlogan commented Oct 21, 2016

yeah, my best guess is that this may be a wxpython 3.0+ issue (vs. 2.8?). I started to go sdown the rabbit hole and these changes in cpa/dimensredux.py are a start and seem to work:

-import wx.aui
-from wx.combo import OwnerDrawnComboBox as ComboBox
+import wx.lib.agw.aui
+from wx.adv import OwnerDrawnComboBox as ComboBox

But there are wx.combo import errors after that. So should I uninstall wx 3.0 and re-install maybe, wx 2.8?

@daviddao
Copy link
Contributor

daviddao commented Oct 21, 2016

I see, I am not sure, if fixing the version to 2.8 is the correct choice. Do you mind to submit a PR for your changes? Thanks for going down the rabbit hole. I was there, it's really dark.

@dlogan
Copy link
Member Author

dlogan commented Oct 24, 2016

Sure, I can do a PR, though it does not work yet. I will see if I can get it to work and certainly do a PR then.

@jhung0
Copy link
Collaborator

jhung0 commented Oct 25, 2016

Yes, that's what I would try.

On Fri, Oct 21, 2016 at 3:54 PM, David Logan notifications@github.com
wrote:

yeah, my best guess is that this may be a wxpython 3.0+ issue (vs. 2.8?).
I started to go sdown the rabbit hole and these changes in
cpa/dimensredux.py are a start and seem to work:

-import wx.aui
-from wx.combo import OwnerDrawnComboBox as ComboBox
+import wx.lib.agw.aui
+from wx.adv import OwnerDrawnComboBox as ComboBox

But there are wx.combo import errors after that. So should I uninstall wx
3.0 and re-install maybe, wx 2.8?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#235 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJJbgqVLD_30k-xXJADoeWBwHTJyt08iks5q2RiSgaJpZM4KZ9Lb
.

@0x00b1
Copy link

0x00b1 commented Oct 26, 2016

$ pip install wxpython? Do you mean $ brew install wxpython?

@jhung0
Copy link
Collaborator

jhung0 commented Oct 26, 2016

Is it the version of wxpython that's messing things up? I see version 3+ but weren't we using 2.8?

@dlogan
Copy link
Member Author

dlogan commented Oct 26, 2016

Yeah, @0x00b1 I tried both pip and brew. I glean that brew is more reliable for wxpython. Unfortunately neither I nor @jhung0 can find out how to brew install any wxpython earlier than 3.0.2. e.g. it's not listed here (https://github.com/Homebrew/homebrew-versions). Advice?

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

5 participants