You are not logged in.

#1 2014-12-23 13:24:26

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[REQUEST] Python Module: Academic Markdown [solved]

Hi,

I tried to create a PKGBUILD for Python Module Academic Markdown:

# Maintainer: Robert Orzanna <orschiro@gmail.com>
pkgname=python-academicmarkdown
_pkgname=academicmarkdown
pkgver=0.8.1
pkgrel=1
pkgdesc="Academic writing with Markdown "
arch=(any)
url="https://github.com/smathot/academicmarkdown"
license=('GPL')
groups=()
depends=('python' 'pandoc' 'pyzotero' 'wkhtmltopdf')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=(https://github.com/smathot/academicmarkdown/archive/release/$pkgver.tar.gz)
md5sums=('d5eac4588122d3cc22506474c92dcc93')

package() {
  cd "$srcdir/$_pkgname-release-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et:

It fails with the following error:

==> Starting package()...
Traceback (most recent call last):
  File "setup.py", line 21, in <module>
    from academicmarkdown import version
  File "/home/orschiro/VCS/PKGBUILD/python-academicmarkdown/src/academicmarkdown-release-0.8.1/academicmarkdown/__init__.py", line 267, in <module>
    from _BaseParser import BaseParser
ImportError: No module named '_BaseParser'
==> ERROR: A failure occurred in package().
    Aborting...

The BaseParser module seems to be part of academicmarkdown itself. It is located in the academicmarkdown folder. It is, however, beyond my knowledge why it cannot be found then.

I appreciate your help.

Robert

Last edited by orschiro (2014-12-23 20:09:01)

Offline

#2 2014-12-23 13:52:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,650
Website

Re: [REQUEST] Python Module: Academic Markdown [solved]

It doesn't appear to be compatible with python3, the setup.py works with python2, however.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-12-23 20:08:40

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [REQUEST] Python Module: Academic Markdown [solved]

@WorMzy

Thanks! I could have tried that myself. Indeed, with python2 it does work.

I added python2-academicmarkdown to the AUR.

Merry Christmas smile

Offline

#4 2014-12-23 20:12:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,650
Website

Re: [REQUEST] Python Module: Academic Markdown [solved]

I'm not sure whether it's supposed to be compatible with python3 as well (the project page is ambiguous), so you may want to ask the developer to clarify -- you may have found a bug.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2014-12-24 15:34:02

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [REQUEST] Python Module: Academic Markdown [solved]

The developer confirmed that his module is python2 only.

Offline

Board footer

Powered by FluxBB