[smc-discuss] pypdf build system and github/non-free service (was Re: Project: PyPDFLib)

Baiju M baiju.m.mail at gmail.com
Mon Oct 11 02:30:31 PDT 2010


On Mon, Oct 11, 2010 at 2:12 PM, Praveen A <pravi.a at gmail.com> wrote:
> 2010/10/11 Baiju M <baiju.m.mail at gmail.com>:
>> Can you replace the bootstrap.py with this and try:
>> http://svn.zope.org/*checkout*/zc.buildout/tags/1.4.4/bootstrap/bootstrap.py?rev=115839
>>
>> $ rm bootstrap.py
>> $ wget -c http://svn.zope.org/*checkout*/zc.buildout/tags/1.4.4/bootstrap/bootstrap.py
>> $ python bootstrap.py
>
> pravi at savannah:/media/forge/pypdflib$ python bootstrap.py
> install_dir /tmp/tmpMgATHx
> Download error: timed out -- Some packages may not be found!
> Download error: timed out -- Some packages may not be found!
> Download error: timed out -- Some packages may not be found!
> Download error: timed out -- Some packages may not be found!
> Download error: timed out -- Some packages may not be found!
> Download error: timed out -- Some packages may not be found!
> Generated script '/media/forge/pypdflib/bin/buildout'.
>
> It seemed to work, even though Download error is shown.
>
> How do I test it? I tried the following command
>
> pravi at savannah:/media/forge/pypdflib/tests$ python scripts_test.py
> Traceback (most recent call last):
>  File "scripts_test.py", line 99, in <module>
>    para_file_tamil = open("arabic.txt")
> IOError: [Errno 2] No such file or directory: 'arabic.txt'

Please add "interpreter = py" option to "[lib]" section/part in
"buildout.cfg" file.
(It looks like it wrongly added inside "[buildout]" section.

[lib]
recipe = zc.recipe.egg
interpreter = py
eggs = pypdflib
       z3c.evalexception>=2.0

Then run "./bin/buildout" command (You can re-run this command whenever
you change anything inside "buildout.cfg" file)

You can execute scripts using the custom interpreter inside bin named "py"
like this:

  $ ./bin/buildout
  $ ./bin/py scripts_test.py

--
Baiju M



More information about the discuss mailing list