Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Issue when running docker image #21

Open
jhagege opened this issue Jan 5, 2018 · 3 comments
Open

Issue when running docker image #21

jhagege opened this issue Jan 5, 2018 · 3 comments

Comments

@jhagege
Copy link

jhagege commented Jan 5, 2018

Thanks for this amazing tutorial !
I tried running it with the Docker image but without success.

When having a look at the logs, as per your instructions in the troubleshooting, this is what I get:

/usr/local/lib/python3.4/dist-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 1 of the file main_loop.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "html5lib")

  markup_type=markup_type))
Fri Jan  5 08:44:44 2018: Starting scrape cycle
/usr/local/lib/python3.4/dist-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 11 of the file main_loop.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "html5lib")

  markup_type=markup_type))
Fri Jan  5 08:45:03 2018: Got 0 results
Fri Jan  5 08:45:03 2018: Successfully finished scraping
tail: unrecognized file system type 0x794c7630 for ‘/opt/wwc/logs/afinder.log’. please report this to bug-coreutils@gnu.org. reverting to polling
^[[A^C
root@a3bb6b996683:/opt/wwc/apartment-finder# tail -f -n 1000 /opt/wwc/logs/afinder.log
/usr/local/lib/python3.4/dist-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 1 of the file main_loop.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "html5lib")

  markup_type=markup_type))
Fri Jan  5 08:44:44 2018: Starting scrape cycle
/usr/local/lib/python3.4/dist-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 11 of the file main_loop.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "html5lib")

  markup_type=markup_type))
Fri Jan  5 08:45:03 2018: Got 0 results
Fri Jan  5 08:45:03 2018: Successfully finished scraping
tail: unrecognized file system type 0x794c7630 for ‘/opt/wwc/logs/afinder.log’. please report this to bug-coreutils@gnu.org. reverting to polling

Not sure you have the resources to update it, but thought you'd like to know ;-)
Thanks !

@davidrpoliti
Copy link

I've got the same issue

@mbettan
Copy link

mbettan commented Aug 22, 2018

I solved the issue here https://github.com/mbettan/apartment-finder
You will have to rebuild the image with my change in requirements.txt
docker build -t apt .

@rudo-t
Copy link

rudo-t commented Jan 20, 2019

Current issue:

Not sure whether to build my own clist scraper or tackle fixing this
Traceback (most recent call last): File "main_loop.py", line 1, in <module> from scraper import do_scrape File "/opt/wwc/apartment-finder/scraper.py", line 8, in <module> from slackclient import SlackClient File "/usr/local/lib/python3.4/dist-packages/slackclient/__init__.py", line 1, in <module> from .client import SlackClient # noqa File "/usr/local/lib/python3.4/dist-packages/slackclient/client.py", line 8, in <module> from .server import Server File "/usr/local/lib/python3.4/dist-packages/slackclient/server.py", line 14, in <module> from websocket import create_connection File "/usr/local/lib/python3.4/dist-packages/websocket/__init__.py", line 23, in <module> from ._app import WebSocketApp File "/usr/local/lib/python3.4/dist-packages/websocket/_app.py", line 36, in <module> from ._core import WebSocket, getdefaulttimeout File "/usr/local/lib/python3.4/dist-packages/websocket/_core.py", line 34, in <module> from ._handshake import * File "/usr/local/lib/python3.4/dist-packages/websocket/_handshake.py", line 40, in <module> if six.PY34: AttributeError: 'module' object has no attribute 'PY34'

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

No branches or pull requests

4 participants