I am trying to use lettuce to write some simple Unit tests.
(More specifically I am following this tutorial: https://semaphoreci.com/community/tutorials/bdd-testing-a-restful-web-application-in-python)
I just installed lettuce with:
$ pip3 install lettuce
and when I run
$ lettuce test/features
I get:
Traceback (most recent call last):
File "/usr/local/bin/lettuce", line 9, in <module>
load_entry_point('lettuce==0.2.23', 'console_scripts', 'lettuce')()
File "/usr/local/lib/python3.4/site-packages/pkg_resources/__init__.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2229, in load
return self.resolve()
File "/usr/local/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.4/site-packages/lettuce/__init__.py", line 179
print "Error loading step definitions:\n", e
^
SyntaxError: Missing parentheses in call to 'print'
Is there a mistake in the lettuce package? I went and corrected a few things(added parenthesis to some print statements and then some other prints failed for the same reason). Any ideas?
lettuce
is not Python 3 compatible. – Branum