Closed himanshusaini-fa closed 3 years ago
Hello @imanshusaini-fa, did you figure out this issue? I am facing the same problem.
Nope. Stopped trying after a few days.
I got it to work by downgrading to awsebcli==3.18.1 (one version ago)
Having the same issue.
the same problem. I'm using deploy guide
Any update here? Same problem, and I wasn't able to install any previous versions of the cli successfully.
@himanshusaini-fa thanks for reporting this issue. Could you tell which Python version are you using?
@himanshusaini-fa thanks for reporting this issue. Could you tell which Python version are you using?
Hi @Palakpatel67. it's in the verbose. Python 3.8.
@himanshusaini-fa I was finally able to reproduce the issue. Issue here is CLI look for current repository name based on the current branch name ( git config --get branch.master.remote
) while deploying application via codecommit and if remote branch is not set in .git/config
file, it returns "none" which results in TypeError
. this values are set in .git/config
while initializing an application with codecommit.
In case if branch details are not set, you can add your remote branch configurations in .git/config
,
[branch "master"]
remote = codecommit-origin
merge = refs/heads/master
Note: in this example codecommit branch name is master
let us know if you have any questions. thanks!
Closing this issue as there has been no update for an extended period of time.
The only thing which worked for me was downgrading to 3.18.1 (current version installed using the CLI setup scripts):
$ cd ~/.ebcli-virtual-env
$ bin/pip install awsebcli==3.18.1
$ eb --version
EB CLI 3.18.1 (Python 3.7.2)
@Palakpatel67 thank you so much, it worked for me.
same issue when eb init with code commit. The way I've fixed it is I've deleted the .elasticbanstalk
folder and done eb init
again without the code commit :roll_eyes:
Amazingly this bug is still not fixed. The stack trace I get after --verbose is the same in the OP.
$ eb --version
EB CLI 3.19.4 (Python 3.8.2)
Can someone reopen this? It is still going on
Faced the same issue with
$ eb --version
EB CLI 3.20.2 (Python 3.9.7)
@dadooda's solution works like a charm.
@himanshusaini-fa I was finally able to reproduce the issue. Issue here is CLI look for current repository name based on the current branch name (
git config --get branch.master.remote
) while deploying application via codecommit and if remote branch is not set in.git/config
file, it returns "none" which results inTypeError
. this values are set in.git/config
while initializing an application with codecommit.In case if branch details are not set, you can add your remote branch configurations in
.git/config
,[branch "master"] remote = codecommit-origin merge = refs/heads/master
Note: in this example codecommit branch name is
master
let us know if you have any questions. thanks!
Based on this comment, I added these lines to config and switched to the master branch.
After that, eb create
worked well.
Thank you
edit : converted sentence to one line
Im still getting the same issue even after adding to .git/config. Can someone help with this?
Im still getting the same issue even after adding to .git/config. Can someone help with this?
same, Palakpatel67's suggestion worked just fine for me but I still find this solution a bit hacky
System Info
OS: Windows 10 Shell: cmd
Description
ERROR: TypeError - expected str, bytes or os.PathLike object, not NoneType I get this error while following this guide from aws , when I use "eb deploy".
If I'm supposed to raise it somewhere else please Point to it.
Here are my verbose logs