Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install dependent thrift fail #62

Closed
rockxsj opened this issue Sep 22, 2014 · 7 comments
Closed

install dependent thrift fail #62

rockxsj opened this issue Sep 22, 2014 · 7 comments

Comments

@rockxsj
Copy link

rockxsj commented Sep 22, 2014

yazi ~/Downloads/Petrel/petrel $ python setup.py develop
Traceback (most recent call last):
File "setup.py", line 61, in
build_petrel()
File "setup.py", line 40, in build_petrel
f_url = urllib2.urlopen('https://raw.github.com/apache/incubator-storm/%s' % path)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
yazi ~/Downloads/Petrel/petrel $ storm version
0.9.2-incubating

@jo-bi
Copy link

jo-bi commented Jan 2, 2015

I have the same problem ..

@barrywhart
Copy link
Contributor

The file for this version is located at:
https://raw.githubusercontent.com/apache/storm/v0.9.2-incubating/storm-core/src/storm.thrift

It should be pretty easy to modify setup.py to use this new location. Would you care to submit a pull request for this fix?

@jo-bi
Copy link

jo-bi commented Jan 3, 2015

Thanks, I did that. But there seem to be a new problem.
Am getting this error:

[root@localhost ~]# petrel
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/root/Petrel/petrel/petrel/cmdline.py", line 12, in
from .package import build_jar
File "/root/Petrel/petrel/petrel/package.py", line 13, in
from topologybuilder import TopologyBuilder
File "/root/Petrel/petrel/petrel/topologybuilder.py", line 15, in
assert not hasattr(GlobalStreamId, 'hash')
AssertionError

@barrywhart
Copy link
Contributor

Try commenting out lines 15 and 16 of topologybuilder.py.

@jo-bi
Copy link

jo-bi commented Jan 5, 2015

Thanks That worked well..

@barrywhart
Copy link
Contributor

Great! I hope I can get this updated soon. I don't use Storm at work anymore, so Petrel has gotten out of date.

@barrywhart
Copy link
Contributor

Fixed for Storm 0.9.2 and 0.9.3. Hopefully this area will be more stable now that Storm is no longer in "incubating" status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants