steve-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Smith (JIRA)" <>
Subject [jira] [Commented] (STEVE-30) Error running
Date Wed, 21 Mar 2018 13:49:00 GMT


Brett Smith commented on STEVE-30:

There are a couple of different issues here.

The script does indeed expect to run under Python 2, and since it's an executable it should
declare that in its shebang line. The patch in STEVE-33 will address this issue and make it
work as expected.

The error under Python 2 is caused by a circular import among modules in the lib/ directory.
One of the imports is unused, so we can resolve this by simply removing that import. Please
find a patch attached.


> Error running
> ----------------------
>                 Key: STEVE-30
>                 URL:
>             Project: Steve
>          Issue Type: Bug
>         Environment:
>            Reporter: Sebb
>            Priority: Major
>         Attachments: remove-circular-import.patch
> Tried following the demo page, but failed to run
> {noformat}
> Reading steve.cfg
> Traceback (most recent call last):
>   File "/Users/sebb/Documents/workspace/steve/pysteve/cli/", line 36, in <module>
>     from lib import election, voter, constants
>   File "/Users/sebb/Documents/workspace/steve/pysteve/lib/", line 22, in <module>
>     from itertools import izip
> ImportError: cannot import name 'izip'
> {noformat}
> If there are some additional dependencies, these should be documented

This message was sent by Atlassian JIRA

View raw message