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

Mac OS compatibility (pyionotify not compatible) #78

Open
rikva opened this issue Jul 13, 2016 · 7 comments
Open

Mac OS compatibility (pyionotify not compatible) #78

rikva opened this issue Jul 13, 2016 · 7 comments

Comments

@rikva
Copy link

rikva commented Jul 13, 2016

Hi! I'd like to give wdb a try but I can't seem to install it on Mac OS X.
It seems that pyionotify is a Linux-only package.
Is this requirement something you are willing to change?

In any case, it might be a good idea to add this OS restriction to the main README page. ;)

Output from a (Python 3) virtualenv:

(myvirtualenv)[11:27:06] rik@rikmbp:[~/projectdir]: pip3 install wdb.server
You are using pip version 7.1.0, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting wdb.server
  Using cached wdb.server-3.0.6-py3-none-any.whl
Collecting tornado>=4.2 (from wdb.server)
Collecting psutil>=2.1 (from wdb.server)
  Using cached psutil-4.3.0.tar.gz
Collecting tornado-systemd (from wdb.server)
  Using cached tornado_systemd-1.0.1.tar.gz
Collecting filemagic>=1.6 (from wdb.server)
  Using cached filemagic-1.6.tar.gz
Requirement already satisfied (use --upgrade to upgrade): wdb==3.0.6 in /Users/rik/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from wdb.server)
Collecting pyinotify (from wdb.server)
  Using cached pyinotify-0.9.6.tar.gz
    Complete output from command python setup.py egg_info:
    inotify is not available on macosx-10.11-x86_64

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/99/fdj05zf13tsf59rvsld4753m0000gn/T/pip-build-oj9irrm_/pyinotify
@paradoxxxzero
Copy link
Member

It's weird this line should really prevent this : https://github.com/Kozea/wdb/blob/master/server/setup.py#L19

What gives you $ python -c "import sys;print(sys.platform)" ?

@rikva
Copy link
Author

rikva commented Jul 13, 2016

Hmm, I guess you're right. Output is darwin as expected.

I created two fresh new virtualenvs and installation only fails on Python 3:

Python 2

(wdbtest) [13:06:48] rik@rikmbp:[~]: pip install wdb
Collecting wdb
  Downloading wdb-3.0.6.tar.gz
Collecting log_colorizer>=1.8.3 (from wdb)
  Downloading log_colorizer-1.8.3.tar.gz
Collecting jedi>=0.9.0 (from wdb)
  Using cached jedi-0.9.0-py2.py3-none-any.whl
Collecting uncompyle6 (from wdb)
  Using cached uncompyle6-2.6.2-py2.py3-none-any.whl
Collecting importmagic (from wdb)
  Using cached importmagic-0.1.7.tar.gz
Collecting spark-parser>=1.4.0 (from uncompyle6->wdb)
  Downloading spark_parser-1.4.0.tar.gz (99kB)
    100% |████████████████████████████████| 102kB 606kB/s
Collecting xdis>=1.1.7 (from uncompyle6->wdb)
  Using cached xdis-1.1.7-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in ./.virtualenvs/wdbtest/lib/python2.7/site-packages (from importmagic->wdb)
Building wheels for collected packages: wdb, log-colorizer, importmagic, spark-parser
  Running setup.py bdist_wheel for wdb ... done
  Stored in directory: /Users/rik/Library/Caches/pip/wheels/74/54/54/922f6589ee2928e716f7d8890b3c2dbf147ee6de4aacafc834
  Running setup.py bdist_wheel for log-colorizer ... done
  Stored in directory: /Users/rik/Library/Caches/pip/wheels/b9/c6/e1/91f1adfb0762d09e864596f1cc30274d5b37a92e87669bf7b6
  Running setup.py bdist_wheel for importmagic ... done
  Stored in directory: /Users/rik/Library/Caches/pip/wheels/52/c7/8a/3ccda0b5a830246c67e9de0ac6d5fd483747f110f29e14e069
  Running setup.py bdist_wheel for spark-parser ... done
  Stored in directory: /Users/rik/Library/Caches/pip/wheels/e1/94/8a/7862cdb72f0c44f8f62ed8e41892951cc22a8a7a912ea94d8d
Successfully built wdb log-colorizer importmagic spark-parser
Installing collected packages: log-colorizer, jedi, spark-parser, xdis, uncompyle6, importmagic, wdb
Successfully installed importmagic-0.1.7 jedi-0.9.0 log-colorizer-1.8.3 spark-parser-1.4.0 uncompyle6-2.6.2 wdb-3.0.6 xdis-1.1.7
(wdbtest) [13:06:59] rik@rikmbp:[~]: pip install wdb.server
Collecting wdb.server
  Downloading wdb.server-3.0.6.tar.gz (223kB)
    100% |████████████████████████████████| 225kB 542kB/s
Requirement already satisfied (use --upgrade to upgrade): wdb==3.0.6 in ./.virtualenvs/wdbtest/lib/python2.7/site-packages (from wdb.server)
Collecting tornado>=4.2 (from wdb.server)
Collecting filemagic>=1.6 (from wdb.server)
  Using cached filemagic-1.6.tar.gz
Collecting psutil>=2.1 (from wdb.server)
  Using cached psutil-4.3.0.tar.gz
Collecting tornado_systemd (from wdb.server)
  Using cached tornado_systemd-1.0.1.tar.gz
Requirement already satisfied (use --upgrade to upgrade): uncompyle6 in ./.virtualenvs/wdbtest/lib/python2.7/site-packages (from wdb==3.0.6->wdb.server)
Requirement already satisfied (use --upgrade to upgrade): log-colorizer>=1.8.3 in ./.virtualenvs/wdbtest/lib/python2.7/site-packages (from wdb==3.0.6->wdb.server)
Requirement already satisfied (use --upgrade to upgrade): importmagic in ./.virtualenvs/wdbtest/lib/python2.7/site-packages (from wdb==3.0.6->wdb.server)
Requirement already satisfied (use --upgrade to upgrade): jedi>=0.9.0 in ./.virtualenvs/wdbtest/lib/python2.7/site-packages (from wdb==3.0.6->wdb.server)
Collecting certifi (from tornado>=4.2->wdb.server)
  Using cached certifi-2016.2.28-py2.py3-none-any.whl
Collecting singledispatch (from tornado>=4.2->wdb.server)
  Using cached singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting backports.ssl-match-hostname (from tornado>=4.2->wdb.server)
Collecting backports-abc>=0.4 (from tornado>=4.2->wdb.server)
  Using cached backports_abc-0.4-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): spark-parser>=1.4.0 in ./.virtualenvs/wdbtest/lib/python2.7/site-packages (from uncompyle6->wdb==3.0.6->wdb.server)
Requirement already satisfied (use --upgrade to upgrade): xdis>=1.1.7 in ./.virtualenvs/wdbtest/lib/python2.7/site-packages (from uncompyle6->wdb==3.0.6->wdb.server)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in ./.virtualenvs/wdbtest/lib/python2.7/site-packages (from importmagic->wdb==3.0.6->wdb.server)
Collecting six (from singledispatch->tornado>=4.2->wdb.server)
  Using cached six-1.10.0-py2.py3-none-any.whl
Building wheels for collected packages: wdb.server, filemagic, psutil, tornado-systemd
  Running setup.py bdist_wheel for wdb.server ... done
  Stored in directory: /Users/rik/Library/Caches/pip/wheels/d3/07/34/b8a5bd5bbf145a51136f0b1e22cc49021d9dd4c6297b505efe
  Running setup.py bdist_wheel for filemagic ... done
  Stored in directory: /Users/rik/Library/Caches/pip/wheels/34/0f/72/b2c6238c940172e602d13d6fac920c2aa519bdb2c9cf2f8035
  Running setup.py bdist_wheel for psutil ... done
  Stored in directory: /Users/rik/Library/Caches/pip/wheels/e9/8b/35/535f07b31ebe94e56901cee48e1291e18989b272d79de437db
  Running setup.py bdist_wheel for tornado-systemd ... done
  Stored in directory: /Users/rik/Library/Caches/pip/wheels/db/8e/46/bf46ad91956d65d0726d6974d57d4e53c2865011dd3df2d1f6
Successfully built wdb.server filemagic psutil tornado-systemd
Installing collected packages: certifi, six, singledispatch, backports.ssl-match-hostname, backports-abc, tornado, filemagic, psutil, tornado-systemd, wdb.server
Successfully installed backports-abc-0.4 backports.ssl-match-hostname-3.5.0.1 certifi-2016.2.28 filemagic-1.6 psutil-4.3.0 singledispatch-3.4.0.3 six-1.10.0 tornado-4.3 tornado-systemd-1.0.1 wdb.server-3.0.6

Python 3

(wdbpy3) [13:08:24] rik@rikmbp:[~]: pip install wdb
Collecting wdb
  Using cached wdb-3.0.6-py3-none-any.whl
Collecting jedi>=0.9.0 (from wdb)
  Using cached jedi-0.9.0-py2.py3-none-any.whl
Collecting uncompyle6 (from wdb)
  Using cached uncompyle6-2.6.2-py2.py3-none-any.whl
Collecting log-colorizer>=1.8.3 (from wdb)
  Using cached log_colorizer-1.8.3-py3-none-any.whl
Collecting importmagic (from wdb)
Collecting spark-parser>=1.4.0 (from uncompyle6->wdb)
  Using cached spark_parser-1.4.0-py3-none-any.whl
Collecting xdis>=1.1.7 (from uncompyle6->wdb)
  Using cached xdis-1.1.7-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in ./.virtualenvs/wdbpy3/lib/python3.5/site-packages (from importmagic->wdb)
Installing collected packages: jedi, spark-parser, xdis, uncompyle6, log-colorizer, importmagic, wdb
Successfully installed importmagic-0.1.7 jedi-0.9.0 log-colorizer-1.8.3 spark-parser-1.4.0 uncompyle6-2.6.2 wdb-3.0.6 xdis-1.1.7
(wdbpy3) [13:08:42] rik@rikmbp:[~]: pip install wdb.server
Collecting wdb.server
  Using cached wdb.server-3.0.6-py3-none-any.whl
Collecting tornado>=4.2 (from wdb.server)
Requirement already satisfied (use --upgrade to upgrade): wdb==3.0.6 in ./.virtualenvs/wdbpy3/lib/python3.5/site-packages (from wdb.server)
Collecting psutil>=2.1 (from wdb.server)
  Using cached psutil-4.3.0.tar.gz
Collecting tornado-systemd (from wdb.server)
  Using cached tornado_systemd-1.0.1.tar.gz
Collecting filemagic>=1.6 (from wdb.server)
  Using cached filemagic-1.6.tar.gz
Collecting pyinotify (from wdb.server)
  Using cached pyinotify-0.9.6.tar.gz
    Complete output from command python setup.py egg_info:
    inotify is not available on macosx-10.11-x86_64

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/99/fdj05zf13tsf59rvsld4753m0000gn/T/pip-build-sk2neu4m/pyinotify/

@rikva
Copy link
Author

rikva commented Jul 13, 2016

Using pip3:

(wbdpy32) [13:32:04] rik@rikmbp:[~]: pip3 install wdb
Collecting wdb
  Using cached wdb-3.0.6-py3-none-any.whl
Collecting importmagic (from wdb)
Collecting uncompyle6 (from wdb)
  Using cached uncompyle6-2.6.2-py2.py3-none-any.whl
Collecting log-colorizer>=1.8.3 (from wdb)
  Using cached log_colorizer-1.8.3-py3-none-any.whl
Collecting jedi>=0.9.0 (from wdb)
  Using cached jedi-0.9.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in ./.virtualenvs/wbdpy32/lib/python3.5/site-packages (from importmagic->wdb)
Collecting spark-parser>=1.4.0 (from uncompyle6->wdb)
  Using cached spark_parser-1.4.0-py3-none-any.whl
Collecting xdis>=1.1.7 (from uncompyle6->wdb)
  Using cached xdis-1.1.7-py2.py3-none-any.whl
Installing collected packages: importmagic, spark-parser, xdis, uncompyle6, log-colorizer, jedi, wdb
Successfully installed importmagic-0.1.7 jedi-0.9.0 log-colorizer-1.8.3 spark-parser-1.4.0 uncompyle6-2.6.2 wdb-3.0.6 xdis-1.1.7
(wbdpy32) [13:32:11] rik@rikmbp:[~]: pip3 install wdb.server
Collecting wdb.server
  Using cached wdb.server-3.0.6-py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): wdb==3.0.6 in ./.virtualenvs/wbdpy32/lib/python3.5/site-packages (from wdb.server)
Collecting pyinotify (from wdb.server)
  Using cached pyinotify-0.9.6.tar.gz
    Complete output from command python setup.py egg_info:
    inotify is not available on macosx-10.11-x86_64

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/99/fdj05zf13tsf59rvsld4753m0000gn/T/pip-build-3q_20lbj/pyinotify/

@wong2
Copy link
Contributor

wong2 commented Jul 13, 2016

@paradoxxxzero I think this is related to the wheel distribution, inside wdb.server-3.0.6-py3-none-any.whl there is always a pyinotify dependency, maybe we should create different wheels for different platforms

@paradoxxxzero
Copy link
Member

Yeah that's what I was thinking reading the log.
One temporary solution would be to use the --no-use-wheel pip install flag while I try to figure that out.

@Tset-Noitamotua
Copy link

Propably the same issue (#91) on Windows.

Cheers
Tset

@floer32
Copy link

floer32 commented Jan 16, 2020

Update - --no-use-wheel flag has been renamed to --no-binary. So to follow @paradoxxxzero 's instructions, do something like pip install --no-binary wdb.server

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