Few Script Errors
Sentimental Analysis:
Dropped: text/x-c++
Dropped: text/x-c++
Traceback (most recent call last):
File "./SentimentAnalysis.py", line 168, in <module>
Analyse(message, server)
File "./SentimentAnalysis.py", line 65, in Analyse
sentences = tokenize.sent_tokenize(p_content)
File "/home/ubuntu/Apps/AIL-framework/AILENV/lib/python3.6/site-packages/nltk/tokenize/__init__.py", line 105, in sent_tokenize
tokenizer = load('tokenizers/punkt/{0}.pickle'.format(language))
File "/home/ubuntu/Apps/AIL-framework/AILENV/lib/python3.6/site-packages/nltk/data.py", line 868, in load
opened_resource = _open(resource_url)
File "/home/ubuntu/Apps/AIL-framework/AILENV/lib/python3.6/site-packages/nltk/data.py", line 993, in _open
return find(path_, path + ['']).open()
File "/home/ubuntu/Apps/AIL-framework/AILENV/lib/python3.6/site-packages/nltk/data.py", line 701, in find
raise LookupError(resource_not_found)
LookupError:
**********************************************************************
Resource punkt not found.
Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('punkt')
For more information see: https://www.nltk.org/data.html
Web:
The DNS operation timed out after 2.0002329349517822 second
Webstats:
`Traceback (most recent call last):
File "./WebStats.py", line 180, in <module>
analyse(r_serv_trend, 'scheme', date, url_parsed)
File "./WebStats.py", line 32, in analyse
field = field.decode('utf8')
AttributeError: 'str' object has no attribute 'decode'
`
Hope the above helps
I left AIL framework runing over the weekend.
THese were the errors that occured over the weekend
`BankAccount
Traceback (most recent call last):
File "./BankAccount.py", line 107, in
IPAddress
Traceback (most recent call last):
File "./IPAddress.py", line 85, in
DNS The DNS operation timed out after 2.0001516342163086 seconds""
Indexer bash: line 1: 5279 Killed /home/ubuntu/Apps/AIL-framework//AILENV/bin/python ./Indexer.py
Phone bash: line 1: 5279 Killed /home/ubuntu/Apps/AIL-framework//AILENV/bin/python ./Indexer.py
Decoder
Traceback (most recent call last):
File "./Decoder.py", line 221, in
Webstats:
Traceback (most recent call last): File "./WebStats.py", line 180, in <module> analyse(r_serv_trend, 'scheme', date, url_parsed) File "./WebStats.py", line 32, in analyse field = field.decode('utf8') AttributeError: 'str' object has no attribute 'decode'
Hi @Phil-ThePower-Pearce ! Thank you for the report !
The mime type issue seem to be related to https://github.com/ahupp/python-magic/issues/22
Fixed with 4097d95237a81e3c506743397eea4880622a1ccf cf24c59e1d390db39b305b1aec7a17d3b0551b0f and f9856a1589cb49fc6e407587d7609bf4a3e6af23
Please tell me if this solve your issue with the Decoder module
Sentimental Analysis still has issues after update
`[nltk_data] Downloading package punkt to /root/nltk_data...
[nltk_data] Unzipping tokenizers/punkt.zip.
Traceback (most recent call last):
File "./SentimentAnalysis.py", line 173, in
Resource vader_lexicon not found. Please use the NLTK Downloader to obtain the resource:
import nltk nltk.download('vader_lexicon')
For more information see: https://www.nltk.org/data.html
Attempted to load sentiment/vader_lexicon.zip/vader_lexicon/vader_lexicon.txt
Searched in: - '/root/nltk_data' - '/home/ubuntu/Apps/AIL-framework//AILENV/nltk_data' - '/home/ubuntu/Apps/AIL-framework//AILENV/share/nltk_data' - '/home/ubuntu/Apps/AIL-framework//AILENV/lib/nltk_data' - '/usr/share/nltk_data' - '/usr/local/share/nltk_data' - '/usr/lib/nltk_data' - '/usr/local/lib/nltk_data' - ''
` Ive resolved this by moving the nltk_data to a directory mentioned above. It had been installed in /home/ubuntu (as I run this on ec2)
Fixed in v5.0