I have pulled the latest sources and configured the cluster too.
Zato version is : Zato 3.0.0rc1+rev.82ecf462
While starting zato using ./zato-qs-start.sh got below error:
Starting Zato cluster perch
Running sanity checks
AttributeError: ("‘int’ object has no attribute ‘encode’",) (Hint: re-run with --verbose for full traceback)
After further looking into the code understood that password is not encrypted properly, hence tried to do the same using
Starting Zato cluster perch
Running sanity checks
AttributeError: ("‘int’ object has no attribute ‘encode’",) (Hint: re-run with --verbose for full traceback)
got below error for this statement:
Traceback (most recent call last):
File “/home/zato/zato/code/bin/zato”, line 11, in
load_entry_point(‘zato-cli’, ‘console_scripts’, ‘zato’)()
File “/home/zato/zato/code/zato-cli/src/zato/cli/zato_command.py”, line 362, in main
return run_command(get_parser().parse_args())
File “/home/zato/zato/code/zato-cli/src/zato/cli/init.py”, line 354, in run_command
command_classargs.command.run(args)
File “/home/zato/zato/code/zato-cli/src/zato/cli/init.py”, line 630, in run
return_code = self.execute(args)
File “/home/zato/zato/code/zato-cli/src/zato/cli/crypto.py”, line 39, in execute
cm = CryptoManager(pub_key_location=os.path.abspath(args.path))
Then tried zato encrypt that has failed with below message:
Traceback (most recent call last):
File “/home/zato/zato/code/bin/zato”, line 11, in
load_entry_point(‘zato-cli’, ‘console_scripts’, ‘zato’)()
File “/home/zato/zato/code/zato-cli/src/zato/cli/zato_command.py”, line 362, in main
return run_command(get_parser().parse_args())
File “/home/zato/zato/code/zato-cli/src/zato/cli/init.py”, line 354, in run_command
command_classargs.command.run(args)
File “/home/zato/zato/code/zato-cli/src/zato/cli/init.py”, line 630, in run
return_code = self.execute(args)
File “/home/zato/zato/code/zato-cli/src/zato/cli/crypto.py”, line 39, in execute
cm = CryptoManager(pub_key_location=os.path.abspath(args.path))
TypeError: init() got an unexpected keyword argument ‘pub_key_location’
I’m not able to reproduce the situation hence I’m asking you to send concrete instructions step-by-step how to do it.
Instead of the textual description, please send the exact commands, copy-paste from the terminal, the whole of it, from the moment you clone the repository, switch to a branch of choice, through the creation of an environment up to the exception.
while executing install.sh, I have seen below error too:
Building wheels for collected packages: suds-ovnicraft, dpath, globre, distribute
Running setup.py bdist_wheel for suds-ovnicraft … done
Stored in directory: /tmp/pip-ephem-wheel-cache-19GQe1/wheels/ae/71/84/d1faf106f3c8151b928776fd9a12a307687b9b50038f266e5e
Running setup.py bdist_wheel for dpath … done
Stored in directory: /tmp/pip-ephem-wheel-cache-19GQe1/wheels/b3/4b/c5/af1e0dae6a517453af1db996777fc0ea5b8c4e8db15bc7e5ce
Running setup.py bdist_wheel for globre … done
Stored in directory: /tmp/pip-ephem-wheel-cache-19GQe1/wheels/96/7c/7e/884e3bbe542be4e758c470f36f48082673387a1fcb30119f82
Running setup.py bdist_wheel for distribute … error
Complete output from command /home/zato/zato/code/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-install-q84109/distribute/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/pip-wheel-TZbDLA --python-tag cp27:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-q84109/distribute/setup.py”, line 58, in
setuptools.setup(**setup_params)
File “/usr/lib/python2.7/distutils/core.py”, line 137, in setup
ok = dist.parse_command_line()
File “setuptools/dist.py”, line 276, in parse_command_line
result = _Distribution.parse_command_line(self)
File “/usr/lib/python2.7/distutils/dist.py”, line 467, in parse_command_line
args = self._parse_command_opts(parser, args)
File “setuptools/dist.py”, line 602, in _parse_command_opts
nargs = _Distribution._parse_command_opts(self, parser, args)
File “/usr/lib/python2.7/distutils/dist.py”, line 523, in _parse_command_opts
cmd_class = self.get_command_class(command)
File “setuptools/dist.py”, line 406, in get_command_class
ep.require(installer=self.fetch_build_egg)
File “pkg_resources.py”, line 2254, in require
working_set.resolve(self.dist.requires(self.extras),env,installer)))
File “pkg_resources.py”, line 2471, in requires
dm = self._dep_map
File “pkg_resources.py”, line 2682, in _dep_map
self.__dep_map = self._compute_dependencies()
File “pkg_resources.py”, line 2699, in _compute_dependencies
from _markerlib import compile as compile_marker
ImportError: No module named _markerlib
I was able to reproduce the error. This is happening when kvdb (Redis) has a password, I’ve set Redis password as “123456” and also tried "abcdef’. For both the passwords, I was getting below error: