First steps!!!

256 views
Skip to first unread message

Alexander Lazarevic

unread,
Sep 2, 2017, 10:40:20 AM9/2/17
to Zipline Python Opensource Backtester

Hey guys,

im new to Zipline and have some install questions.

After i update my rasperry and install pip, python, i tried to install zipline and i get this output.

pi@pi:~ $ pip install zipline
Downloading/unpacking zipline
 
Downloading zipline-1.1.1.tar.gz (640kB): 640kB downloaded
 
Running setup.py (path:/tmp/pip-build-wo0KU9/zipline/setup.py) egg_info for
   
Unable to find pgen, not compiling formal grammar.
    warning
: no files found matching 'Doc/*'
    warning
: no files found matching '*.pyx' under directory 'Cython/Debugger/
    warning: no files found matching '
*.pxd' under directory 'Cython/Debugger/
    warning
: no files found matching '*.pxd' under directory 'Cython/Utility'
   
/tmp/easy_install-VTmOyz/Cython-0.26.1/Cython/Plex/Scanners.c:4:20: fatal : Datei oder Verzeichnis nicht gefunden
     
#include "Python.h"
                       
^
    compilation terminated
.
   
Traceback (most recent call last):
     
File "<string>", line 17, in <module>
     
File "/tmp/pip-build-wo0KU9/zipline/setup.py", line 317, in <module>
       
**conditional_arguments
     
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution
= dist = klass(attrs)
     
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 262, in
       
self.fetch_build_eggs(attrs['setup_requires'])
     
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 287, ings
        replace_conflicting
=True,
     
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 631, in r
        dist
= best[req.key] = env.best_match(req, ws, installer)
     
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 874, in b
       
return self.obtain(req, installer)
     
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 886, in o
       
return installer(requirement)
     
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 338, ing
       
return cmd.easy_install(req)
     
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.pn easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "
/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.pn install_item
        dists
= self.install_eggs(spec, download, tmpdir)
     
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.pn install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "
/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.pin build_and_install
       
self.run_setup(setup_script, setup_base, args)
     
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.pin run_setup
        raise DistutilsError("
Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: command 'bihf-gcc' failed with exit status 1
    Complete output from command python setup.py egg_info:
    Unable to find pgen, not compiling formal grammar.

warning: no files found matching 'Doc/*'

warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Test

warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Test

warning: no files found matching '*.pxd' under directory 'Cython/Utility'

/tmp/easy_install-VTmOyz/Cython-0.26.1/Cython/Plex/Scanners.c:4:20: fatal errotei oder Verzeichnis nicht gefunden

 #include "
Python.h"

                    ^

compilation terminated.

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "
/tmp/pip-build-wo0KU9/zipline/setup.py", line 317, in <module>

    **conditional_arguments

  File "
/usr/lib/python2.7/distutils/core.py", line 111, in setup

    _setup_distribution = dist = klass(attrs)

  File "
/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 262, in __i

    self.fetch_build_eggs(attrs['setup_requires'])

  File "
/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 287, in fet

    replace_conflicting=True,

  File "
/usr/lib/python2.7/dist-packages/pkg_resources.py", line 631, in resol

    dist = best[req.key] = env.best_match(req, ws, installer)

  File "
/usr/lib/python2.7/dist-packages/pkg_resources.py", line 874, in best_

    return self.obtain(req, installer)

  File "
/usr/lib/python2.7/dist-packages/pkg_resources.py", line 886, in obtai

    return installer(requirement)

  File "
/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 338, in fet

    return cmd.easy_install(req)

  File "
/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", sy_install

    return self.install_item(spec, dist.location, tmpdir, deps)

  File "
/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", stall_item

    dists = self.install_eggs(spec, download, tmpdir)

  File "
/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", stall_eggs

    return self.build_and_install(setup_script, setup_base)

  File "
/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", uild_and_install

    self.run_setup(setup_script, setup_base, args)

  File "
/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", un_setup

    raise DistutilsError("
Setup script exited with %s" % (v.args[0],))

distutils.errors.DistutilsError: Setup script exited with error: command 'arm--gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-wo
Storing debug log for failure in /home/pi/.pip/pip.log

What should i do ?

best regards
Alex

Message has been deleted

Alexander Lazarevic

unread,
Sep 2, 2017, 11:14:10 AM9/2/17
to Zipline Python Opensource Backtester
I've installed followed depencys:

$ sudo apt-get install libatlas-base-dev python-dev gfortran pkg-config libfreetype6-dev

Now when i try to install zipline i get following message:


pi@pi:~ $ pip install zipline
Downloading/unpacking zipline
 
Downloading zipline-1.1.1.tar.gz (640kB): 640kB
downloaded
 
Running setup.py (path:/tmp/pip-build-KDYIdv/zipline/setup.py) egg_info for package zipline
 
Unable to find pgen, not compiling formal grammar.

 warning
: no files found matching 'Doc/*'

 warning
: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
 warning
: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'

Brendon

unread,
Sep 3, 2017, 5:12:25 AM9/3/17
to Zipline Python Opensource Backtester
Have you installed Cython?

pip install Cython

I don't know why there is no mention of Cython needing to be installed in the installation requirements. But it is required.

Regards.

vikas soni

unread,
Sep 10, 2017, 10:11:21 PM9/10/17
to Zipline Python Opensource Backtester
u can try with Python 3.4 if given method of yours is not working.
Reply all
Reply to author
Forward
0 new messages