Bug report #9894
In python console, input() raises EOFError
|Affected QGIS version:||2.2.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||end of life|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18411|
Just type "input()" in the Qgis console :
Traceback (most recent call last):
File "<input>", line 1, in <module>
EOFError: EOF when reading a line
What it should do :
then i type something + enter
'then i type something + enter'
I need it for a script to ask the user for some string data (like Y/N choices, new parameters depending on partial results after a first process step, etc...)
#4 Updated by pierre krmr over 6 years ago
Etienne Tourigny wrote:
I guess the bug reporter doesn't want a dialog popping up?
I use QInputDialog, but I just think it's more functional, fast, aesthetic, to keep his eyes on the console.
Ten years I use autocad, I have never found anything more relevant and productive than that:
Specify center point for circle or [ 3P/ 2P/ Ttr (tan tan radius)]:
Specify diameter of circle <current>:
This is just an example, not what I want to code, but with only one simple function I can draw a circle with :
- 3 points of the circle
- 2 points of a diameter of the circle
- 2 points on two other circles + radius length
- 2 points (center + one point on the circle)
- 1 point + radius length
Making different functions or adding buttons and windows would ruin everything here.
Yes, it is old-fashioned, but I love it ;-)
#7 Updated by Giovanni Manghi over 1 year ago
- Resolution set to end of life
- Status changed from Open to Closed
End of life notice: QGIS 2.18 LTR