You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@steve.apache.org by "Brett Smith (JIRA)" <ji...@apache.org> on 2018/03/21 13:49:00 UTC

[jira] [Commented] (STEVE-30) Error running setup.py

    [ https://issues.apache.org/jira/browse/STEVE-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16407930#comment-16407930 ] 

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.

[^remove-circular-import.patch]

> Error running setup.py
> ----------------------
>
>                 Key: STEVE-30
>                 URL: https://issues.apache.org/jira/browse/STEVE-30
>             Project: Steve
>          Issue Type: Bug
>         Environment: http://steve.apache.org/demo.html
>            Reporter: Sebb
>            Priority: Major
>         Attachments: remove-circular-import.patch
>
>
> Tried following the demo page, but failed to run setup.py:
> {noformat}
> Reading steve.cfg
> Traceback (most recent call last):
>   File "/Users/sebb/Documents/workspace/steve/pysteve/cli/setup.py", line 36, in <module>
>     from lib import election, voter, constants
>   File "/Users/sebb/Documents/workspace/steve/pysteve/lib/election.py", 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
(v7.6.3#76005)