Closed rodrigobarnes closed 12 years ago
Hi Rodrigo
No, I think they're both my fault. Thanks for mailing; it's a reason to fix things.
I think the first one is probably because you haven't typed fish init. It should probably figure that out and do it for you.
I've seen the second one running against python 2.7. I'm not sure, yet, what causes it. It's some kind of unicode/UTF-8/encoding thing. I should obviously fix it. (It doesn't occur with python 2.5 or 2.6, as far as I can see.)
They're both bad; thanks for encouraging me to fix them.
If fish init doesn't fix it, let me know.
Regards
Nick
On 25 Jan 2012, at 10:07, rodrigobarnes wrote:
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:
bash-3.2$ ./fish test ................E.......
ERROR: testValuesAPISetGet (testfish.TestFluidinfo)
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
--- Reply to this email directly or view it on GitHub: https://github.com/njr0/fish/issues/2
Nicholas J Radcliffe Stochastic Solutions Limited. www.stochasticsolutions.com njr@stochasticsolutions.com +44 7713 787 602
Ah...the first part of that (fish init) is nonsense. (I just tried it.) I'll look into them both.
Regards
Nick
On 25 Jan 2012, at 10:07, rodrigobarnes wrote:
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:
bash-3.2$ ./fish test ................E.......
ERROR: testValuesAPISetGet (testfish.TestFluidinfo)
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
--- Reply to this email directly or view it on GitHub: https://github.com/njr0/fish/issues/2
Nicholas J Radcliffe Stochastic Solutions Limited. www.stochasticsolutions.com njr@stochasticsolutions.com +44 7713 787 602
Hey Rodrigo
The first problem you had is just a straightforward bug I don't see because I have stuff defined. Sorry about that.
The easy, short term fix is to say (at least)
fish touch .fish/alias fish perms private .fish/alias
which will create the tag whose non-existence is causing the problem. Obviously I'll change things so it does that for you, but it might be a few days ebfore I can easily get that to Github because I made some other changes that are an improvement but need a little bit more bedding down.
(Obviously, I could patch, but I'd rather just do it all together.)
Nick
On 25 Jan 2012, at 10:07, rodrigobarnes wrote:
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:
bash-3.2$ ./fish test ................E.......
ERROR: testValuesAPISetGet (testfish.TestFluidinfo)
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
--- Reply to this email directly or view it on GitHub: https://github.com/njr0/fish/issues/2
Nicholas J Radcliffe Stochastic Solutions Limited. www.stochasticsolutions.com njr@stochasticsolutions.com +44 7713 787 602
Hi Nick
Thanks for the notes - I tried what you suggested (both init and the alias settings) and although I get the shell working, I still get the failing test.
If you go directly via the web, the URL in the test gives a 404 (actually, an odd blank page but that must be the way fluiddb returns 404.)
Cheers
Rodrigo
Yes, the failing test is something different.
I have fixed the problem starting an interactive shell the first time on my working copy, but it's movd to using requests rather than httplib2. This is a huge improvement, but I think I'd like to offer a fallback to httplib2, as that's more widespread.
I'll look at the unicode problem: maybe it's something simple!
Nick
On 25 Jan 2012, at 11:24, rodrigobarnes wrote:
Hi Nick
Thanks for the notes - I tried what you suggested (both init and the alias settings) and although I get the shell working, I still get the failing test.
If you go directly via the web, the URL in the test gives a 404 (actually, an odd blank page but that must be the way fluiddb returns 404.)
Cheers
Rodrigo
Reply to this email directly or view it on GitHub: https://github.com/njr0/fish/issues/2#issuecomment-3649074
Nicholas J Radcliffe Stochastic Solutions Limited. www.stochasticsolutions.com njr@stochasticsolutions.com +44 7713 787 602
Hi Rodrigo
I pushed a new version to git that should solve both your problems. (You can verify that, if you particularly want to, by doing
fish rm .fish/alias
checking that
fish
fails again, then updating and trying the new one.
FYI:
Thanks for pointing out the problems. I'll blog later today or tomorrow probably.
Let me know if there are any problems with the new stuff if you try it.
Regards
Nick
On 25 Jan 2012, at 11:24, rodrigobarnes wrote:
Hi Nick
Thanks for the notes - I tried what you suggested (both init and the alias settings) and although I get the shell working, I still get the failing test.
If you go directly via the web, the URL in the test gives a 404 (actually, an odd blank page but that must be the way fluiddb returns 404.)
Cheers
Rodrigo
Reply to this email directly or view it on GitHub: https://github.com/njr0/fish/issues/2#issuecomment-3649074
Nicholas J Radcliffe Stochastic Solutions Limited. www.stochasticsolutions.com njr@stochasticsolutions.com +44 7713 787 602
Hi
looks like your changes fixed both issues thanks! Now I can explore.
Rodrigo
Cool.
Do shout if you find other problems.
Nick
On 25 Jan 2012, at 19:22, rodrigobarnes wrote:
Hi
looks like your changes fixed both issues thanks! Now I can explore.
Rodrigo
Reply to this email directly or view it on GitHub: https://github.com/njr0/fish/issues/2#issuecomment-3657041
Nicholas J Radcliffe Stochastic Solutions Limited. www.stochasticsolutions.com njr@stochasticsolutions.com +44 7713 787 602
Fixed
This is probably a newbie error, but in running fish from a vanilla git clone + credentials, I get a 404 error reported:
bash-3.2$ ./fish test ................E.......
ERROR: testValuesAPISetGet (testfish.TestFluidinfo)
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