python - I can't run `dryscrape` in linux, pythoneverywhere -


i've successfuly instaled dryscrape along accompaning packages (webkit-server xvfbwrapper) in pythoneverywhere.com.

13:45 / $ pip3.5 install --user dryscrape collecting dryscrape   using cached dryscrape-1.0.tar.gz collecting webkit_server>=1.0 (from dryscrape)   using cached webkit-server-1.0.tar.gz requirement satisfied (use --upgrade upgrade): lxml in /usr/local/lib/python3.5/dist-packages (from dryscrape) collecting xvfbwrapper (from dryscrape)   using cached xvfbwrapper-0.2.8.tar.gz building wheels collected packages: dryscrape, webkit-server, xvfbwrapper   running setup.py bdist_wheel dryscrape ... done   stored in directory: /home/igorsavinkin/.cache/pip/wheels/f2/76/aa/8e6b197ff296ec63ac7677880040011f05114eb7a76334ef66   running setup.py bdist_wheel webkit-server ... done   stored in directory: /home/igorsavinkin/.cache/pip/wheels/a1/d5/20/88fcbe54d8c712563f2a7bd0a57a0743743210ee6d9b724d62   running setup.py bdist_wheel xvfbwrapper ... done   stored in directory: /home/igorsavinkin/.cache/pip/wheels/5e/03/bc/8fe7ce36b7a38c20d40e49b4f1b46a7e0f2a164ba36f1ed4f6 built dryscrape webkit-server xvfbwrapper installing collected packages: webkit-server, xvfbwrapper, dryscrape installed dryscrape webkit-server xvfbwrapper 

yet, still can't run session:

import dryscrape bs4 import beautifulsoup sess = dryscrape.session.session() 

returns error

traceback (most recent call last):   file "/home/igorsavinkin/.local/lib/python3.5/site-packages/webkit_server.py", line 420, in __init__     self._port = int(re.search(b"port: (\d+)", output).group(1)) attributeerror: 'nonetype' object has no attribute 'group' during handling of above exception, exception occurred: traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "/home/igorsavinkin/.local/lib/python3.5/site-packages/dryscrape/session.py", line 22, in __init__     self.driver = driver or defaultdriver()   file "/home/igorsavinkin/.local/lib/python3.5/site-packages/dryscrape/driver/webkit.py", line 30, in __init__     super(driver, self).__init__(**kw)   file "/home/igorsavinkin/.local/lib/python3.5/site-packages/webkit_server.py", line 230, in __init__     self.conn = connection or serverconnection()   file "/home/igorsavinkin/.local/lib/python3.5/site-packages/webkit_server.py", line 507, in __init__     self._sock = (server or get_default_server()).connect()   file "/home/igorsavinkin/.local/lib/python3.5/site-packages/webkit_server.py", line 450, in get_default_server     _default_server = server()   file "/home/igorsavinkin/.local/lib/python3.5/site-packages/webkit_server.py", line 427, in __init__     raise webkitservererror("webkit-server failed start. output:\n" + err) webkit_server.webkitservererror: webkit-server failed start. output: webkit_server: cannot connect x server  

what's wrong?

you don't have x11 installed windowing system.

http://dryscrape.readthedocs.io/en/latest/apidoc.html#webkit_server.nox11error


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -