Wei-Chiu Chuang created SUBMARINE-480:
-----------------------------------------
Summary: Python errors during build
Key: SUBMARINE-480
URL: https://issues.apache.org/jira/browse/SUBMARINE-480
Project: Apache Submarine
Issue Type: Bug
Components: Doc, Workbench Web
Reporter: Wei-Chiu Chuang
There are Python errors during build. It appears to be the Python version or
missing Python modules. There is no doc for Python requirement during compile
time. Suggest to update doc.
{noformat}
[INFO]
[INFO] > [email protected] install
/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/node_modules/webpack-dev-server/node_modules/fsevents
[INFO] > node-gyp rebuild
[INFO]
[ERROR] ERROR:root:code for hash md5 was not found.
[ERROR] Traceback (most recent call last):
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 147, in <module>
[ERROR] globals()[__func_name] = __get_hash(__func_name)
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 97, in __get_builtin_constructor
[ERROR] raise ValueError('unsupported hash type ' + name)
[ERROR] ValueError: unsupported hash type md5
[ERROR] ERROR:root:code for hash sha1 was not found.
[ERROR] Traceback (most recent call last):
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 147, in <module>
[ERROR] globals()[__func_name] = __get_hash(__func_name)
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 97, in __get_builtin_constructor
[ERROR] raise ValueError('unsupported hash type ' + name)
[ERROR] ValueError: unsupported hash type sha1
[ERROR] ERROR:root:code for hash sha224 was not found.
[ERROR] Traceback (most recent call last):
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 147, in <module>
[ERROR] globals()[__func_name] = __get_hash(__func_name)
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 97, in __get_builtin_constructor
[ERROR] raise ValueError('unsupported hash type ' + name)
[ERROR] ValueError: unsupported hash type sha224
[ERROR] ERROR:root:code for hash sha256 was not found.
[ERROR] Traceback (most recent call last):
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 147, in <module>
[ERROR] globals()[__func_name] = __get_hash(__func_name)
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 97, in __get_builtin_constructor
[ERROR] raise ValueError('unsupported hash type ' + name)
[ERROR] ValueError: unsupported hash type sha256
[ERROR] ERROR:root:code for hash sha384 was not found.
[ERROR] Traceback (most recent call last):
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 147, in <module>
[ERROR] globals()[__func_name] = __get_hash(__func_name)
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 97, in __get_builtin_constructor
[ERROR] raise ValueError('unsupported hash type ' + name)
[ERROR] ValueError: unsupported hash type sha384
[ERROR] ERROR:root:code for hash sha512 was not found.
[ERROR] Traceback (most recent call last):
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 147, in <module>
[ERROR] globals()[__func_name] = __get_hash(__func_name)
[ERROR] File
"/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py",
line 97, in __get_builtin_constructor
[ERROR] raise ValueError('unsupported hash type ' + name)
[ERROR] ValueError: unsupported hash type sha512
[ERROR] Traceback (most recent call last):
[ERROR] File
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py",
line 16, in <module>
[ERROR] sys.exit(gyp.script_main())
[ERROR] File
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 545, in script_main
[ERROR] return main(sys.argv[1:])
[ERROR] File
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 538, in main
[ERROR] return gyp_main(args)
[ERROR] File
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 514, in gyp_main
[ERROR] options.duplicate_basename_check)
[ERROR] File
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 98, in Load
[ERROR] generator.CalculateVariables(default_variables, params)
[ERROR] File
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
line 79, in CalculateVariables
[ERROR] import gyp.generator.xcode as xcode_generator
[ERROR] File
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py",
line 7, in <module>
[ERROR] import gyp.xcodeproj_file
[ERROR] File
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py",
line 152, in <module>
[ERROR] _new_sha1 = hashlib.sha1
[ERROR] AttributeError: 'module' object has no attribute 'sha1'
[ERROR] gyp ERR! configure error
[ERROR] gyp ERR! stack Error: `gyp` failed with exit code: 1
[ERROR] gyp ERR! stack at ChildProcess.onCpExit
(/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
[ERROR] gyp ERR! stack at ChildProcess.emit (events.js:182:13)
[ERROR] gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:240:12)
[ERROR] gyp ERR! System Darwin 18.7.0
[ERROR] gyp ERR! command
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node"
"/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/target/node/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
[ERROR] gyp ERR! cwd
/Users/weichiu/sandbox/submarine/submarine-workbench/workbench-web-ng/node_modules/webpack-dev-server/node_modules/fsevents
[ERROR] gyp ERR! node -v v10.12.0
[ERROR] gyp ERR! node-gyp -v v3.8.0
[ERROR] gyp ERR! not ok
{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]