thoth-station/integration-tests

cant run ./app.py

Closed this issue · 9 comments

goern commented

Describe the bug

Traceback (most recent call last):
  File "/home/goern/Work/thoth-station/integration-tests/./app.py", line 20, in <module>
    from behave.__main__ import main as behave_main
ModuleNotFoundError: No module named 'behave'

To Reproduce
Steps to reproduce the behavior:

  1. clone this repo
  2. pipenv install
  3. pipenv shell
  4. ./app.py

Expected behavior
integration tests are executed using behave

Screenshots
n/a

Additional context
n/a

/kind bug
/priority critical-urgent
/assign @mayaCostantini

goern commented

I was following the README

I can't reproduce this error. Do you have more information on the repo version and command used?

goern commented

I'm cloning from the main branch, is repo version is HEAD. pipenv is from pipenv-2022.5.2-3.fc37.noarch

Sorry, I still can't manage to reproduce the issue. What Python version did you use?

goern commented
$ pipenv install 
/usr/lib/python3.11/site-packages/pipenv/vendor/attr/_make.py:876: RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.
  set_closure_cell(cell, cls)
/usr/lib/python3.11/site-packages/pipenv/vendor/attr/_make.py:876: RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.
  set_closure_cell(cell, cls)
/usr/lib/python3.11/site-packages/pipenv/vendor/attr/_make.py:876: RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.
  set_closure_cell(cell, cls)
Creating a virtualenv for this project...
Pipfile: /home/goern/Work/thoth-station/integration-tests/Pipfile
Using /usr/bin/python3.8 (3.8.16) to create virtualenv...
⠦ Creating virtual environment...created virtual environment CPython3.8.16.final.0-64 in 421ms
  creator CPython3Posix(dest=/home/goern/.local/share/virtualenvs/integration-tests-Me6nOCO7, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(extra_search_dir=/usr/share/python-wheels,download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/goern/.local/share/virtualenv)
    added seed packages: pip==22.3, setuptools==65.5.0, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment! 
Virtualenv location: /home/goern/.local/share/virtualenvs/integration-tests-Me6nOCO7
Installing dependencies from Pipfile.lock (62b616)...

To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
$ rpm -qf $(which python3.8)
python3.8-3.8.16-1.fc37.x86_64
$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="37 (Workstation Edition)"
ID=fedora
VERSION_ID=37
VERSION_CODENAME=""
PLATFORM_ID="platform:f37"
PRETTY_NAME="Fedora Linux 37 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:37"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f37/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=37
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=37
SUPPORT_END=2023-11-14
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Please try this command pipenv run pip show behave and if the response something like this:

Name: behave
Version: 1.2.6
Summary: behave is behaviour-driven development, Python style
Home-page: http://github.com/behave/behave
Author: Jens Engel, Benno Rice and Richard Jones
Author-email: behave-users@googlegroups.com
License: BSD
Location: /home/hnalla/.local/share/virtualenvs/integration-tests-OOjB5YLZ/lib/python3.8/site-packages
Requires: parse, parse-type, six
Required-by: behave-html-formatter

Then the behave module is available.

goern commented

it is available. I did from main branch HEAD

pipenv --rm
pipenv lock --clear
pipenv install --dev

which update a bunch of versions... pls chk #365
/assign @harshad16
/unassign @mayaCostantini

goern commented

#365 fixed it
/close

@goern: Closing this issue.

In response to this:

#365 fixed it
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.