Closed haojue closed 1 year ago
Hi @haojue thanks for reporting.
I cannot reproduce on centos:stream8. This works for me:
podman run -v ./ofproto-dump.txt:/tmp/ofproto-dump.txt:z -it centos:stream8 sh -c "dnf -y install python3-pip && pip3 install ovs-dbg && ovs-ofparse -i /tmp/ofproto-dump.txt openflow html"
Can you please check you have the latest version installed? e.g: pip3 list | grep ovs
should give you a hint or pip3 install --force-reinstall --no-cache-dir --upgrade ovs-dbg
can reinstall and upgrade the package if present.
Hi @amorenoz ,
Thank you for your reply! Sorry for late response! I checked with the command you shared, this is the output.
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
easyovs 0.5
ovs 2.12.4
ovs-dbg 0.0.15
ovsdbapp 1.2.1
and the output from python console:
python
Python 3.6.8 (default, Jun 14 2022, 12:54:06)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-10)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ovs.flow.ofp import OFPFlow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'ovs.flow'
sorry for the delay, I think I know what's going on. If you could try building locally #111? Remember to use ./prepare.sh
before pip install .
This may be just a doc enhancement or issue fix:
I followed the instruction in installation section of https://github.com/amorenoz/ovs-dbg to install, specifically this command
pip install ovs-dbg
, after the installation:ofparse openflow html > /myflows.html
failed with error:python -V Python 3.6.8
OS -rhel86