compas icon indicating copy to clipboard operation
compas copied to clipboard

Blender installation does not work on Windows dus to inability to locate DLLs

Open tomvanmele opened this issue 3 years ago • 5 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Context [e.g. ST3, Rhino, Blender, ...]
  2. Sample script
  3. Sample data
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Python version [e.g. 2.7]
  • Python package manager [e.g. macports, pip, conda]

Additional context Add any other context about the problem here.

tomvanmele avatar Feb 22 '22 12:02 tomvanmele

the following worked on my windows laptop... using the normal command line (not anaconda prompt) with admin privileges

  1. (this is just for convenience) add Blender python\bin to the PATH
  2. make sure there are no other Pythons on the PATH (where python)
  3. python -m ensurepip
  4. python -m pip install --upgrade pip
  5. python -m pip install compas

tomvanmele avatar Mar 11 '22 07:03 tomvanmele

@Licini could you try this on your machine?

tomvanmele avatar Mar 11 '22 07:03 tomvanmele

this might also be related https://github.com/ContinuumIO/anaconda-issues/issues/11994

tomvanmele avatar Mar 11 '22 07:03 tomvanmele

Is it really needed to include ensurepip and --upgrade pip? Since Blender ships with a decently updated python, isn't it irrelevant and perhaps even negative to force an update?

gonzalocasas avatar Mar 15 '22 10:03 gonzalocasas

no, but running this now again on a fresh windows installation, i had to even modify the prefix to make sure windows doesn't keep adding stuff to the roaming profile.

cd "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python"
.\bin\python.exe -m pip install compas --prefix="." --force-reinstall

tomvanmele avatar Mar 28 '22 11:03 tomvanmele

Since Blender ships with a decently updated python, isn't it irrelevant and perhaps even negative to force an update?

+1

@gonzalocasas lets keep weeding the tracker ;)

jf--- avatar Apr 08 '24 18:04 jf---

see https://compas.dev/compas/latest/userguide/cad.blender.html

tomvanmele avatar Apr 08 '24 20:04 tomvanmele