Closed stephenxs closed 4 years ago
Hey Stephen, I will take a look at this and try to repro!
In the meantime, can you verify that you installed the Ubuntu 18.04 versions of libswsscommon and python3-swsscommon? (link here: https://sonic-jenkins.westus2.cloudapp.azure.com/job/common/job/sonic-swss-common-build-ubuntu/lastSuccessfulBuild/artifact/target/)
Also, can you provide the output of ls /usr/lib/python3/dist-packages
?
Hi @daall,
Looks like the python3-swsscommon
depends on libhiredis0.13
while libhiredis0.14
provided in the target/debs/stretch
dir and installed on the server.
root@arc-host16-009:~/stephens# dpkg -i python3-swsscommon_1.0.0_amd64.deb
(Reading database ... 94388 files and directories currently installed.)
Preparing to unpack python3-swsscommon_1.0.0_amd64.deb ...
Unpacking python3-swsscommon (1.0.0) over (1.0.0) ...
dpkg: dependency problems prevent configuration of python3-swsscommon:
python3-swsscommon depends on libhiredis0.13 (>= 0.13.1); however:
Package libhiredis0.13 is not installed.
dpkg: error processing package python3-swsscommon (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
python3-swsscommon
root@arc-host16-009:~/stephens# dpkg -l | grep "redis"
ii libhiredis0.14:amd64 0.14.0-3~bpo9+1 amd64 minimalistic C client library for Redis
The output of ls /usr/lib/python3/dist-packages
root@arc-host16-009:~/stephens# ls /usr/lib/python3/dist-packages
apport language_support_pkgs.py
apport_python_hook.py lsb_release.py
apt netifaces-0.10.4.egg-info
apt_inst.cpython-36m-x86_64-linux-gnu.so netifaces.cpython-36m-x86_64-linux-gnu.so
apt_inst.pyi pip
apt_pkg.cpython-36m-x86_64-linux-gnu.so pip-9.0.1.egg-info
apt_pkg.pyi pkg_resources
aptsources problem_report.py
asn1crypto __pycache__
asn1crypto-0.24.0.egg-info pycrypto-2.6.1.egg-info
certifi pygobject-3.26.1.egg-info
certifi-2018.1.18.egg-info pygtkcompat
_cffi_backend.cpython-36m-x86_64-linux-gnu.so python_apt-1.6.5_ubuntu0.2.egg-info
chardet pyxdg-0.25.egg-info
chardet-3.0.4.egg-info PyYAML-3.12.egg-info
CommandNotFound README.txt
command_not_found-0.3.egg-info requests
Crypto requests-2.18.4.egg-info
cryptography requests_unixsocket
cryptography-2.1.4.egg-info requests_unixsocket-0.1.5.egg-info
dbus secretstorage
_dbus_bindings.cpython-36m-x86_64-linux-gnu.so SecretStorage-2.3.1.egg-info
_dbus_glib_bindings.cpython-36m-x86_64-linux-gnu.so setuptools
distro_info-0.18ubuntu0.18.04.1.egg-info setuptools-39.0.1.egg-info
distro_info.py six-1.11.0.egg-info
distro_info_test six.py
DistUpgrade ssh_import_id
easy_install.py ssh_import_id-5.7.egg-info
gi swsscommon
httplib2 systemd
httplib2-0.9.2.egg-info systemd_python-234.egg-info
HweSupportStatus ufw
idna ufw-0.36.egg-info
idna-2.6.egg-info UpdateManager
janitor urllib3
keyring urllib3-1.22.egg-info
keyring-10.6.0.egg-info wheel
keyrings wheel-0.30.0.egg-info
keyrings.alt-3.0.egg-info xdg
LanguageSelector yaml
language_selector-0.1.egg-info _yaml.cpython-36m-x86_64-linux-gnu.so
Looks like the python3-swsscommon depends on libhiredis0.13 while libhiredis0.14 provided in the target/debs/stretch dir and installed on the server.
I think you are right on here, I am making some updates to the README and then I'll ping you on this issue so we can verify.
Take a look at #1379. You will need libhiredis0.13 if you are running 18.04.
@prsunny @volodymyrsamotiy FYI as you two mentioned you were having issues with the install too. :)
@daall it works after installing libhiredis0.13.
Great to hear, thank you for your help!
Unable to execute vs test with the following errors. Not sure whether it's caused by something missed on the server. (I updated the server according to the link Docker Virtual Switch (DVS) Tests)
sonic-swss is the latest version. commit:
server version
pip package list
pip3 package list
debs installed on the server: