Giter Club home page Giter Club logo

Comments (4)

haker1023 avatar haker1023 commented on May 17, 2024

Error message in last 5 lines are same with me when I first enable addon option block each time

from blendarmocap.

cgtinker avatar cgtinker commented on May 17, 2024

Are you using the intel version of blender? (There's a silicone and a intel version downloaded at blender.org)

It seems like there is an issue with the mediapipe module. First make sure you are using the intel version. Secondly I'd try to delete the mediapipe module in the site packages and reinstall it. I'll try to reproduce this error soon.

from blendarmocap.

inqtel avatar inqtel commented on May 17, 2024

Yes it's the intel version (it's this file, and the platform–support.txt file in library/application support reads “{Intel Inc./Intel(R) HD Graphics 6000/4.1 INTEL-18.5.8}=SUPPORTED”).

I've deleted mediapipe from the site packages folder contained within blender's package contents, and then reinstalled the BlendarMoCap addon (BlendArMocap-release-v141.zip). As before, terminal shows the modules installing, and "Installation process finished" is displayed. Then the traceback error.

Thanks for looking into this!

Python: Traceback (most recent call last):
  File "/var/root/Library/Application Support/Blender/2.93/scripts/addons/BlendArMocap-release/src/cgt_blender/interface/ui_preferences.py", line 29, in execute
    install_dependencies.install_and_import_module(module_name=dependency.module,
  File "/var/root/Library/Application Support/Blender/2.93/scripts/addons/BlendArMocap-release/src/cgt_blender/utils/install_dependencies.py", line 94, in install_and_import_module
    import_module(module_name, global_name)
  File "/var/root/Library/Application Support/Blender/2.93/scripts/addons/BlendArMocap-release/src/cgt_blender/utils/install_dependencies.py", line 54, in import_module
    globals()[global_name] = importlib.import_module(global_name)
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/__init__.py", line 17, in <module>
    import mediapipe.python.solutions as solutions
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/python/solutions/__init__.py", line 17, in <module>
    import mediapipe.python.solutions.drawing_styles
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/python/solutions/drawing_styles.py", line 20, in <module>
    from mediapipe.python.solutions.drawing_utils import DrawingSpec
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/python/solutions/drawing_utils.py", line 25, in <module>
    from mediapipe.framework.formats import detection_pb2
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/framework/formats/detection_pb2.py", line 14, in <module>
    from mediapipe.framework.formats import location_data_pb2 as mediapipe_dot_framework_dot_formats_dot_location__data__pb2
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/framework/formats/location_data_pb2.py", line 14, in <module>
    from mediapipe.framework.formats.annotation import rasterization_pb2 as mediapipe_dot_framework_dot_formats_dot_annotation_dot_rasterization__pb2
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/framework/formats/annotation/rasterization_pb2.py", line 36, in <module>
    _descriptor.FieldDescriptor(
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 560, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
  File "/var/root/Library/Application Support/Blender/2.93/scripts/addons/BlendArMocap-release/src/cgt_blender/interface/ui_preferences.py", line 29, in execute
    install_dependencies.install_and_import_module(module_name=dependency.module,
  File "/var/root/Library/Application Support/Blender/2.93/scripts/addons/BlendArMocap-release/src/cgt_blender/utils/install_dependencies.py", line 94, in install_and_import_module
    import_module(module_name, global_name)
  File "/var/root/Library/Application Support/Blender/2.93/scripts/addons/BlendArMocap-release/src/cgt_blender/utils/install_dependencies.py", line 54, in import_module
    globals()[global_name] = importlib.import_module(global_name)
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/__init__.py", line 17, in <module>
    import mediapipe.python.solutions as solutions
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/python/solutions/__init__.py", line 17, in <module>
    import mediapipe.python.solutions.drawing_styles
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/python/solutions/drawing_styles.py", line 20, in <module>
    from mediapipe.python.solutions.drawing_utils import DrawingSpec
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/python/solutions/drawing_utils.py", line 25, in <module>
    from mediapipe.framework.formats import detection_pb2
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/framework/formats/detection_pb2.py", line 14, in <module>
    from mediapipe.framework.formats import location_data_pb2 as mediapipe_dot_framework_dot_formats_dot_location__data__pb2
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/framework/formats/location_data_pb2.py", line 14, in <module>
    from mediapipe.framework.formats.annotation import rasterization_pb2 as mediapipe_dot_framework_dot_formats_dot_annotation_dot_rasterization__pb2
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/mediapipe/framework/formats/annotation/rasterization_pb2.py", line 36, in <module>
    _descriptor.FieldDescriptor(
  File "/Applications/Blender.app/Contents/Resources/2.93/python/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 560, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

location: <unknown location>:-1

from blendarmocap.

cgtinker avatar cgtinker commented on May 17, 2024

Google recently updated their protobuffers and mediapipe didn't include the change in their dependencies. I've been working on a fix but only tested on windows so far - https://github.com/cgtinker/BlendArMocap/tree/development.

Please try the development build and refer to #56

from blendarmocap.

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.