{"action":"created","issue":{"url":"https://api.github.com/repos/CellProfiler/CellProfiler/issues/2389","repository_url":"https://api.github.com/repos/CellProfiler/CellProfiler","labels_url":"https://api.github.com/repos/CellProfiler/CellProfiler/issues/2389/labels{/name}","comments_url":"https://api.github.com/repos/CellProfiler/CellProfiler/issues/2389/comments","events_url":"https://api.github.com/repos/CellProfiler/CellProfiler/issues/2389/events","html_url":"https://github.com/CellProfiler/CellProfiler/issues/2389","id":182034073,"number":2389,"title":"CP dev installation problem via 'manual pip' method ","user":{"login":"dlogan","id":1225595,"avatar_url":"https://avatars.githubusercontent.com/u/1225595?v=3","gravatar_id":"","url":"https://api.github.com/users/dlogan","html_url":"https://github.com/dlogan","followers_url":"https://api.github.com/users/dlogan/followers","following_url":"https://api.github.com/users/dlogan/following{/other_user}","gists_url":"https://api.github.com/users/dlogan/gists{/gist_id}","starred_url":"https://api.github.com/users/dlogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlogan/subscriptions","organizations_url":"https://api.github.com/users/dlogan/orgs","repos_url":"https://api.github.com/users/dlogan/repos","events_url":"https://api.github.com/users/dlogan/events{/privacy}","received_events_url":"https://api.github.com/users/dlogan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-10T14:48:13Z","updated_at":"2016-11-14T16:53:09Z","closed_at":null,"body":"Mac OS 10.11.6\nProcedure:\n1. Create new virtualenv (`virtualenv venv')\n2. activate venv\n3. Follow these manual CP installation steps which complete without error: https://github.com/CellProfiler/CellProfiler#install-manually\n4. Launch CP and get this wx error\n\n```\n(venv) [logand05@AMRL2RK0CSFVH8:~/CellProfiler_source_pip/CellProfiler]$ python ./CellProfiler.py\nTraceback (most recent call last):\n  File \"./CellProfiler.py\", line 4, in <module>\n    cellprofiler.__main__.main()\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/__main__.py\", line 110, in main\n    cellprofiler.utilities.cpjvm.cp_start_vm()\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/utilities/cpjvm.py\", line 95, in cp_start_vm\n    heap_size = str(cellprofiler.preferences.get_jvm_heap_mb()) + \"m\"\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/preferences.py\", line 1396, in get_jvm_heap_mb\n    if config_exists(JVM_HEAP_MB):\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/preferences.py\", line 237, in config_exists\n    if not get_config().Exists(key):\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/preferences.py\", line 111, in get_config\n    import wx\nImportError: No module named wx\n```\n\nNo problem, I think, then I do `pip install wx` which completes fine.  \n\nBut then CP has the following error which I cannot solve:\n\n```\n(venv) [logand05@AMRL2RK0CSFVH8:~/CellProfiler_source_pip/CellProfiler]$ python ./CellProfiler.py\nTraceback (most recent call last):\n  File \"./CellProfiler.py\", line 4, in <module>\n    cellprofiler.__main__.main()\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/__main__.py\", line 110, in main\n    cellprofiler.utilities.cpjvm.cp_start_vm()\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/utilities/cpjvm.py\", line 95, in cp_start_vm\n    heap_size = str(cellprofiler.preferences.get_jvm_heap_mb()) + \"m\"\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/preferences.py\", line 1396, in get_jvm_heap_mb\n    if config_exists(JVM_HEAP_MB):\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/preferences.py\", line 237, in config_exists\n    if not get_config().Exists(key):\n  File \"/Users/logand05/CellProfiler_source_pip/CellProfiler/cellprofiler/preferences.py\", line 119, in get_config\n    wx.CONFIG_USE_LOCAL_FILE))\nAttributeError: 'module' object has no attribute 'CONFIG_USE_LOCAL_FILE'\n```\n\nThoughts on how to solve?\n\nwx is version 3.0.3\n\n```\n$ python\nPython 2.7.10 (default, Oct 23 2015, 19:19:21)\n[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import wx\n>>> wx.__version__\n'3.0.3'\n```\n"},"comment":{"url":"https://api.github.com/repos/CellProfiler/CellProfiler/issues/comments/260391924","html_url":"https://github.com/CellProfiler/CellProfiler/issues/2389#issuecomment-260391924","issue_url":"https://api.github.com/repos/CellProfiler/CellProfiler/issues/2389","id":260391924,"user":{"login":"djhshih","id":7027861,"avatar_url":"https://avatars.githubusercontent.com/u/7027861?v=3","gravatar_id":"","url":"https://api.github.com/users/djhshih","html_url":"https://github.com/djhshih","followers_url":"https://api.github.com/users/djhshih/followers","following_url":"https://api.github.com/users/djhshih/following{/other_user}","gists_url":"https://api.github.com/users/djhshih/gists{/gist_id}","starred_url":"https://api.github.com/users/djhshih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djhshih/subscriptions","organizations_url":"https://api.github.com/users/djhshih/orgs","repos_url":"https://api.github.com/users/djhshih/repos","events_url":"https://api.github.com/users/djhshih/events{/privacy}","received_events_url":"https://api.github.com/users/djhshih/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T16:53:09Z","updated_at":"2016-11-14T16:53:09Z","body":"It turns that `pip` does not install `wx` properly, nor does it offer proper uninstallation.\r\n\r\nI had to remove `wx` and related packages manually from `/usr/local/lib/python2.7/site-packages`.\r\n\r\nThen, I installed `wxpython` using `brew` on a Mac. On Linux, you should probably use your distribution's package manager to install wxpython instead of using `pip`.\r\n\r\n```\r\nbrew install wxpython\r\n```\r\n\r\nThis will install both `wxwidgets` (`wxmac`) and the python binding `wxpython`.\r\n\r\nOther requirements not mentioned in the README:\r\n\r\n[vigra](http://ukoethe.github.io/vigra/doc-release/vigra/Installation.html)\r\nmysql (`brew install mysql`)"}}
{"actor":{"display_login":"djhshih"}}