maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Upgrading pastebinit (https://talk.maemo.org/showthread.php?t=95517)

marmistrz 2015-05-19 07:12

Upgrading pastebinit
 
The old pastebinit has had trouble with pasting. pastebin.com failed with due to the api key, the other ones weren't detected.

So I built the latest version from Ubuntu. What's weird, no paste website is being detected now. ("Unknown website...")
Even a non-optified version fails.

Any ideas why?

/edit: I'm wondering whether it is not a bug in python3.4. Forwarding the info to Aapo

AapoRantalainen 2015-06-02 19:42

Re: Upgrading pastebinit
 
Hi, it is not bug in python-3.4.

As noted that 'invalid api key' is relating old version of pastebinit.

"Unknown website..." means you have config files from older version and they wont work. I tested version from Ubuntu (1.4-4), and forced default address:
defaultPB = "http://paste.ubuntu.com"
and then it works.

---
Default is just default. These works:
Code:

echo hello |  pastebinit -b slexy.org
 http://slexy.org/view/s20bSBSr9B
echo hello |  pastebinit -b paste.pound-python.org
 http://paste.pound-python.org/show/oMaNMNHhaCYGu4cjubhK/


mr_pingu 2017-08-10 12:10

Re: Upgrading pastebinit
 
Is python3 really needed or will 2.5 or 2.7 sufficient?

EDIT: As a test I took debian 1.4.4. deb, extraxted it at the apprioate locations.
Changed the shebang from python3 to python2.7 and pasted succesfully to paste.debian.net :)
Need to test it with 2.5 still...
Edit2: 2.5 fails


All times are GMT. The time now is 21:40.

vBulletin® Version 3.8.8