You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Sai Suman Mallela <sm...@cleverex.com> on 2017/12/21 18:05:49 UTC
Storm issue - Shlex module not found
Hello Team,
Am trying to get Stormcrawler working on my Debian VM. I get this error
when I do the following command:
root@demo76:/opt# storm
Traceback (most recent call last):
File "/opt/storm/apache-storm-1.1.0/bin/storm.py", line 23, in <module>
import shlex
ImportError: No module named shlex
I have python 2.7.9 version. I tried a simple python program with shlex
and it works fine but am not sure why the storm is not recognizing shlex.
Can you please help?
Kind Regards,
Sai
Re: Storm issue - Shlex module not found
Posted by Jungtaek Lim <ka...@gmail.com>.
We're discussing in dev list whether bring the patch into 1.x version lines
or not. We are careful of that because changing it also has a chance to
break existing setup.
For now you're encouraged to open "bin/storm.py" and modify shebang line
from "#!/usr/bin/python" to "#!/usr/bin/env python" and try again.
Thanks,
Jungtaek Lim (HeartSaVioR)
2017년 12월 23일 (토) 오전 12:13, Sai Suman Mallela <sm...@cleverex.com>님이 작성:
> Thank you for your reply.
>
> But I get the same error. I have downloaded Apache storm from wget
> http://apache.mirrors.spacedump.net/storm/apache-storm-1.1.0/apache-storm-1.1.0.tar.gz
> <http://apache.mirrors.spacedump.net/storm/apache-storm-0.9.5/apache-storm-0.9.5.tar.gz>
>
>
> Do you want me to get the apache storm from the github and try it, but I
> see master build failed, so am skeptical to clone that.
>
> Please let me know.
>
> Thanks,
> Sai
>
>
> On Fri, Dec 22, 2017 at 4:13 AM, Jungtaek Lim <ka...@gmail.com> wrote:
>
>> Storm 1.x version line uses "/usr/bin/python" for storm.py hence you need
>> to check against it.
>> In master branch we've changed to use "/usr/bin/env python", but might
>> miss to port back.
>>
>> You can modify storm.py to change "#!/usr/bin/python" to "#!/usr/bin/env
>> python" and see it helps.
>>
>> Hope this helps.
>>
>> Thanks,
>> Jungtaek Lim (HeartSaVioR)
>>
>> 2017년 12월 22일 (금) 오전 3:05, Sai Suman Mallela <sm...@cleverex.com>님이
>> 작성:
>>
>>> Hello Team,
>>>
>>> Am trying to get Stormcrawler working on my Debian VM. I get this error
>>> when I do the following command:
>>>
>>> root@demo76:/opt# storm
>>>
>>> Traceback (most recent call last):
>>>
>>> File "/opt/storm/apache-storm-1.1.0/bin/storm.py", line 23, in <module>
>>>
>>> import shlex
>>>
>>> ImportError: No module named shlex
>>>
>>> I have python 2.7.9 version. I tried a simple python program with
>>> shlex and it works fine but am not sure why the storm is not recognizing
>>> shlex. Can you please help?
>>>
>>>
>>> Kind Regards,
>>>
>>> Sai
>>>
>>
>
Re: Storm issue - Shlex module not found
Posted by Sai Suman Mallela <sm...@cleverex.com>.
Thank you for your reply.
But I get the same error. I have downloaded Apache storm from wget
http://apache.mirrors.spacedump.net/storm/apache-storm-1.1.0/apache-storm-1.1.0.tar.gz
<http://apache.mirrors.spacedump.net/storm/apache-storm-0.9.5/apache-storm-0.9.5.tar.gz>
Do you want me to get the apache storm from the github and try it, but I
see master build failed, so am skeptical to clone that.
Please let me know.
Thanks,
Sai
On Fri, Dec 22, 2017 at 4:13 AM, Jungtaek Lim <ka...@gmail.com> wrote:
> Storm 1.x version line uses "/usr/bin/python" for storm.py hence you need
> to check against it.
> In master branch we've changed to use "/usr/bin/env python", but might
> miss to port back.
>
> You can modify storm.py to change "#!/usr/bin/python" to "#!/usr/bin/env
> python" and see it helps.
>
> Hope this helps.
>
> Thanks,
> Jungtaek Lim (HeartSaVioR)
>
> 2017년 12월 22일 (금) 오전 3:05, Sai Suman Mallela <sm...@cleverex.com>님이 작성:
>
>> Hello Team,
>>
>> Am trying to get Stormcrawler working on my Debian VM. I get this error
>> when I do the following command:
>>
>> root@demo76:/opt# storm
>>
>> Traceback (most recent call last):
>>
>> File "/opt/storm/apache-storm-1.1.0/bin/storm.py", line 23, in <module>
>>
>> import shlex
>>
>> ImportError: No module named shlex
>>
>> I have python 2.7.9 version. I tried a simple python program with shlex
>> and it works fine but am not sure why the storm is not recognizing shlex.
>> Can you please help?
>>
>>
>> Kind Regards,
>>
>> Sai
>>
>
Re: Storm issue - Shlex module not found
Posted by Jungtaek Lim <ka...@gmail.com>.
Storm 1.x version line uses "/usr/bin/python" for storm.py hence you need
to check against it.
In master branch we've changed to use "/usr/bin/env python", but might miss
to port back.
You can modify storm.py to change "#!/usr/bin/python" to "#!/usr/bin/env
python" and see it helps.
Hope this helps.
Thanks,
Jungtaek Lim (HeartSaVioR)
2017년 12월 22일 (금) 오전 3:05, Sai Suman Mallela <sm...@cleverex.com>님이 작성:
> Hello Team,
>
> Am trying to get Stormcrawler working on my Debian VM. I get this error
> when I do the following command:
>
> root@demo76:/opt# storm
>
> Traceback (most recent call last):
>
> File "/opt/storm/apache-storm-1.1.0/bin/storm.py", line 23, in <module>
>
> import shlex
>
> ImportError: No module named shlex
>
> I have python 2.7.9 version. I tried a simple python program with shlex
> and it works fine but am not sure why the storm is not recognizing shlex.
> Can you please help?
>
>
> Kind Regards,
>
> Sai
>