Installing LFS 0.7 on windows 7 for development

272 views
Skip to first unread message

beefybailey

unread,
May 14, 2012, 6:18:17 PM5/14/12
to djang...@googlegroups.com
Hey Guys,
Thanks for all your help with the post on finding a new host.

I am fairly new to Django and would like to play around with it a bit more and maybe contribute to the core so i am trying to work out how to install on Windows.
I looked in the group history and none of the previous questions seemed to have got anywhere, can anyone point me in the direction of a guide for setting this up?

Thanks in advance,
Mark

Kai Diefenbach

unread,
May 15, 2012, 6:23:07 AM5/15/12
to djang...@googlegroups.com
Hi,

On Tue, May 15, 2012 at 12:18 AM, beefybailey <mark....@gmx.co.uk> wrote:
I am fairly new to Django and would like to play around with it a bit more and maybe contribute to the core so i am trying to work out how to install on Windows.
I looked in the group history and none of the previous questions seemed to have got anywhere, can anyone point me in the direction of a guide for setting this up?

Have you tried the installation with the default installer: 


If yes, which error(s) are you getting?

Regards
Kai

beefybailey

unread,
May 15, 2012, 8:10:03 AM5/15/12
to djang...@googlegroups.com
Kai,
Thanks for that, i thought for some reason these instructions wouldnt work on windows, but i understand how you can now.
I have installed python2.7 and added to path etc, installed mysql.

When i run the bin\buildout.exe i get this error ...

error: Setup script exited with error: Unable to find vcvarsall.bat
An error occurred when trying to install Pillow 1.7.5. Look above this message f
or any errors that were output by easy_install.
While:
  Installing django.
  Getting distribution for 'Pillow==1.7.5'.
Error: Couldn't install: Pillow 1.7.5

And i cant proceed to the next step of running the syncdb as django isnt recognised.

Any advice?
Thanks again.
Mark

beefybailey

unread,
May 15, 2012, 1:10:51 PM5/15/12
to djang...@googlegroups.com
Ok, i managed to work out that the " vcvarsall.bat" error was because i had VS 2010 Express installed and not 2008 Express :)

The problem is i am now getting this problem when it runs easy_install ...

Getting distribution for 'Pillow==1.7.5'.
Running easy_install:
C:\Devsoftware\Python27\python.exe "-S" "-c" ""import sys,os;p = sys.path[:];import site;sys.path[:] = p;[sys.modules.pop(k) for k, v in sys.modules.items() if hasattr(v, '__path__') and len(v.__path_
_)==1 and not os.path.exists(os.path.join(v.__path__[0],'__init__.py'))];from setuptools.command.easy_install import main;main()"" "-mUNxd" ""C:\Sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installe
r\eggs\tmpgrjqfd"" "-q" ""c:\users\markb\appdata\local\temp\tmphc0muuget_dist\Pillow-1.7.5.zip""
path=c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg

warning: no previously-included files found matching '.hgignore'
warning: no previously-included files found matching '.hgtags'
warning: no previously-included files found matching 'BUILDME.bat'
warning: no previously-included files found matching 'make-manifest.py'
warning: no previously-included files found matching 'SHIP'
warning: no previously-included files found matching 'SHIP.bat'
warning: no previously-included files matching '*' found under directory 'Tests'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 1712, in main
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 1700, in with_ei_usage
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 1716, in <lambda>
  File "C:\Devsoftware\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Devsoftware\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Devsoftware\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 211, in run
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 427, in easy_install
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 476, in install_item
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 655, in install_eggs
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 930, in build_and_install
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 919, in run_setup
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\sandbox.py", line 62, in run_setup
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\sandbox.py", line 105, in run
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\sandbox.py", line 64, in <lambda>
  File "setup.py", line 469, in <module>
  File "C:\Devsoftware\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Devsoftware\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Devsoftware\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\bdist_egg.py", line 175, in run
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\bdist_egg.py", line 161, in call_command
  File "C:\Devsoftware\Python27\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "C:\Devsoftware\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "c:\sandboxes\x_lfs\django-lfs-installer-0.7.3\lfs-installer\eggs\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\install_lib.py", line 20, in run
  File "C:\Devsoftware\Python27\lib\distutils\command\install_lib.py", line 111, in build
    self.run_command('build_ext')
  File "C:\Devsoftware\Python27\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "C:\Devsoftware\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Devsoftware\Python27\lib\distutils\command\build_ext.py", line 339, in run
    self.build_extensions()
  File "setup.py", line 342, in build_extensions
  File "C:\Devsoftware\Python27\lib\distutils\command\build_ext.py", line 448, in build_extensions
    self.build_extension(ext)
  File "C:\Devsoftware\Python27\lib\distutils\command\build_ext.py", line 498, in build_extension
    depends=ext.depends)
  File "C:\Devsoftware\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
    self.initialize()
  File "C:\Devsoftware\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
    vc_env = query_vcvarsall(VERSION, plat_spec)
  File "C:\Devsoftware\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
    raise ValueError(str(list(result.keys())))
ValueError: [u'path']
An error occurred when trying to install Pillow 1.7.5. Look above this message for any errors that were output by easy_install.
While:
  Installing django.
  Getting distribution for 'Pillow==1.7.5'.
Error: Couldn't install: Pillow 1.7.5

------------------------------------------------------------------------

Anyone got any suggestions or has anyone managed to get it working on windows?

Thanks,
Mark

Kai Diefenbach

unread,
May 16, 2012, 3:45:48 AM5/16/12
to django-lfs
Hi,

On 15 Mai, 19:10, beefybailey <mark.bai...@gmx.co.uk> wrote:
> Error: Couldn't install: Pillow 1.7.5

I would try to install PIL with the Windows installer:

http://www.pythonware.com/products/pil/

You might have to remove the Pillow from the django-lfs dependencies
as well.

Kai
Reply all
Reply to author
Forward
0 new messages