SciTe and Python 3 - problems with configuration [UBUNTU] -


i have big problem(s) configuration of scite in context of python 3. not know if details have meaning, so:

[details]

  1. i downloaded , executed gen_python_3_api.py.

  2. i created folder "api" in usr/share/scite , copy-pasted there python3.api

  3. i edited sciteuser.properties written in documentation of gen_python_3_api.py. did not bit, so:

  4. i used more general way found on website of scite. edited python.properties , added line:

    api.$(file.patterns.py)=$(scitedefaulthome)\api\python.api.

    still no effect.

  5. i edited line of python.properties:

    if plat_gtk

    command.go.*.py=python3 -u "$(filenameext)"

    it worked (or though so).

[/details]

now want run simple fibbonaci program worked idle.

def fib(n):   = 0                    b = 1                    fibl = []                in range (n):        fibl.append(a)          z =                    = b                    b = b+z                return fibl   n = int(input("number? ")) print(fib(n)) 

and get:

>python3 -u "test.py"  number? traceback (most recent call last):    file "test.py", line 38, in <module>      n = int(input("number? "))  eoferror: eof when reading line  >exit code: 1 

i confused. know why things happen , how fix it?

first of all, generation of api editing only, not running code.

resolve ambiguity versions adding full path command lines (hope, in 5th point of question details)

the problem in line:

    n = int(input("number? ")) 

here want input user, i.e. interactive running, editor runs commands inside process , can output simply.

change code adding variable instead of input command

    n=5 

or use parameters http://www.scintilla.org/scitedoc.html#property-if

good luck!


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -