On 3/16/2013 12:20 AM, ping wrote:
On 3/14/2013 6:25 PM, Christian Goltz wrote:
Hey Stuart,
did you already add shaape to the plugins page of asciidoc? I didn't find it there yet. Would be cool to see it there as I currently need some more input from people using the tool to find some more bugs. I appended the current readme with some examples as a little appetizer that shows the features of the last release, including, transparency and multiple layers of polygons.

hi,
I'm testing it and ran into some issues:


ping@640g-laptop:~$ git clone https://github.com/christiangoltz/shaape.git
Cloning into 'shaape'...
remote: Counting objects: 1412, done.
remote: Compressing objects: 100% (626/626), done.
remote: Total 1412 (delta 908), reused 1268 (delta 764)
Receiving objects: 100% (1412/1412), 6.81 MiB | 4.69 MiB/s, done.
Resolving deltas: 100% (908/908), done.

ping@640g-laptop:~/shaape$ asciidoc --filter install build/shaape.zip
asciidoc: filter is already installed: /home/ping/.asciidoc/filters/shaape


file: temp.txt

= shaape

ping@640g-laptop:~/shaape$ asciidoc --filter install build/shaape.zip
asciidoc: filter is already installed: /home/ping/.asciidoc/filters/shaape


[shaape]
---------------------------------------------------------------------
    +---+   v      <     v
 -->|   |    \    /     >+<
 -->+   |     \  /       ^
    |   |     ^ >
    +---+
---------------------------------------------------------------------


asciidoc temp.txt

Traceback (most recent call last):
  File "/usr/local/bin/shaape", line 5, in <module>
    pkg_resources.run_script('shaape==1.0.0', 'shaape')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/EGG-INFO/scripts/shaape", line 3, in <module>
    import shaape.run
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/shaape/run.py", line 3, in <module>
    from nameparser import NameParser
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/shaape/nameparser.py", line 1, in <module>
    from parser import Parser
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/shaape/parser.py", line 1, in <module>
    from drawable import Drawable
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/shaape/drawable.py", line 3, in <module>
    import networkx as nx
ImportError: No module named networkx
asciidoc: WARNING: <stdin>: line 13: filter non-zero exit code: shaape -o "/home/ping/Dropbox/temp-transfer/temp__1.png" --hash -: returned 1 asciidoc: WARNING: <stdin>: line 13: no output from filter: shaape -o "/home/ping/Dropbox/temp-transfer/temp__1.png" --hash -
sh: /usr/local/etc/asciidoc/temp__1.png: No such file or directory
asciidoc: WARNING: <stdin>: line 13: {sys:"/usr/bin/python" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "/usr/local/etc/asciidoc/temp__1.png"}: non-zero exit statu
s





ping@640g-laptop:~$ sudo easy_install shaape
[sudo] password for ping:
Searching for shaape
Reading http://pypi.python.org/simple/shaape/
Reading http://github.com/christiangoltz/shaape
Best match: shaape 1.0.0
Downloading http://pypi.python.org/packages/source/s/shaape/shaape-1.0.0.tar.gz#md5=afa9234128c733c7551f8b694ccbd0d3
Processing shaape-1.0.0.tar.gz
Running shaape-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zXbbEW/shaape-1.0.0/egg-dist-tmp-FONfI_
zip_safe flag not set; analyzing archive contents...
Adding shaape 1.0.0 to easy-install.pth file
Installing shaape script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg
Processing dependencies for shaape
Finished processing dependencies for shaape
ping@640g-laptop:~$
ping@640g-laptop:~$
ping@640g-laptop:~$ shaape
Traceback (most recent call last):
  File "/usr/local/bin/shaape", line 5, in <module>
    pkg_resources.run_script('shaape==1.0.0', 'shaape')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/EGG-INFO/scripts/shaape", line 3, in <module>
    import shaape.run
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/shaape/run.py", line 3, in <module>
    from nameparser import NameParser
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/shaape/nameparser.py", line 1, in <module>
    from parser import Parser
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/shaape/parser.py", line 1, in <module>
    from drawable import Drawable
File "/usr/local/lib/python2.7/dist-packages/shaape-1.0.0-py2.7.egg/shaape/drawable.py", line 3, in <module>
    import networkx as nx
ImportError: No module named networkx
ping@640g-laptop:~$
ping@640g-laptop:~$

looks I ran into endless python dependency hole ...

ping@640g-laptop:~$ sudo easy_install scipy
Searching for scipy
Reading http://pypi.python.org/simple/scipy/
Reading http://www.scipy.org
Reading http://sourceforge.net/project/showfiles.php?group_id=27747&package_id=19531
Reading http://new.scipy.org/Wiki/Download
Best match: scipy 0.11.0
Downloading http://pypi.python.org/packages/source/s/scipy/scipy-0.11.0.zip#md5=40b700ddde9ddab643b640fff7a9d753
Processing scipy-0.11.0.zip
Running scipy-0.11.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-muwhDM/scipy-0.11.0/egg-dist-tmp-HFpw2A
Running from scipy source directory.
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:1423: UserWarning:
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:1432: UserWarning:
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
  warnings.warn(BlasNotFoundError.__doc__)
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:1435: UserWarning:
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.
  warnings.warn(BlasSrcNotFoundError.__doc__)
error:
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to