question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use compas in blender 2.92

See original GitHub issue
>>> import compas

Works fine.

>>> import compas_blender
Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\compas_blender\__init__.py", line 22, in <module>
    from .utilities import *  # noqa: F401 F403
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\compas_blender\utilities\__init__.py", line 81, in <module>
    from .drawing import (
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\compas_blender\utilities\drawing.py", line 7, in <module>
    from compas.geometry import centroid_points
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\compas\geometry\__init__.py", line 635, in <module>
    from .transformations import (
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\compas\geometry\transformations\__init__.py", line 18, in <module>
    from .transformations_numpy import *  # noqa: F401 F403
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\compas\geometry\transformations\transformations_numpy.py", line 5, in <module>
    from numpy import asarray
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\numpy\__init__.py", line 143, in <module>
    from . import lib
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\numpy\lib\__init__.py", line 45, in <module>
    __all__ += type_check.__all__
NameError: name 'type_check' is not defined

Doesn’t, because:

>>> import numpy
Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\numpy\__init__.py", line 143, in <module>
    from . import lib
  File "C:\Users\a\scoop\apps\blender\current\2.92\python\lib\site-packages\numpy\lib\__init__.py", line 45, in <module>
    __all__ += type_check.__all__
NameError: name 'type_check' is not defined

Context

Windows==10
Python==3.7
compas==1.2.1

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
tetovcommented, Mar 24, 2021

image

And here’s a working setup for latest compas and latest Blender.

  • Blender 2.92
  • compas 1.2.1
  • numpy 1.17.5
  • python 3.7.10
1reaction
gonzalocasascommented, Mar 24, 2021

I think an environment that is built specifically for blender makes sense, we could prepare a couple of environment.yml files, one for each version of Blender that we support, it’s not a lot of work and we’d get into a more consistent situation for sure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blender Geometry Node Basics In Blender 2.92 | Tutorial
CG Cookie (http://bit.ly/cgc-learn- blender ​) contributor, Chris Bailey ( @CBaileyFilm ​ ) takes us through the basics of Geometry nodes in ...
Read more >
Viewport Navigation - Blender 2.80 Fundamentals - YouTube
Blender is Free and Open Source SoftwareDownload: https:// blender.org/downloadSupport core Blender ... Your browser can't play this video.
Read more >
How to use the ASSET BROWSER | Blender 2.92 - YouTube
The Asset Browser / Library is a new feature (tool) in Blender 2.92 and is currently in development. You are able to place...
Read more >
How To Join/Merge Objects Using The Union Modifier.
Your browser can't play this video. Learn more. Switch camera ... Blender 2.92 Tutorial: How To Join/Merge Objects Using The Union Modifier.
Read more >
Blender 2.92 New Features in LESS than 5 Minutes - YouTube
Discover what's new in Blender 2.92 with @SouthernShotty!* Download Blender 2.92 now: ... Your browser can't play this video.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found