Open kangjinkim opened 10 years ago
I've never tried on windows, but it seems that you GitPython is either at the wrong version or it's not the same GitPython
Here is my version:
$ pip freeze | grep GitPython
GitPython==0.3.2.RC1
you can try these:
$ ipython
import git
In [6]: git.__version__
Out[6]: '0.3.2 RC1'
In [7]: git.Repo.init
Out[7]: <bound method type.init of <class 'git.repo.base.Repo'>>
Yes, you are right. Then, how should I deal with? Here is my result.
$ python Python 2.7.3 (default, Dec 18 2012, 13:50:09) [GCC 4.5.3] on cygwin Type "help", "copyright", "credits" or "license" for more information.
import git git.version '0.1.7' git.Repo.init Traceback (most recent call last): File "
", line 1, in AttributeError: type object 'Repo' has no attribute 'init'
you should use virtualenv. For example look at this: http://www.slideshare.net/larrycai/python-virtualenv-pipin90mins
and then install the dependencies you need inside the virtualenv
May I hook in here, per default pip installs the 0.1.7 version of GitPython as the dependency in the setup.py is "GitPython" without a version. The wiki only runs with a newer version, currently this is 0.3.2.RC1, but you have to install it manually (pip install GitPython==0.3.2.RC1).
Hi, I just installed attowiki in my cygwin, and had the following results while I am launching it. Please, let me know how I can resolve this.
$ attowiki cygwin warning: MS-DOS style path detected: C:\Program Files\Adobe\Acrobat\Resource\CMap Preferred POSIX equivalent is: /cygdrive/c/Program Files/Adobe/Acrobat/Resource/CMap CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames Traceback (most recent call last): File "/usr/bin/attowiki", line 9, in
load_entry_point('attowiki==v0.5.1', 'console_scripts', 'attowiki')()
File "/usr/lib/python2.7/site-packages/attowiki/main.py", line 78, in main
Repo.init()
AttributeError: type object 'Repo' has no attribute 'init'