
Hello, I need help with Travis. No matter how I setup .travis.yml I am not able to "import PyQt5". I used the "install-before" and the "install" section. I tried "sudo apt install python3-pyqt5" (which I would prefer). And I tried "pip install pyqt5" and "pip install -U pyqt5". Nothing of this work. No error messages while installing. Just the "import PyQt5" raises an "ImportError". Travis use Ubuntu 20. I also installed this and checked out. A simple "sudo apt python3-pyqt5" work there. I can import PyQt5 in a usual self installed Ubuntu 20. I am confused. Maybe this has something todo with the virtenv or another part of Travis. Any ideas? Good Night Christian

On Sat, 2022-09-17 at 22:44 +0000, c.buhtz@posteo.jp wrote:
I need help with Travis.
No matter how I setup .travis.yml I am not able to "import PyQt5".
I stumbled over the same question when diagnosing my unit test failing on Travis only and wondered how my added "import json" dependency will be recognized by Travis to satisfy this dependency. I think we should extend our Travis setup with a "requirements.txt" for this, as it is documented here: https://docs.travis-ci.com/user/languages/python/#pip
By default Travis CI uses pip to manage Python dependencies. If you have a requirements.txt file, Travis CI runs pip install -r requirements.txt during the install phase of the build.
It also looks like we could test the "new" dependency resolver by extending travis.yaml: https://docs.travis-ci.com/user/languages/python/#new-dependency-resolver-in...

On Sat, 2022-09-17 at 22:44 +0000, c.buhtz@posteo.jp wrote:
I need help with Travis.
No matter how I setup .travis.yml I am not able to "import PyQt5".
I stumbled over the same question when diagnosing my unit test failing on Travis only and wondered how my added "import json" dependency will be recognized by Travis to satisfy this dependency. I think we should extend our Travis setup with a "requirements.txt" for this, as it is documented here: https://docs.travis-ci.com/user/languages/python/#pip
By default Travis CI uses pip to manage Python dependencies. If you have a requirements.txt file, Travis CI runs pip install -r requirements.txt during the install phase of the build.
It also looks like we could test the "new" dependency resolver by extending travis.yaml: https://docs.travis-ci.com/user/languages/python/#new-dependency-resolver-in...
participants (2)
-
c.buhtz@posteo.jp
-
J. A.