Coder Social home page Coder Social logo

blender integration macosX about navis HOT 7 CLOSED

navis-org avatar navis-org commented on June 5, 2024
blender integration macosX

from navis.

Comments (7)

fcollman avatar fcollman commented on June 5, 2024 1

well upgrading to Monterey 12.0.1 simply fixed this issue.. didn't even have to reinstall anaconda or packages or anything. I'll close this issue but hopefully it will help others who might still be on BigSur

from navis.

fcollman avatar fcollman commented on June 5, 2024

following the instructions to install navis in the shipped python environment (which is now 3.9.2 it seems with the latest blender), I get a similar but slightly different error.

PYTHON INTERACTIVE CONSOLE 3.9.2 (default, Mar 16 2021, 14:53:03)  [Clang 10.0.0 (clang-1000.11.45.5)]

Builtin Modules:       bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.context, bpy.utils, bgl, blf, mathutils
Convenience Imports:   from mathutils import *; from math import *
Convenience Variables: C = bpy.context, D = bpy.data

>>> import navis
Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/navis/__init__.py", line 26, in <module>
    from .plotting import *
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/navis/plotting/__init__.py", line 15, in <module>
    from .dd import *
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/navis/plotting/dd.py", line 38, in <module>
    from .plot_utils import segments_to_coords, tn_pairs_to_coords
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/navis/plotting/plot_utils.py", line 32, in <module>
    from vispy.util.transforms import rotate
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/vispy/__init__.py", line 27, in <module>
    from .util import config, set_log_level, keys, sys_info  # noqa
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/vispy/util/__init__.py", line 14, in <module>
    from . import fonts       # noqa
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/vispy/util/fonts/__init__.py", line 13, in <module>
    from ._triage import _load_glyph, list_fonts  # noqa, analysis:ignore
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/vispy/util/fonts/_triage.py", line 14, in <module>
    from ._quartz import _load_glyph, _list_fonts
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/vispy/util/fonts/_quartz.py", line 12, in <module>
    from ...ext.cocoapy import cf, ct, quartz, CFRange, CFSTR, CGGlyph, UniChar, \
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/vispy/ext/cocoapy.py", line 946, in <module>
    cf = cdll.LoadLibrary(util.find_library('CoreFoundation'))
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/ctypes/__init__.py", line 452, in LoadLibrary
    return self._dlltype(name)
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(CoreFoundation.framework/CoreFoundation, 6): no suitable image found.  Did find:
    file system relative paths not allowed in hardened programs

from navis.

fcollman avatar fcollman commented on June 5, 2024

for now i hacked together a solution commenting out the

from plotting import * 

from init.py and then somehow i can

import navis.interfaces.blender as b3d

if i do it twice.. and then the example neuron can be added.

not sure why this all is... was going to upgrade my os x version anyway and we'll see what happens.

from navis.

schlegelp avatar schlegelp commented on June 5, 2024

I have no experience trying to setup a conda environment in Blender. I'm actually rather surprised you got as far as you did. The problem appears to be with vispy but I have never seen that error before? What OS version/chip are you running?

from navis.

schlegelp avatar schlegelp commented on June 5, 2024

What you could try is mocking vispy. See my response in #17

from navis.

schlegelp avatar schlegelp commented on June 5, 2024

Ah right - just realised that you had mentioned Big Sur. Out of curiosity is it an M1?

from navis.

fcollman avatar fcollman commented on June 5, 2024

no this is an intel one.. i have a m1 laptop soon though, so i'll report when i find out.

from navis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.