Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on running base.py #1

Open
Candunc opened this issue Apr 1, 2017 · 7 comments
Open

Crash on running base.py #1

Candunc opened this issue Apr 1, 2017 · 7 comments

Comments

@Candunc
Copy link

Candunc commented Apr 1, 2017

Traceback (most recent call last):
  File "base.py", line 154, in <module>
    main()
  File "base.py", line 150, in main
    scraper.scrape_websocket_forever('place.sqlite')
  File "base.py", line 19, in scrape_websocket_forever
    self.ws = create_connection(url)
  File "/usr/local/lib/python3.4/dist-packages/websocket/_core.py", line 487, in create_connection
    websock.connect(url, **options)
  File "/usr/local/lib/python3.4/dist-packages/websocket/_core.py", line 211, in connect
    options.pop('socket', None))
  File "/usr/local/lib/python3.4/dist-packages/websocket/_http.py", line 71, in connect
    sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
  File "/usr/local/lib/python3.4/dist-packages/websocket/_http.py", line 108, in _open_socket
    sock.setsockopt(*opts)
OSError: [Errno 22] Invalid argument

I've installed placescraper and websocket-client from pip3 and am running the latest place-scraper commit.

@danthedaniel
Copy link
Contributor

danthedaniel commented Apr 1, 2017

What version of websocket-client are you running?

Can you also tell me how you're invoking the scraper?

@Candunc
Copy link
Author

Candunc commented Apr 1, 2017

0.40.0 is the version pip3 installed

Edit: I'm using the following command to invoke the scraper

python3 base.py

@Candunc
Copy link
Author

Candunc commented Apr 1, 2017

I've installed python3 on another computer and it is working. Thank you for your help regardless

@danthedaniel
Copy link
Contributor

I can't replicate your issue on Python 3.4.2 and with websocket-client 0.40.

What OS are you running?

@danthedaniel
Copy link
Contributor

I've only tested it on Linux, Debian 8 specifically.

@odensc
Copy link

odensc commented Apr 1, 2017

I'm going to close this issue because you've figured it out. If we get another report we'll take a look into it.

@odensc odensc closed this as completed Apr 1, 2017
@odensc
Copy link

odensc commented Apr 1, 2017

Reopening, someone else has reported in Discord.

@odensc odensc reopened this Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants