Comments (9)
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.
-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.
No, you're using it wrong.
See the new instructions.
from apertium-init.
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.
See --username.
from apertium-init.
It should work but I don't think it's been tested rigorously.
from apertium-init.
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.
Ä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.
it would be a good thing to document in the readme
Indeed, #29 is for that.
from apertium-init.
Related Issues (20)
- change to xfst-based spellrelax
- vanilla rtx has deprecated indexed blank
- notice about licensing HOT 3
- rtx default to having tags transferred for all common categories
- vanilla lexd is uncompilable due to unescaped /
- traces of lexc in lexd stuff
- Current Version Not on PyPI HOT 2
- Migrate builds to Github Actions
- Don't recompile CG rules in bilingual modules
- Add Orthography Conversion to Analyzers
- Read Monolingual modes.xml HOT 1
- add udx mapping stuff to language dirs
- add lexd support
- -pe should equal -p -e, not a long form HOT 3
- Newer flake8 unhappy with quotes
- change spellrelax from twol to hfst-expand-equivalences HOT 1
- validate option combinations
- new PR calls for documentation update(s) HOT 1
- move all instructions in README related to installation to new Installation section near top, before Usage
- .deps/spellrelax.hfst should be .deps/$(LANG1).spellrelax.hfst
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apertium-init.