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

pyembree missing from install #568

Closed
jamesetch opened this issue Oct 4, 2019 · 5 comments
Closed

pyembree missing from install #568

jamesetch opened this issue Oct 4, 2019 · 5 comments

Comments

@jamesetch
Copy link

Hello,

I tried to do the full basic install (Win 10, clean anaconda virtual env) using the recommended pip install

pip install trimesh[easy]

This fails due to a problem with shapely, however, I was able to resolve this by manually intalling shapley with conda and then redoing the pip step. But pyembree seems to be missing from the installation. The pip log is pasted below.

I don;t have embree installed, is this a prerequisite?

Does anyone have an idea how to make the pyembree install?

Any help much appreciated.
James

(overlap) C:\Users\James>pip install trimesh[easy]
Collecting trimesh[easy]
  Using cached https://files.pythonhosted.org/packages/d3/07/aee09a0dda51d1e4e153bec6e3b775d43c6ddbfbec6aeeba850578c28691/trimesh-3.2.22.tar.gz
Requirement already satisfied: numpy in c:\users\james\anaconda2\envs\overlap\lib\site-packages (from trimesh[easy]) (1.16.5)
Collecting msgpack (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/41/0a/49b522c5b23006d60669ec8dc97558e91880673e170108e0e9e21fc452e3/msgpack-0.6.2-cp37-cp37m-win_amd64.whl (68kB)
     |████████████████████████████████| 71kB 1.5MB/s
Collecting sympy (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/21/21/f4105795ca7f35c541d82c5b06be684dd2f5cb4f508fb487cd7aea4de776/sympy-1.4-py2.py3-none-any.whl (5.3MB)
     |████████████████████████████████| 5.3MB 6.4MB/s
Collecting pillow (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/14/db/f4c72818297d4d92083c1b3d3404efdb6b2734bea11c0950cfc48b832021/Pillow-6.2.0-cp37-cp37m-win_amd64.whl (2.0MB)
     |████████████████████████████████| 2.0MB 3.2MB/s
Collecting requests (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
     |████████████████████████████████| 61kB 3.8MB/s
Collecting rtree (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/33/0d/0bcb0fdd759570e85697189f675fa462131e5636482f2832288bbe4bb6f7/Rtree-0.8.3-py3-none-any.whl
Requirement already satisfied: setuptools in c:\users\james\anaconda2\envs\overlap\lib\site-packages (from trimesh[easy]) (41.2.0)
Collecting colorlog (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/68/4d/892728b0c14547224f0ac40884e722a3d00cb54e7a146aea0b3186806c9e/colorlog-4.0.2-py2.py3-none-any.whl
Collecting pycollada (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/37/7d/70545d16fed218ce781f74def0cffcfdc3fe46d5c64dfe726b082befb83c/pycollada-0.6.tar.gz (103kB)
     |████████████████████████████████| 112kB 6.4MB/s
Collecting pyglet (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/6b/aa/121ad16b96b6141a04d781be38215581162031bb0410ccf15fc9a597e02f/pyglet-1.4.4-py2.py3-none-any.whl (1.0MB)
     |████████████████████████████████| 1.0MB 6.8MB/s
Collecting networkx (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/85/08/f20aef11d4c343b557e5de6b9548761811eb16e438cee3d32b1c66c8566b/networkx-2.3.zip (1.7MB)
     |████████████████████████████████| 1.8MB 6.4MB/s
Collecting scipy (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/50/eb/defa40367863304e1ef01c6572584c411446a5f29bdd9dc90f91509e9144/scipy-1.3.1-cp37-cp37m-win_amd64.whl (30.3MB)
     |████████████████████████████████| 30.4MB 6.8MB/s
Collecting svg.path (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/50/2f/618c5b6804e6dda90f024f0bc2d14ffc3db00221a818ee35da478427015d/svg.path-3.0-py2.py3-none-any.whl
Collecting lxml (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/bc/87/c3cecadcb5d7924cd71724b177343149cfc3609a89b197a991ac8593ed8c/lxml-4.4.1-cp37-cp37m-win_amd64.whl (3.7MB)
     |████████████████████████████████| 3.7MB 6.8MB/s
Collecting chardet (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
     |████████████████████████████████| 143kB 3.3MB/s
Requirement already satisfied: shapely in c:\users\james\anaconda2\envs\overlap\lib\site-packages (from trimesh[easy]) (1.6.4.post1)
Collecting xxhash (from trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/82/13/c3b22a12d3739bd6bbf90955902386cd8d69a81c00fd9b0523f53010c4e0/xxhash-1.4.1-cp37-cp37m-win_amd64.whl
Collecting mpmath>=0.19 (from sympy->trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/ca/63/3384ebb3b51af9610086b23ea976e6d27d6d97bf140a76a365bd77a3eb32/mpmath-1.1.0.tar.gz (512kB)
     |████████████████████████████████| 522kB 6.8MB/s
Requirement already satisfied: certifi>=2017.4.17 in c:\users\james\anaconda2\envs\overlap\lib\site-packages (from requests->trimesh[easy]) (2019.9.11)
Collecting idna<2.9,>=2.5 (from requests->trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
     |████████████████████████████████| 61kB 2.0MB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests->trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/e0/da/55f51ea951e1b7c63a579c09dd7db825bb730ec1fe9c0180fc77bfb31448/urllib3-1.25.6-py2.py3-none-any.whl (125kB)
     |████████████████████████████████| 133kB 6.8MB/s
Collecting colorama; sys_platform == "win32" (from colorlog->trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
Collecting python-dateutil>=2.2 (from pycollada->trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl (226kB)
     |████████████████████████████████| 235kB 6.4MB/s
Collecting future (from pyglet->trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz (829kB)
     |████████████████████████████████| 829kB 6.8MB/s
Collecting decorator>=4.3.0 (from networkx->trimesh[easy])
  Downloading https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/decorator-4.4.0-py2.py3-none-any.whl
Requirement already satisfied: six>=1.5 in c:\users\james\anaconda2\envs\overlap\lib\site-packages (from python-dateutil>=2.2->pycollada->trimesh[easy]) (1.12.0)
Building wheels for collected packages: trimesh, pycollada, networkx, mpmath, future
  Building wheel for trimesh (setup.py) ... done
  Created wheel for trimesh: filename=trimesh-3.2.22-cp37-none-any.whl size=439531 sha256=7961ab11c539c2a6dd962711a8e28021b1e994cf92c864ed2c904a5f4e45ea9e
  Stored in directory: C:\Users\James\AppData\Local\pip\Cache\wheels\32\ad\fb\6de5a64948689081b9456b8292c25436eb05ac6c507bdeb031
  Building wheel for pycollada (setup.py) ... done
  Created wheel for pycollada: filename=pycollada-0.6-cp37-none-any.whl size=122870 sha256=6716fac477ba675cd28ae3c21051eab2178b2c5f3507777c56c0f1b6e648c070
  Stored in directory: C:\Users\James\AppData\Local\pip\Cache\wheels\fd\83\dc\5001cd40cc228bc5e54140e17101118c1bf39291b8cd68a7bf
  Building wheel for networkx (setup.py) ... done
  Created wheel for networkx: filename=networkx-2.3-py2.py3-none-any.whl size=1556415 sha256=a7c425c6eae9594e5fabf47398d2d4e7aa552d25922ad4e4664a9026f3074d33
  Stored in directory: C:\Users\James\AppData\Local\pip\Cache\wheels\de\63\64\3699be2a9d0ccdb37c7f16329acf3863fd76eda58c39c737af
  Building wheel for mpmath (setup.py) ... done
  Created wheel for mpmath: filename=mpmath-1.1.0-cp37-none-any.whl size=532244 sha256=16d4b79760c0a5ac7ff25e6edd74cf5423bda339744ea2b3433d5e2616d22e63
  Stored in directory: C:\Users\James\AppData\Local\pip\Cache\wheels\63\9d\8e\37c3f6506ed3f152733a699e92d8e0c9f5e5f01dea262f80ad
  Building wheel for future (setup.py) ... done
  Created wheel for future: filename=future-0.17.1-cp37-none-any.whl size=488735 sha256=8221266b8ce2eb879268b8643f0ee08cdfb070fb6dc1baa53405d9b3b40716d9
  Stored in directory: C:\Users\James\AppData\Local\pip\Cache\wheels\0c\61\d2\d6b7317325828fbb39ee6ad559dbe4664d0896da4721bf379e
Successfully built trimesh pycollada networkx mpmath future
Installing collected packages: msgpack, mpmath, sympy, pillow, idna, urllib3, chardet, requests, rtree, colorama, colorlog, python-dateutil, pycollada, future, pyglet, decorator, networkx, scipy, svg.path, lxml, xxhash, trimesh
Successfully installed chardet-3.0.4 colorama-0.4.1 colorlog-4.0.2 decorator-4.4.0 future-0.17.1 idna-2.8 lxml-4.4.1 mpmath-1.1.0 msgpack-0.6.2 networkx-2.3 pillow-6.2.0 pycollada-0.6 pyglet-1.4.4 python-dateutil-2.8.0 requests-2.22.0 rtree-0.8.3 scipy-1.3.1 svg.path-3.0 sympy-1.4 trimesh-3.2.22 urllib3-1.25.6 xxhash-1.4.1
@mikedh
Copy link
Owner

mikedh commented Oct 4, 2019

Hey, pyembree is a soft dependency so you don't need it unless you want faster ray queries. Also it sucks shapely still fails on Windows, I thought they were going to do wheels.

There's no wheel or conda-forge package for pyembree on Windows, so you'd have to build it. I'm not sure anyone has successfully built it on Windows haha, but here's their repo: https://github.com/scopatz/pyembree/

@mikedh
Copy link
Owner

mikedh commented Oct 4, 2019

Actually there's some suggestions in there for Windows builds: scopatz/pyembree#14

@jamesetch
Copy link
Author

Hi Mike.

I actually tried the procedure in the last link and "almost" got it to work, but not quite. The fast ray casting is quite important for me, so I think I will go on with a linux setup and chip away at the windows install and see if I can make it work. It might be worth clarifying the docs though where it says:

To install trimesh with all the soft dependencies which install cleanly on Windows, Linux, and OSX using pip:

which sort of implies that you get pyembree (a soft dependency).

Thanks for the project and the answer.
James

@mikedh
Copy link
Owner

mikedh commented Oct 4, 2019

Heh "which install cleanly" was the qualifier on that, but "all" is overbroad and I'll remove it. Although it looks like Shapely still hasn't published Windows wheels either 🤕 : shapely/shapely#367

I just run an Ubuntu virtual when I'm developing on Mac or Windows. WSL for Windows looks cool, though I don't know what the packaging situation is for it.

@mikedh mikedh closed this as completed Oct 4, 2019
@mwtoews
Copy link

mwtoews commented Jan 30, 2020

FYI, Windows binary wheels are finally available on PyPI.

pip install shapely>=1.7.0

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

3 participants