Giter Club home page Giter Club logo

Comments (4)

lovettchris avatar lovettchris commented on September 18, 2024

Thanks for filing a new issue. So looks like "model_test" is failing, but there is no useful diagnostic output. It looks like it threw an exception, but the exception printing printed nothing, so we only see "exception:". The test loaded model_1.model but not model_2.model. So perhaps it didn't find model_1.model. Can you see "model_1.model" in ~\build\examples\models ?

Can you try running python model_test.py from ~\ELL\build\interfaces\python\test in a debugger and let me know what you see?

Note: it is a bit odd that your ELL repo is under "C:\Program Files" -- normally this folder does not have user permissions, normally I put my git repos someplace else, liker "c:\git".

from ell.

MoonSunBeen avatar MoonSunBeen commented on September 18, 2024

Appreciate to @lovettchris
Actually I fixed my model_test problem this routine.

  1. move ELL directory under c:\git
  2. fix my environment variable
  3. delete problem build and reboot new build]

I guess the problem occurs because of dependency and environment variable

but I go another ctest error

  • onnx_importer_test error
  • pythonlibs-audio-test

The error code is below
22: Test command: C:\Users\NOTA1204\miniconda3\envs\py36\python.exe "-m" "unittest" "onnx_node_test.py:"
22: Test timeout computed to be: 10000000
22: Traceback (most recent call last):
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\runpy.py", line 193, in _run_module_as_main
22: "__main__", mod_spec)
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\runpy.py", line 85, in _run_code
22: exec(code, run_globals)
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\__main__.py", line 18, in <module>
22: main(module=None)
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\main.py", line 94, in __init__\
22: self.parseArgs(argv)
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\main.py", line 141, in parseArgs
22: self.createTests()
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\main.py", line 148, in createTests
22: self.module)
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\loader.py", line 219, in loadTestsFromNames
22: suites = [self.loadTestsFromName(name, module) for name in names]
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\loader.py", line 219, in <listcomp>
22: suites = [self.loadTestsFromName(name, module) for name in names]
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\loader.py", line 153, in loadTestsFromName
22: module = __import__(module_name)
22: File "C:\Git\ELL\build\tools\importers\onnx\test\onnx_node_test.py", line 15, in <module>
22: import onnx
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\site-packages\onnx\__init__.py", line 9, in <module>
22: from onnx.external_data_helper import load_external_data_for_model, write_external_data_tensors
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\site-packages\onnx\external_data_helper.py", line 10, in <module>
22: from .onnx_pb import TensorProto, ModelProto
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\site-packages\onnx\onnx_pb.py", line 8, in <module>
22: from .onnx_ml_pb2 import * # noqa
22: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\site-packages\onnx\onnx_ml_pb2.py", line 22, in <module>
22: create_key=_descriptor._internal_create_key,
22: AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'
22/44 Test #22: onnx_importer_test ...............***Failed 0.23 sec

42: Test command: C:\Users\NOTA1204\miniconda3\envs\py36\python.exe "-m" "unittest" "audio_unittest.py"
42: Test timeout computed to be: 10000000
42: Traceback (most recent call last):
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\runpy.py", line 193, in _run_module_as_main
42: "__main__", mod_spec)
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\runpy.py", line 85, in _run_code
42: exec(code, run_globals)
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\__main__.py", line 18, in <module>
42: main(module=None)
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\main.py", line 94, in __init__
42: self.parseArgs(argv)
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\main.py", line 141, in parseArgs
42: self.createTests()
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\main.py", line 148, in createTests
42: self.module)
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\loader.py", line 219, in loadTestsFromNames
42: suites = [self.loadTestsFromName(name, module) for name in names]
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\loader.py", line 219, in <listcomp>
42: suites = [self.loadTestsFromName(name, module) for name in names]
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\unittest\loader.py", line 153, in loadTestsFromName
42: module = __import__(module_name)
42: File "C:\Git\ELL\build\tools\utilities\pythonlibs\audio\test\audio_unittest.py", line 31, in <module>
42: import onnx_import
42: File "C:\Git\ELL\build\tools\utilities\pythonlibs\audio\test\..\..\..\..\importers\onnx\onnx_import.py", line 24, in <module>
42: import onnx_to_ell
42: File "C:\Git\ELL\build\tools\utilities\pythonlibs\audio\test\..\..\..\..\importers\onnx\onnx_to_ell.py", line 21, in <module>
42: import onnx_converters as convert
42: File "C:\Git\ELL\build\tools\importers\onnx\lib\onnx_converters.py", line 22, in <module>
42: import onnx
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\site-packages\onnx\__init__.py", line 9, in <module>
42: from onnx.external_data_helper import load_external_data_for_model, write_external_data_tensors
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\site-packages\onnx\external_data_helper.py", line 10, in <module>
42: from .onnx_pb import TensorProto, ModelProto
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\site-packages\onnx\onnx_pb.py", line 8, in <module>
42: from .onnx_ml_pb2 import * # noqa
42: File "C:\Users\NOTA1204\miniconda3\envs\py36\lib\site-packages\onnx\onnx_ml_pb2.py", line 22, in <module>
42: create_key=_descriptor._internal_create_key,
42: AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'
42: using scripts from ell root: C:\Git\ELL
42/44 Test #42: pythonlibs-audio-test ............***Failed 0.53 sec'

I guess both of the problem have the same error code.
AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'

Can you suggest me some checkpoint to solve this problem?

from ell.

MoonSunBeen avatar MoonSunBeen commented on September 18, 2024

AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'

Fixed this error
pip uninstall protobuf python3-protobuf
pip install --upgrade pip
pip install --upgrade protobuf

above these codes

Then ctest passed.

from ell.

lovettchris avatar lovettchris commented on September 18, 2024

Wow, ok, interesting! Thanks for closing the issue.

from ell.

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.