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
'NoneType' object has no attribute 'group' #72
Comments
What version of Storm are you running? The Storm version should match the first 3 digits of the Petrel version. |
I'm using 0.10.0. So this is the problem! Is there a 0.10 version or 1.0!? |
Are you aware of Streamparse? —r
Russ Ferriday -- Software Product Architect, Developer, Mentor |
There is a PR which is intended to add 0.10 support. It needs to be redone because it has a lot of unnecessary (even incorrect) changes. I will try and work on it some time, or I'd be happy to accept help. :-) |
Yes i'm aware of Streamparse. But having a 30k Python code and a 15M jar file, perhaps there must be a better way! Thanks. |
I'll work on 0.10 support next week. I think it's just a few hours work at most. In the meantime, can you use Storm 0.9.4? |
Hi, I already downgrade my Apache Strom. Lets see what happens. If i can live with this version! Thanks a lot for you work Barry. |
I pushed some fixes to the repo tonight which should make Petrel work with Storm 0.10.0. Can you test and confirm? Note I have not pushed these changes to pypi yet. |
Hello Barry, First off all congrats for your great book. Be aware in the code chapter 4/twitter_stream.py you forgot to remove your keys! Now I'm going to test your new version. Just a thought, why not a pip package!? Thanks. |
I have a big problem with my box. Is the motherboard or the CPU. On 19-04-2016 03:06, Barry Hart wrote:
|
Oops, I should fix those Twitter keys. I can create a pip package, I was just wondering if you could test it before I upload to pypi (pip). To create a package yourself, all you have to do is "python setup.py sdist". Thanks for the kind words about the book and Petrel! I should definitely do more marketing. I'm kind of shy, and I'm not using Storm at my current job, so it's kind of been on the back burner. The book was an unplanned project that came about because the publisher already wanted to do a book like that, and they found me. |
I'm using a new box. (petrel) jonas@jonas:/$ petrel But perhaps is something wrong with my new environment! |
It looks like the step that generates Python wrappers around the Storm Thrift objects failed. I'm not sure why. I'll push a build to pypi tonight to save us the trouble of diagnosing this. |
I uploaded version 0.10.0.0.3 to pypi. Give it a try... |
Looks fine to me! Thanks a lot. |
You're welcome! |
Hi there,
I'm trying Petrel with wordcount sample but find this problem:
$petrel submit --config topology.yaml --logdir
pwd
'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "/home/jonas/.local/lib/python2.7/site-packages/petrel-0.9.4.0.3-py2.7.egg/petrel/cmdline.py", line 111, in main
func(**args.dict)
File "/home/jonas/.local/lib/python2.7/site-packages/petrel-0.9.4.0.3-py2.7.egg/petrel/cmdline.py", line 32, in submit
sourcejar = get_sourcejar()
File "/home/jonas/.local/lib/python2.7/site-packages/petrel-0.9.4.0.3-py2.7.egg/petrel/cmdline.py", line 23, in get_sourcejar
storm_version = get_storm_version()
File "/home/jonas/.local/lib/python2.7/site-packages/petrel-0.9.4.0.3-py2.7.egg/petrel/cmdline.py", line 19, in get_storm_version
return m.group(0)
AttributeError: 'NoneType' object has no attribute 'group'
I also try:
$./buildandrun --config topology.yaml
~/.local/lib/python2.7/site-packages ~/wordcount
Traceback (most recent call last):
File "/home/jonas/Downloads/Petrel-master/petrel/setup.py", line 66, in
build_petrel()
File "/home/jonas/Downloads/Petrel-master/petrel/setup.py", line 29, in build_petrel
version_string, version_number = get_storm_version()
File "/home/jonas/Downloads/Petrel-master/petrel/setup.py", line 21, in get_storm_version
return m.group(0), m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
Error on or near line 20; exiting with status 1
I'd tried with virtualenv:
$source petrel/bin/activate
and without
$easy_install --install-dir /home/username/.local/lib/python2.7/site-packages petrel==0.9.4.0.3
Thanks in advance
The text was updated successfully, but these errors were encountered: