eomeroff
eomeroff

Reputation: 9915

Git commit fails: "assertion `g_type_from_name (name) == 0' failed"

I am a beginner in Git, and I tried to do my first commit.

After command $ git commit I got the following message:

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject

Does anyone know how to solve this problem?

Added later: Now I am getting this message: "Aborting commit due to empty commit message."

My default editor is gedit.

Upvotes: 2

Views: 995

Answers (3)

mantisse_fr
mantisse_fr

Reputation: 11

I used git commit -a -m "My commit message" for now.

Cheers

Upvotes: 1

user178982
user178982

Reputation:

Try git commit -m "commit message". If this works, then maybe your problem is related to editor. Set your commit message editor to something working in terminal, like vim or nano

git config --global core.editor "nano"

and see if this works.

Upvotes: 2

VonC
VonC

Reputation: 1324567

That might not be related to git (unless you are typing the git command from a python interpretor session!)

It would more likely be related with your current OS (Ubuntu 12.04) and its interaction with one of the software installed on it:
See this Ubuntu bug 962639, which reports the same kind of error messages.
Fixes are being experimented on /usr/lib/python2.7/dist-packages/gobject/constants.py right now (April to June 2012).

Upvotes: 1

Related Questions