Will someone find a bug in the *sixth* version of my Time Weighted KBC market code by market close?
Basic
11
Ṁ694
resolved Dec 1
Resolved
NO

Context: /DanMan314/time-weighted-keynesian-beauty-cont

I'm creating this market both to see if the code is good enough, and as an incentive to find bugs. If I find a bug, it doesn't count for NO or YES (I'll keep it as the same version).

I will use my discretion on what counts as a bug, but generally it should be capable of impacting the final resolution of the market - I'm not interested in typos.

I won't bet on this market.

Sixth version of the code: https://pastebin.com/LiMsPpFa

Get
Ṁ1,000
and
S3.00
Sort by:

Not sure if this counts but I got the following error

boltonbailey@starlight test % /usr/local/bin/python3 "/Users/boltonbailey/Desktop/test/TWKBC Code v6.py"
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 975, in send
    self.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1454, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1071, in _create
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/boltonbailey/Desktop/test/TWKBC Code v6.py", line 52, in <module>
    bets = get_market_bets(KBC_SLUG)
  File "/Users/boltonbailey/Desktop/test/TWKBC Code v6.py", line 42, in get_market_bets
    with urllib.request.urlopen(req) as response:
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>

@BoltonBailey I was able to fix it by following these instructions

@BoltonBailey I don't think this should count? Seems like your local environment didn't have certificates, and I don't really want to make sure this is cross-compatible among environments.

© Manifold Markets, Inc.Terms + Mana-only TermsPrivacyRules