njr0 / fish Goto Github PK
View Code? Open in Web Editor NEWThe Fluidinfo shell; a command line for Fluidinfo
Home Page: http://fluiddb.fluidinfo.com/about/fish/njr/index.html
License: MIT License
The Fluidinfo shell; a command line for Fluidinfo
Home Page: http://fluiddb.fluidinfo.com/about/fish/njr/index.html
License: MIT License
Sorry to file another issue, but I have abouttag installed on python 2.6 on OS X, and just installed your new fish 4.34 commit. I get the following when I attempt to query an about tag with fish. Note that current versions of fish, abouttag, requests, and httplib2 are present in the site-packages directory after seemingly successful installations using each package's setup.py.
Do I need to do something to make fish use abouttag that isn't mentioned in documentation?
bash-3.2$ cd /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
bash-3.2$ ls
README easy-install.pth gdata-2.0.10-py2.6.egg-info httplib2-0.7.4-py2.6.egg-info requests setuptools-0.6c11-py2.6.egg
abouttag fish googlecl numpy requests-0.11.1-py2.6.egg-info setuptools.pth
abouttag-0.7-py2.6.egg-info fish-4.34-py2.6.egg-info googlecl-0.9.5-py2.6.egg-info numpy-1.4.1-py2.6.egg-info scipy
atom gdata httplib2 pip-1.1-py2.6.egg scipy-0.7.2-py2.6.egg-info
bash-3.2$ fish about /mmadsensji
Fish failure:
You need the abouttag library to use the abouttag command.
This is available from http://github.com/njr0/abouttag.
This is probably a newbie error, but in running fish from a vanilla git clone + credentials, I get a 404 error reported:
This is fish version 4.29.
Synchronizing . . . Fish failure:
Bad status 404 (expected 200)
synchronized.
> ```
> ```
Environment is OS X Lion, X11, Python 2.7.1, fish github commit "3396f4b3585bcda6e8712638920496c2c7ac4221
".
Similar error obtains when running fish test:
Traceback (most recent call last):
File "/Users/rodrigo/workspace/fish/testfish.py", line 96, in testValuesAPISetGet
db.tag_by_query(query, tagsToSet)
File "/Users/rodrigo/workspace/fish/fishlib.py", line 1086, in tag_by_query
(v, r) = self.call(u'PUT', u'/values', strHash, {u'query': query})
File "/Users/rodrigo/workspace/fish/fishlib.py", line 518, in call
% (len(url), url))
Exception: URL Fetch failure (URL len 104): http://fluiddb.fluidinfo.com/values?query=fluiddb%2Fabout+%3D+%22%CE%94%CE%91%CE%94%CE%93%CE%91%CE%94%22
Ran 24 tests in 40.026s
I'm not seeing a setup.py in the source repository in the latest version, but the commit message for 4.32 suggests one should now exist.....?
In the latest version of Fish, I can use the -f flag to upload text files as the content of tags, but I can't get it to work with images. I tried to follow the example code as closely as possible.
The following command works:
fish tag -f 'r&s records' comment=randscomment.txt
But these all fail:
fish tag -f -M image/gif 'r&s records' image=randslogo.gif
fish tag -f -M image/jpg 'r&s records' image=randslogo.jpg
fish tag -f -M image/png 'r&s records' image=randslogo.png
The output is:
'Fish failure:'
'ascii' codec can't decode byte 0x89 in position 0: ordinal not in range(128)
It doesn't matter whether I specify the MIME type or not.
I'm using bash and Python 2.7.2 in OS X 10.7, if that matters.
Thanks in advance for looking into this.
Dear Nicholas,
I have Python 3.3.0:
C:\Documents and Settings\robertsand\My Documents\GitHub\fish>python
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (In
tel)] on win32
when I run either ">setup.py install" or ">python setup.py install " I get the following:
"C:\Documents and Settings\robertsand\My Documents\GitHub\fish>python setup.py install
C:\Python33\lib\distutils\dist.py:257: UserWarning: Unknown distribution option:
'install_requires'
warnings.warn(msg)
running install
running build
running build_py
running build_scripts
running install_lib
byte-compiling C:\Python33\Lib\site-packages\fish\cli.py to cli.cpython-33.pyc
File "C:\Python33\Lib\site-packages\fish\cli.py", line 332
print args[0]
^
SyntaxError: invalid syntax
byte-compiling C:\Python33\Lib\site-packages\fish\delicious.py to delicious.cpython-33.pyc
Sorry: TabError: inconsistent use of tabs and spaces in indentation (delicious.py, line 43)
byte-compiling C:\Python33\Lib\site-packages\fish\delicious2fluiddb.py to delicious2fluiddb.cpython-33.pyc
File "C:\Python33\Lib\site-packages\fish\delicious2fluiddb.py", line 16
print 'You need the abouttag library on your PYTHONPATH.'
^
SyntaxError: invalid syntax
byte-compiling C:\Python33\Lib\site-packages\fish\example.py to example.cpython-33.pyc
File "C:\Python33\Lib\site-packages\fish\example.py", line 12
print value
^
SyntaxError: invalid syntax
byte-compiling C:\Python33\Lib\site-packages\fish\fish.py to fish.cpython-33.pyc
File "C:\Python33\Lib\site-packages\fish\fish.py", line 46
print 'Readline not available; no command history'
^
SyntaxError: invalid syntax
byte-compiling C:\Python33\Lib\site-packages\fish\fishlib.py to fishlib.cpython-33.pyc
File "C:\Python33\Lib\site-packages\fish\fishlib.py", line 133
INTEGER_RE = re.compile(ur'^[+-]{0,1}[0-9]+$')
^
SyntaxError: invalid syntax
byte-compiling C:\Python33\Lib\site-packages\fish\flags.py to flags.cpython-33.pyc
File "C:\Python33\Lib\site-packages\fish\flags.py", line 128
print self.help
^
SyntaxError: invalid syntax
byte-compiling C:\Python33\Lib\site-packages\fish\repl.py to repl.cpython-33.pyc
File "C:\Python33\Lib\site-packages\fish\repl.py", line 5
print 'Readline not available; no command history'
^
SyntaxError: invalid syntax
byte-compiling C:\Python33\Lib\site-packages\fish\testfish.py to testfish.cpython-33.pyc
File "C:\Python33\Lib\site-packages\fish\testfish.py", line 351
print 'one'
^
SyntaxError: invalid syntax
byte-compiling C:\Python33\Lib\site-packages\fish\values.py to values.cpython-33.pyc
File "C:\Python33\Lib\site-packages\fish\values.py", line 42
print tag_by_about_values(db, objs)
^
SyntaxError: invalid syntax
running install_scripts
running install_egg_info
Removing C:\Python33\Lib\site-packages\fish-4.34-py3.3.egg-info
Writing C:\Python33\Lib\site-packages\fish-4.34-py3.3.egg-info"
What have I done wrong??
Andrew
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.