
On 12/27/2010 4:38 PM, Dave Abrahams wrote:
I still intend to produce useful results on this front in the next 120 days.
I am trying to use and install RYPPL and am having a problem. I followed the instructions found at 'http://github.com/ryppl/ryppl'. When trying to run self_test.py, I get the error that there is no module named distutils2 which I did install successfully. Besides wanting to have a fix for this problem, is there any documentation or tutorial from the end users perspective. An example of how to create a new dll project, another dll project that depends upon the first dll project and finally an executable project that depends upon them both would be great. The problem is I am not an experienced Python programmer and as such don't know the best practices. To compound matters, most web documentation is on using PIP and disutils from the PHP programmer's perspective and not for a C++ programmer. Consequently users like me need help from you C++ and Python veterans using these individual and combined technologies. P.S. I have tried using Maven successfully for C++ but what it doesn't provide [well] is the distribution of source. While it can build source and handle dependencies, it distributes by default the deliverable results. Maybe the previous example could show using PIP and disutils with C++ and then how adding RYPPL ties them all together. -------------------------------------------------------------------------- -------------------- Results of installing Distutils2 -------------------- -------------------------------------------------------------------------- C:\Python27\Scripts\pip install Distutils2 --upgrade Downloading/unpacking Distutils2 Downloading Distutils2-1.0a3.tar.gz (878Kb): 878Kb downloaded Running setup.py egg_info for package Distutils2 Installing collected packages: Distutils2 Found existing installation: Distutils2 1.0a3 Uninstalling Distutils2: Successfully uninstalled Distutils2 Running setup.py install for Distutils2 Successfully installed Distutils2 Cleaning up... ----------------------------------------------------------------------------------------------- -------------------- Results of trying to run test ryppl\test\self_test.py -------------------- ----------------------------------------------------------------------------------------------- C:\Python27\python.exe self_test.py Checking for installed prerequisites in PATH: git ... cmake ... ok Cleaning ... ok Preparing test environment ... pip install virtualenv ... ok pip install --no-index -f http://pypi.python.org/packages/source/n/nose/ nose ... ok pip install scripttest>=1.0.4 ... ok ok E ====================================================================== ERROR: Failure: ImportError (No module named distutils2) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\docume~1\jwater~1.que\locals~1\temp\tmpsoe7ht-ryppl_self_test\lib\sit e-packages\nose\loader.py", line 390, in loadTestsFromName addr.filename, addr.module) File "c:\docume~1\jwater~1.que\locals~1\temp\tmpsoe7ht-ryppl_self_test\lib\sit e-packages\nose\importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "c:\docume~1\jwater~1.que\locals~1\temp\tmpsoe7ht-ryppl_self_test\lib\sit e-packages\nose\importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "D:\Documents and Settings\JWATERLOO\My Documents\My Downloads\ryppl.org\ Source Code\ryppl\test\test_basic.py", line 16, in <module> import distutils2 ImportError: No module named distutils2 ---------------------------------------------------------------------- Ran 1 test in 0.140s FAILED (errors=1) Cleaning ... ok Traceback (most recent call last): File "self_test.py", line 130, in <module> main( sys.argv[1:] ) File "self_test.py", line 121, in main run( *test_cmd ) File "self_test.py", line 12, in run check_call(args) File "C:\Python27\lib\subprocess.py", line 504, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '(Path(u'c:\\docume~1\\jwater~1.que\\loca ls~1\\temp\\tmpsoe7ht-ryppl_self_test\\Scripts\\nosetests.EXE'), '--exe', '-w', Path(u'D:\\Documents and Settings\\JWATERLOO\\My Documents\\My Downloads\\ryppl. org\\Source Code\\ryppl\\test'))' returned non-zero exit status 1