Code Monkey home page Code Monkey logo

Comments (9)

sushain97 avatar sushain97 commented on July 21, 2024

I also cannot execute git push -u origin master or so in the dir:

Yes, it doesn't add the remote until you actually specify -pe or -p, the same behavior as if initialized the Git repo yourself (and I would not want it to).

from apertium-init.

flammie avatar flammie commented on July 21, 2024

-pe doesn't work.

See:

$ apertium-init/apertium-init.py -pe apertium-tlh-swe/
usage: apertium-init.py [-h] [-d DESTINATION] [-p]
                        [-pe PUSH_EXISTING_TO_GITHUB] [-u USERNAME]
                        [-a {lt,lttoolbox,hfst}] [-a1 {lt,lttoolbox,hfst}]
                        [-a2 {lt,lttoolbox,hfst}] [--no-rlx1] [--no-rlx2]
                        [--no-prob1] [--no-prob2] [--no-pgen1] [--no-pgen2]
                        name
apertium-init.py: error: the following arguments are required: name

from apertium-init.

sushain97 avatar sushain97 commented on July 21, 2024

No, you're using it wrong.

See the new instructions.

from apertium-init.

flammie avatar flammie commented on July 21, 2024

ah, I missed the change :-)

Now I face another problem:

$ apertium-init/apertium-init.py -pe apertium-tlh-swe/ tlh-swe
GitHub Password ([email protected]): 
Authentication failed. Retrying...
GitHub Password ([email protected]): 
Authentication failed. Retrying...
GitHub Password ([email protected]): 
Authentication failed. Retrying...
GitHub Password ([email protected]): 
Authentication failed. Retrying...
GitHub Password ([email protected]): Traceback (most recent call last):
  File "apertium-init/apertium-init.py", line 168, in create_github_repository
    response = urllib.request.urlopen(req)
  File "/usr/lib64/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib64/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib64/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apertium-init/apertium-init.py", line 168, in create_github_repository
    response = urllib.request.urlopen(req)
  File "/usr/lib64/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib64/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib64/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apertium-init/apertium-init.py", line 168, in create_github_repository
    response = urllib.request.urlopen(req)
  File "/usr/lib64/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib64/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib64/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apertium-init/apertium-init.py", line 168, in create_github_repository
    response = urllib.request.urlopen(req)
  File "/usr/lib64/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib64/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib64/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apertium-init/apertium-init.py", line 271, in <module>
    main()
  File "apertium-init/apertium-init.py", line 230, in main
    push_to_github(args, args.destination, username)
  File "apertium-init/apertium-init.py", line 179, in push_to_github
    response = create_github_repository()
  File "apertium-init/apertium-init.py", line 174, in create_github_repository
    return create_github_repository()
  File "apertium-init/apertium-init.py", line 174, in create_github_repository
    return create_github_repository()
  File "apertium-init/apertium-init.py", line 174, in create_github_repository
    return create_github_repository()
  File "apertium-init/apertium-init.py", line 174, in create_github_repository
    return create_github_repository()
  File "apertium-init/apertium-init.py", line 158, in create_github_repository
    password = getpass.getpass(prompt='GitHub Password ({}): '.format(username))
  File "/usr/lib64/python3.5/getpass.py", line 77, in unix_getpass
    passwd = _raw_input(prompt, stream, input=input)
  File "/usr/lib64/python3.5/getpass.py", line 146, in _raw_input
    line = input.readline()
KeyboardInterrupt

I think user.email from global config isn't good for github, I either need an option to override (other systems aks to specify user name after first failure) or it could just use github.user from git config, I don't know why but it seems I have this setup globally:

$ git config -l
user.name=Tommi A Pirinen
[email protected]
user.signingkey=0xB55C73B38C4B9642!
github.user=flammie
core.editor=vim
merge.tool=vimdiff
color.ui=auto
http.postbuffer=242880000

from apertium-init.

sushain97 avatar sushain97 commented on July 21, 2024

See --username.

from apertium-init.

sushain97 avatar sushain97 commented on July 21, 2024

It should work but I don't think it's been tested rigorously.

from apertium-init.

sushain97 avatar sushain97 commented on July 21, 2024

Feel free to open a feature request for using github.user. It would be ideal. I don't know if everyone has it set though.

from apertium-init.

flammie avatar flammie commented on July 21, 2024

Ähm, it seems it gives authentication failed in all cases, maybe it's about insufficient rights or something. If it had worked it would be a good thing to document in the readme, I think most users would be needing it.

from apertium-init.

sushain97 avatar sushain97 commented on July 21, 2024

it would be a good thing to document in the readme

Indeed, #29 is for that.

from apertium-init.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.