Closed Phil-ThePower-Pearce closed 8 months ago
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:
` 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
Sentimental Analysis:
Web:
The DNS operation timed out after 2.0002329349517822 second
Webstats:
Hope the above helps