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

Unable to use bpaste from bpython #901

Closed
adrianlzt opened this issue Jul 6, 2021 · 1 comment
Closed

Unable to use bpaste from bpython #901

adrianlzt opened this issue Jul 6, 2021 · 1 comment
Assignees
Labels

Comments

@adrianlzt
Copy link

@adrianlzt adrianlzt commented Jul 6, 2021

➜ bpython                          
bpython version 0.21 on top of Python 3.9.5 /usr/bin/python
>>> print("hello")
hello
>>> (here I press F8 and say yes)
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/bpython/paste.py", line 54, in paste
    response.raise_for_status()
  File "/usr/lib/python3.9/site-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://bpaste.net/api/v1/paste

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/bpython", line 33, in <module>
    sys.exit(load_entry_point('bpython==0.21', 'console_scripts', 'bpython')())
  File "/usr/lib/python3.9/site-packages/bpython/curtsies.py", line 201, in main
    exit_value = repl.mainloop(True, paste)
  File "/usr/lib/python3.9/site-packages/bpython/curtsies.py", line 121, in mainloop
    self.process_event_and_paint(e)
  File "/usr/lib/python3.9/site-packages/bpython/curtsies.py", line 85, in process_event_and_paint
    self.process_event(e)
  File "/usr/lib/python3.9/site-packages/bpython/curtsiesfrontend/repl.py", line 611, in process_event
    return self.process_control_event(e)
  File "/usr/lib/python3.9/site-packages/bpython/curtsiesfrontend/repl.py", line 626, in process_control_even
t
    self.status_bar.process_event(e)
  File "/usr/lib/python3.9/site-packages/bpython/curtsiesfrontend/interaction.py", line 85, in process_event
    self.request_context.switch()
  File "/usr/lib/python3.9/site-packages/bpython/repl.py", line 888, in pastebin
    return self.do_pastebin(s)
  File "/usr/lib/python3.9/site-packages/bpython/repl.py", line 902, in do_pastebin
    paste_url, removal_url = self.paster.paste(s)
  File "/usr/lib/python3.9/site-packages/bpython/paste.py", line 56, in paste
    raise PasteFailed(exc.message)
AttributeError: 'HTTPError' object has no attribute 'message'
@sebastinas
Copy link
Contributor

@sebastinas sebastinas commented Oct 12, 2021

This seems to be working again.

@sebastinas sebastinas closed this Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants