tags:

views:

1986

answers:

5

Hello.

I'm trying to install dulwich for bzr-git. now, I use Python 2.6 based bazaar. (I use msys.)

My steps are as follows:

$ bzr branch lp:dulwich
$ cd dulwich/
$ python setup.py install
running install
running build
running build_py
creating build

:
:

creating build\lib.win32-2.6\dulwich\tests
:
:
running build_ext
building 'dulwich._objects' extension
error: Unable to find vcvarsall.bat

If you know any hints, tell me please. Thanks. Okada.

A: 

Looks like its looking for VC compilers, so you could try to mention compiler type with -c mingw32, since you have msys

python setup.py install -c mingw32
S.Mark
Thanks for your help.But I cannnot install it yet.$ python setup.py install -c mingw32usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --helperror: invalid command 'mingw32'Next, I installed ".NET Framework SDK Version 1.1".Then, I tried this command;$ python setup.py build --compiler=mingw32 installAnd error code was ;error: command 'gcc' failed with exit status 1If you know any suggestions, tell me please.ThanksOkada
okada
A: 

Thanks for your help. But I cannnot install it yet.

$ python setup.py install -c mingw32 usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: invalid command 'mingw32'

Next, I installed ".NET Framework SDK Version 1.1". Then, I tried this command; $ python setup.py build --compiler=mingw32 install And error code was ; error: command 'gcc' failed with exit status 1

If you know any suggestions, tell me please.

Thanks Okada

okada
+1  A: 

Hello.

I could install it.

python 2.6 uses visual basic 2008, but my version is 2005. So, I installed 2008.

At mingw32 I use this command; make all And I tried install at command pronpt, the command is; python setup.py install

Thanks a lot.

Okada

okada
+1  A: 

I found the solution. I had the exact same problem, and error, installing 'amara'. I had mingw32 installed, but distutils needed to be configured.

  1. I have python 2.6 that was already installed.
  2. Installed mingw32 to C:\programs\mingw\
  3. Add mingw32's bin directory to your environment variable: append PATH with c:\programs\MinGW\bin;
  4. Edit ( create if not existing ) distutils.cfg located at C:\Python26\Lib\distutils\distutils.cfg to be:

    [build]
    compiler=mingw32

  5. Now run "easy_install.exe amara".

( Make sure environment is set by opening a new cmd.exe . Depending on OS, you might have to reboot for it to take effect? )

monkey
'[build]' and 'compiler=mingw32' should be on two separate lines. The markup seems to have messed it slightly.
Tartley
This works great for Python2.6, but for some reason I can't get it to work on Python2.7. It works if I downloading my package source and install using 'python setup.py install --compile=mingw32', but for some reason using easy_install or pip still tries to find vcvarsall.
Tartley