GitHub user sebbASF opened an issue:
https://github.com/apache/incubator-ponymail/issues/133
Bug: setup.py does not handle empty response to port number well
setup.py prompts for various parameters if they have not been provided.
In most cases it re-prompts if return is pressed, however an empty reply
for port causes the script to fail:
What port is ElasticSearch listening on? (normally 9200):
Traceback (most recent call last):
File "setup.py", line 128, in <module>
port = int(input("What port is ElasticSearch listening on? (normally
9200): "))
ValueError: invalid literal for int() with base 10: ''
The code should allow for this; e.g. as follows:
while port < 1:
try:
port = int(input("What port is ElasticSearch listening on?
(normally 9200): "))
except ValueError:
pass
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---