You are not logged in.

#1 2015-06-07 23:03:18

Bailando
Member
From: Hungary
Registered: 2013-08-19
Posts: 133
Website

GoogleCL and EasyBlogger issue

I have two automatic blogs, so I was using GoogleCL to send the posts. Now I am unable to use neither of these packages. Google upgraded from OAuth to OAuth2 authentication protocol, however GoogleCL command line package isn't updated. I am also unable to install EasyBlogger Python package due to a dependency called Pandoc (package haskell-pandoc) which is impossible to install. What to do then?

Offline

#2 2015-06-08 03:44:30

jinal
Member
Registered: 2014-10-26
Posts: 19

Re: GoogleCL and EasyBlogger issue

A little googling tells me this:

The original project hosted here isn't active. The arch package was last updated in 2014 (either Jan or July, I can't tell which!).
The active development, it seems happens on github . A quick search in this repository tells me it probably supports OAuth2

So perhaps you could try to install googlecl directly from github.

git clone https://github.com/vinitkumar/googlecl.git
cd googlecl
python setup.py install

I am also unable to install EasyBlogger Python package due to a dependency called Pandoc (package haskell-pandoc) which is impossible to install

You need to give more information for this.

Last edited by jinal (2015-06-08 03:52:29)

Offline

#3 2015-07-10 09:35:02

Bailando
Member
From: Hungary
Registered: 2013-08-19
Posts: 133
Website

Re: GoogleCL and EasyBlogger issue

"8 June 2015: GoogleCL is currently broken due to the OAuth1 turndown, and likely to remain so. Thanks for your support over the years, and apologies for the lack of prior notice."

Last edited by Bailando (2015-07-10 09:35:38)

Offline

#4 2015-07-10 10:06:42

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: GoogleCL and EasyBlogger issue

jinal wrote:

The arch package was last updated in 2014 (either Jan or July, I can't tell which!).

July. Arch uses the ISO standard for dates and time [1]. (As should you tongue)

Bailando wrote:

I am also unable to install EasyBlogger Python package due to a dependency called Pandoc (package haskell-pandoc) which is impossible to install

Pandoc is no longer shipped in the official repositories. You can install pandoc-static from the aur [2], add the haskell repository or install it yourself using cabal. [3]

[1] https://en.wikipedia.org/wiki/ISO_8601
[2] https://aur4.archlinux.org/packages/pandoc-static/
[3] https://wiki.archlinux.org/index.php/Ha … l_packages

EDIT: Spelling

Last edited by runical (2015-07-10 10:07:39)

Offline

#5 2015-07-10 14:38:55

Bailando
Member
From: Hungary
Registered: 2013-08-19
Posts: 133
Website

Re: GoogleCL and EasyBlogger issue

Thx, this pandoc-static package looks like something I need. However I got an error message when trying to install:

 Verifying source file signatures with gpg...
    pandoc-static-1.15.0.4-1.tar.xz ... FAILED (unknown public key 456032D717A4CD9C)
==> ERROR: One or more PGP signatures could not be verified!
:: failed to verify pandoc-static integrity

I tried:

sudo pacman-key --lsign-key 456032D717A4CD9C

But no success.

Last edited by Bailando (2015-07-10 14:40:18)

Offline

#6 2015-07-10 21:04:17

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Offline

#7 2015-07-12 15:55:33

Bailando
Member
From: Hungary
Registered: 2013-08-19
Posts: 133
Website

Re: GoogleCL and EasyBlogger issue

Thx, now it works. It turned out I had to install the "gnupg" package, and add keys manually, like "gpg -recv-key <key>". Then I was able to install the package, however it build a lot of its dependencies from source, which took for about 2 hours...

After about 3 hours of compiling I got only an error message:

[21 of 21] Compiling Text.CSL.Pandoc  ( src/Text/CSL/Pandoc.hs, dist/build/Text/CSL/Pandoc.o )

src/Text/CSL/Pandoc.hs:28:1: Warning:
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
In-place registering pandoc-citeproc-0.7.2...
Preprocessing executable 'pandoc-citeproc' for pandoc-citeproc-0.7.2...
[1 of 2] Compiling Paths_pandoc_citeproc ( dist/build/autogen/Paths_pandoc_citeproc.hs, dist/build/pandoc-citeproc/pandoc-citeproc-tmp/Paths_pandoc_citeproc.o )
[2 of 2] Compiling Main             ( pandoc-citeproc.hs, dist/build/pandoc-citeproc/pandoc-citeproc-tmp/Main.o )
Linking dist/build/pandoc-citeproc/pandoc-citeproc ...
collect2: error: ld returned 1 exit status
==> ERROR: A failure occurred in build().
    Aborting...
:: pandoc-static cleaning skipped
:: failed to build pandoc-static package(s)

Last edited by Bailando (2015-07-12 17:45:17)

Offline

#8 2015-07-12 19:19:35

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: GoogleCL and EasyBlogger issue

Building from source can take a while, that is true. But that is the price of doing so.

I have no clue what the cause of the build fail is. You can try to ask on the AUR package page (or try building in a clean chroot, or download the package from the parabola repos)

Offline

#9 2015-07-12 20:54:15

Bailando
Member
From: Hungary
Registered: 2013-08-19
Posts: 133
Website

Re: GoogleCL and EasyBlogger issue

Thx, for the help. Meanwhile I realized that my /tmp was full, not enough free space in /tmp caused the error messages. 1 GB wasn't enough for pandoc-static to build... Now I managed to install it. However the original EasyBlogger script still doesn't work...

When I run it with python2, I got error messages:

Traceback (most recent call last):
  File "/usr/bin/easyblogger", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3074, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3060, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3087, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 645, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 946, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 833, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pypandoc' distribution was not found and is required by EasyBlogger

When I run it with python3, I got different error messages:

Traceback (most recent call last):
  File "/usr/bin/easyblogger", line 9, in <module>
    load_entry_point('EasyBlogger==0.9.0', 'console_scripts', 'easyblogger')()
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.4/site-packages/EasyBlogger-0.9.0-py3.4.egg/blogger/__init__.py", line 1, in <module>
ImportError: cannot import name 'EasyBlogger'

I really need some blogger script, because all of my blogs are out of order now for about 2 months.

Offline

#10 2015-07-13 07:52:59

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: GoogleCL and EasyBlogger issue

How do you install easyblogger? I can't find it anywhere in the AUR, nor the official package repos.

As for your problem: You need to install pypandoc according to the error message. I have no clue if python 3 will work for this script as it was written way back in 2013 and hasn't been updated since.

Offline

Board footer

Powered by FluxBB