Skip to content

Initialisation error in Django project #557

@mathewtrivett

Description

@mathewtrivett

I'm setting up lettuce to run integrations tests in a Django project. I have created a blank accounts.feature file and a blank accounts_steps.py file.

    ├── apps
    │   └── accounts
    │       ├── __init__.py
    │       ├── admin.py
    │       ├── apps.py
    │       ├── features
    │       │   ├── accounts.feature
    │       │   └── accounts_steps.py
    │       ├── migrations
    │       │   └── __init__.py
    │       ├── models.py
    │       ├── tests.py
    │       └── views.py

I was trying to run harvest with this setup but encounter this error and this remains when I write features file but no step definitions. I assumed that lettuce would discover the feature files but warn that the steps have not been defined.

 File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/mathewtrivett/.virtualenvs/unible/lib/python3.6/site-packages/lettuce/__init__.py", line 179
    print "Error loading step definitions:\n", e

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print "Error loading step definitions:\n", e)?``` 

This looks like a Python2 / 3 error in the __init__ file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions