Description of problem: Since python-behave-1.2.6-19.fc38 behave runs python with -s option. > $ cat /usr/bin/behave > #! /usr/bin/python3 -sP > # -*- coding: utf-8 -*- > import re > ... This results in behave not finding python packages installed with pip because they are installed to /usr/local prefix. Version-Release number of selected component (if applicable): python-behave-1.2.6-19.fc38 How reproducible: Always Steps to Reproduce: 1. $ podman run -it fedora:38 2. [root@1cb3c4d30c32 /]# dnf install python3-behave python3-pip -y 3. [root@1cb3c4d30c32 /]# pip3 install pyftpdlib 4. [root@1cb3c4d30c32 /]# mkdir test && cd test 5. [root@1cb3c4d30c32 test]# echo "import pyftpdlib" > environment.py 6. [root@1cb3c4d30c32 test]# touch a.feature && mkdir steps 7. [root@1cb3c4d30c32 test]# behave Actual results: ModuleNotFoundError: No module named 'pyftpdlib' Expected results: Module is imported Additional info: In python-behave-1.2.6-17.fc37 it works.
I think this (https://fedoraproject.org/wiki/Changes/PythonSafePath) caused that.
FEDORA-2023-0dff426f3b has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0dff426f3b
FEDORA-2023-7155ed7e47 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-7155ed7e47
FEDORA-2023-f60e2a40c1 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f60e2a40c1
FEDORA-2023-f60e2a40c1 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-f60e2a40c1` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f60e2a40c1 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-0dff426f3b has been pushed to the Fedora 38 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0dff426f3b See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-7155ed7e47 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-7155ed7e47` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-7155ed7e47 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-f60e2a40c1 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-0dff426f3b has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-7155ed7e47 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.
(In reply to Ali Erdinc Koroglu from comment #1) > I think this (https://fedoraproject.org/wiki/Changes/PythonSafePath) caused > that. Not actually caused by this change, but the fix in https://src.fedoraproject.org/rpms/python-behave/c/a4f134cd6c7328a7c1b97d7372a8ee82f68af28c?branch=rawhide is correct.