[tahoe-dev] unable to build on Windows Re: tahoe-dev Digest, Vol 37, Issue 23

Matthew Reinbold matthew.reinbold at voxpopdesign.com
Mon Apr 26 08:26:39 PDT 2010


Here is the output from the initial attempt to build on Windows with the 
Python 2.6.5 Windows Installer, pywin32-214.win32-py2.6.exe, on Windows XP:
  ----------------------------------------------------

C:\tahoe-lafs>python setup.py build
Downloading file:misc/dependencies/setuptools-0.6c12dev.egg
C:\tahoe-lafs\ez_setup.py:29: DeprecationWarning: the md5 module is 
deprecated;
use hashlib instead
   from md5 import md5
Not found: tahoe-deps
Not found: ../tahoe-deps

Installed c:\tahoe-lafs\setuptools_darcs-1.2.8-py2.6.egg
Searching for setuptools-trial>=0.5
Best match: setuptools-trial 0.5.2
Processing setuptools_trial-0.5.2.tar
Running setuptools_trial-0.5.2\setup.py -q bdist_egg --dist-dir 
c:\docume~1\matt
he~1\locals~1\temp\easy_install-rgjeuw\setuptools_trial-0.5.2\egg-dist-tmp-jqqpm
i

Installed c:\tahoe-lafs\setuptools_trial-0.5.2-py2.6.egg
Searching for darcsver>=1.2.0
Reading http://allmydata.org/source/tahoe/deps/tahoe-dep-sdists/
Reading http://allmydata.org/source/tahoe/deps/tahoe-dep-eggs/
Best match: darcsver 1.3.1
Downloading 
http://allmydata.org/source/tahoe/deps/tahoe-dep-sdists/darcsver-1.3
.1.tar.gz
Processing darcsver-1.3.1.tar.gz
Running darcsver-1.3.1\setup.py -q bdist_egg --dist-dir 
c:\docume~1\matthe~1\loc
als~1\temp\easy_install-dsrfmg\darcsver-1.3.1\egg-dist-tmp-b4yeaf

Installed c:\tahoe-lafs\darcsver-1.3.1-py2.6.egg
Searching for Twisted>=2.4.0
Best match: Twisted 8.2.0
Downloading 
http://allmydata.org/source/tahoe/deps/tahoe-dep-eggs/Twisted-8.2.0-
py2.6-win32.egg
Processing Twisted-8.2.0-py2.6-win32.egg
creating c:\tahoe-lafs\Twisted-8.2.0-py2.6-win32.egg
Extracting Twisted-8.2.0-py2.6-win32.egg to c:\tahoe-lafs
c:\tahoe-lafs\Twisted-8.2.0-py2.6-win32.egg\twisted\web\microdom.py:181: 
SyntaxW
arning: assertion is always true, perhaps remove parentheses?
   assert (oldChild.parentNode is self,

Installed c:\tahoe-lafs\twisted-8.2.0-py2.6-win32.egg
Searching for zope.interface
Best match: zope.interface 3.5.2
Downloading 
http://allmydata.org/source/tahoe/deps/tahoe-dep-sdists/zope.interfa
ce-3.5.2.tar.gz
Processing zope.interface-3.5.2.tar.gz
Running zope.interface-3.5.2\setup.py -q bdist_egg --dist-dir 
c:\docume~1\matthe
~1\locals~1\temp\easy_install-xwcwrb\zope.interface-3.5.2\egg-dist-tmp-jf07su
********************************************************************************

WARNING:

         An optional code optimization (C extension) could not be compiled.

         Optimizations for this package will not be available!

Unable to find vcvarsall.bat
********************************************************************************


Installed c:\tahoe-lafs\zope.interface-3.5.2-py2.6-win32.egg
running darcsver
running develop
Not found: tahoe-deps
Not found: ../tahoe-deps
running egg_info
writing requirements to src\allmydata_tahoe.egg-info\requires.txt
writing src\allmydata_tahoe.egg-info\PKG-INFO
writing top-level names to src\allmydata_tahoe.egg-info\top_level.txt
writing dependency_links to 
src\allmydata_tahoe.egg-info\dependency_links.txt
writing entry points to src\allmydata_tahoe.egg-info\entry_points.txt
reading manifest file 'src\allmydata_tahoe.egg-info\SOURCES.txt'
writing manifest file 'src\allmydata_tahoe.egg-info\SOURCES.txt'
running build_ext
Creating c:\tahoe-lafs\support\lib\site-packages\site.py
Processing setuptools-0.6c12dev.egg
creating c:\tahoe-lafs\support\lib\site-packages\setuptools-0.6c12dev.egg
Extracting setuptools-0.6c12dev.egg to 
c:\tahoe-lafs\support\lib\site-packages
Adding setuptools 0.6c12dev to easy-install.pth file
Installing easy_install-script.py script to support/Scripts
Installing easy_install.exe script to support/Scripts
Installing easy_install-2.5-script.py script to support/Scripts
Installing easy_install-2.5.exe script to support/Scripts

Installed c:\tahoe-lafs\support\lib\site-packages\setuptools-0.6c12dev.egg
Creating 
c:\tahoe-lafs\support\lib\site-packages\allmydata-tahoe.egg-link (link
to src)
Adding allmydata-tahoe 1.6.1 to easy-install.pth file
Installing tahoe-script.py script to support/Scripts
Installing tahoe.exe script to support/Scripts

Installed c:\tahoe-lafs\src
Processing dependencies for allmydata-tahoe==1.6.1
Searching for pycryptopp>=0.5.15
Reading http://allmydata.org/source/tahoe/deps/tahoe-dep-sdists/
Reading http://allmydata.org/source/tahoe/deps/tahoe-dep-eggs/
Best match: pycryptopp 0.5.17-r683
Downloading 
http://allmydata.org/source/tahoe/deps/tahoe-dep-eggs/pycryptopp-0.5
.17_r683-py2.6-win32.egg
Processing pycryptopp-0.5.17_r683-py2.6-win32.egg
creating 
c:\tahoe-lafs\support\lib\site-packages\pycryptopp-0.5.17_r683-py2.6-wi
n32.egg
Extracting pycryptopp-0.5.17_r683-py2.6-win32.egg to 
c:\tahoe-lafs\support\lib\s
ite-packages
Adding pycryptopp 0.5.17-r683 to easy-install.pth file

Installed 
c:\tahoe-lafs\support\lib\site-packages\pycryptopp-0.5.17_r683-py2.6-w
in32.egg
Searching for Nevow>=0.6.0
Best match: Nevow 0.9.33
Downloading 
http://allmydata.org/source/tahoe/deps/tahoe-dep-sdists/Nevow-0.9.33
.tar.gz
Processing Nevow-0.9.33.tar.gz
Running Nevow-0.9.33\setup.py -q bdist_egg --dist-dir 
c:\docume~1\matthe~1\local
s~1\temp\easy_install-5xylxf\Nevow-0.9.33\egg-dist-tmp-5bmvfc
c:\docume~1\matthe~1\locals~1\temp\easy_install-5xylxf\Nevow-0.9.33\formless\ann
otate.py:730: DeprecationWarning: object.__new__() takes no parameters
   rv = cls = InterfaceClass.__new__(cls, name, bases, dct)
c:\tahoe-lafs\twisted-8.2.0-py2.6-win32.egg\twisted\python\filepath.py:12: 
Depre
cationWarning: the sha module is deprecated; use the hashlib module instead
   import sha
c:\docume~1\matthe~1\locals~1\temp\easy_install-5xylxf\Nevow-0.9.33\nevow\testut
il.py:7: DeprecationWarning: The popen2 module is deprecated.  Use the 
subproces
s module.
   from popen2 import Popen3
package init file 'twisted\plugins\__init__.py' not found (or not a 
regular file
)
Unable to execute darcs -- if you are building a package with 'setup.py 
sdist',
'setup.py bdist_egg', or other package-building commands, then the 
resulting pac
kage might be missing some files.  If you are not building a package 
then you ca
n ignore this warning.
warning: no files found matching 'examples\pastebin\data'
no previously-included directories found matching 'doc\html\*.html'
zip_safe flag not set; analyzing archive contents...
nevow.athena: module references __file__
nevow.jsutil: module references __file__
nevow.util: module references __file__
nevow.livetrial.runner: module references __file__
nevow.plugins.nevow_package: module references __file__
nevow.plugins.__init__: module references __path__
nevow.test.test_athena: module references __file__
nevow.test.test_howtolistings: module references __file__
nevow.test.test_rend: module references __file__
nevow.test.test_testutil: module references __file__
Adding nevow 0.9.33-r17222 to easy-install.pth file
Installing nevow-xmlgettext script to support/Scripts
Installing nit script to support/Scripts

Installed 
c:\tahoe-lafs\support\lib\site-packages\nevow-0.9.33_r17222-py2.6.egg
Searching for foolscap[secure_connections]>=0.4.1
Best match: foolscap 0.4.2
Downloading 
http://allmydata.org/source/tahoe/deps/tahoe-dep-sdists/foolscap-0.4
.2.tar.gz
Processing foolscap-0.4.2.tar.gz
Running foolscap-0.4.2\setup.py -q bdist_egg --dist-dir 
c:\docume~1\matthe~1\loc
als~1\temp\easy_install-3wrujw\foolscap-0.4.2\egg-dist-tmp-lptm_v
zip_safe flag not set; analyzing archive contents...
Adding foolscap 0.4.2 to easy-install.pth file
Installing flappclient script to support/Scripts
Installing flappserver script to support/Scripts
Installing flogtool script to support/Scripts

Installed c:\tahoe-lafs\support\lib\site-packages\foolscap-0.4.2-py2.6.egg
Searching for simplejson>=1.4
Best match: simplejson 2.0.9
Downloading 
http://allmydata.org/source/tahoe/deps/tahoe-dep-sdists/simplejson-2
.0.9.tar.gz
Processing simplejson-2.0.9.tar.gz
Running simplejson-2.0.9\setup.py -q bdist_egg --dist-dir 
c:\docume~1\matthe~1\l
ocals~1\temp\easy_install-4uublm\simplejson-2.0.9\egg-dist-tmp-wkuv7n
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
I'm retrying the build without the C extension now.
***************************************************************************
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
***************************************************************************
Adding simplejson 2.0.9 to easy-install.pth file

Installed c:\tahoe-lafs\support\lib\site-packages\simplejson-2.0.9-py2.6.egg
Searching for zfec>=1.1.0
Best match: zfec 1.4.5
Downloading 
http://allmydata.org/source/tahoe/deps/tahoe-dep-sdists/zfec-1.4.5.t
ar.gz
Processing zfec-1.4.5.tar.gz
Running zfec-1.4.5\setup.py -q bdist_egg --dist-dir 
c:\docume~1\matthe~1\locals~
1\temp\easy_install-mtglro\zfec-1.4.5\egg-dist-tmp-flqypn
error: Setup script exited with error: Unable to find vcvarsall.bat

C:\tahoe-lafs>
  -----------------------------------------------------




On 4/26/2010 12:09 AM, Zooko O'Whielacronx wrote:
> On Sun, Apr 25, 2010 at 11:25 PM, Matthew Reinbold
> <matthew.reinbold at voxpopdesign.com>  wrote:
>    
>> First time poster. I came upon the Tahoe project a couple of weeks ago and
>> thought it would be an ideal fit for sharing sensitive documents via the
>> distributed company I run.
>>      
> Welcome! Thank you for the bug report!
>
>    
>> I'm on Windows XP and am current with all updates. I followed the setup
>> instructions for Windows found here (however, I used the latest versions for
>> all available items rather than the specific version numbers):
>> http://allmydata.org/source/tahoe-lafs/trunk/docs/quickstart.html
>>      
> So, you chose the latest versions of Python, pywin32, and Tahoe-LAFS,
> right? What versions of those three did you get, and were there any
> other version choices that you made?
>
>    
>> After downloading and unzipping all items I attempted to run:
>> python setup.py build
>>
>> That downloaded several "eggs" (not familiar with Python) but seemed to fail
>> with the error "Unable to find vcvarsall.bat".
>>      
> I think this means that (a) there is a dependency which is not present
> in eggy form for your CPU architecture, operating system, and version
> of Python, and (b) the fallback attempt to build that dependency from
> source also failed. Let's find out which dependency it was. Please
> send the entire output from the call to "python setup.py build" which
> ended with that error.
>
> See, the Tahoe-LAFS setup.cfg file [1] has this URL in it:
>
> http://allmydata.org/source/tahoe/deps/tahoe-dep-eggs/
>
> At that URL the build system will try to find eggs of all the
> dependencies. (It will also look elsewhere, starting from the Python
> Package Index -- http://pypi.python.org .)
>
> I *think* that what went wrong was that some dependency is missing
> from that list for your platform and version of Python.
>
>    
>> Further Googling turned up detailed, expanded number of configuration
>> details:
>> http://www.mail-archive.com/tahoe-dev@allmydata.org/msg01587.html
>>
>> Following that, however, I seemed to have regressed. The error I now get:
>>      
> ...
>    
>> ConfigParser.MissingSectionHeaderError: File contains no section headers.
>> file: C:\Python2-6-2\lib\distutils\distutils.cfg, line: 1
>> '{{{\n'
>>
>> Did I do something wrong to copy and paste the contents of the distutils.cfg
>> shown on that final web page?
>>      
> Yes you copied and pasted it wrong. If you are following those
> instructions from that mailing list message in order to build
> dependencies yourself from source, then your distutils.cfg file should
> have just the two lines "[build]" and "compiler=mingw32", without the
> "{{{" or the "}}}"
>
> However, as explained above, you shouldn't "have to" build
> dependencies yourself from source, and I would like to understand why
> your build processes are going down that path.
>
>    
>>   The page is from last summer - is there an
>> easy way of getting Tahoe running on a Windows machine?
>>      
> The easiest way is to get some nice Windows hacker to provide prebuilt
> eggs of all the dependencies for you. The second easiest way is to
> configure your system to use a C/C++ compiler so that it will build
> eggs of the dependencies from source. (And hey, if you do it that way
> maybe you could share the resulting eggs so that the next person to
> come along can do it the easiest way. :-))
>
> In any case, please send us the entire output from the build which
> ended with "Unable to find vcvarsall.bat" so that we can figure out
> what went wrong.
>
>    
>> One of the biggest needs is to have the install process as simple as
>> possible if I am going to get the principals on board to using Tahoe. If
>> installation on a Linux based system that much easier would it make sense to
>> create a VM with Tahoe already installed and just have them run that image
>> on their machine in something like Virtual Box?
>>      
> It is very easy to install Tahoe-LAFS on Ubuntu, because you just do
> "sudo apt-get install tahoe-lafs". However, whether running it inside
> a virtual machine would serve your needs depends on what you need to
> do with it.
>
> Regards,
>
> Zooko
>
> [1] http://tahoe-lafs.org/trac/tahoe-lafs/browser/setup.cfg
>
>    


More information about the tahoe-dev mailing list