Giter Club home page Giter Club logo

Comments (6)

dionhaefner avatar dionhaefner commented on August 16, 2024 14

I was able to track down the error. Running make DEBUG=1 html gave

ERROR: Could not process ./hello.ipynb
| TypeError: 'bool' object is not callable
|___
...
| File "./plugins/ipynb/markup.py", line 56, in read
| _content, metadata = md_reader.read(metadata_filepath)
| File "/usr/local/lib/python2.7/site-packages/pelican/readers.py", line 285, in read
| self._md = Markdown(extensions=self.extensions)
| TypeError: 'bool' object is not callable

Looking at Pelican's readers.py, it said

try:
    from markdown import Markdown
except ImportError:
    Markdown = False  # NOQA

causing the line

self._md = Markdown(extensions=self.extensions)

to fail if the markdown package wasn't present.

Installing markdown via pip install markdown fixed the error.

from pelican-jupyter.

basnijholt avatar basnijholt commented on August 16, 2024 3

I had the same issue, pip install markdown also fixed it for me.

from pelican-jupyter.

soedr avatar soedr commented on August 16, 2024 1

Ditto on @basnijholt & @dionhaefner's comments.

from pelican-jupyter.

caseyjlaw avatar caseyjlaw commented on August 16, 2024

FWIW, this is probably an installation issue. I have this problem in one environment, but not in another (all python 2.7). May be worth a fresh install.

from pelican-jupyter.

josephcslater avatar josephcslater commented on August 16, 2024

I'm in 3.5. Was in 3.4. Reinstalled pelican. Reinstalled pelican-ipynb. No dice. Tried the demo (with-meta-file). Same error. The install is so trivial, I'm not sure I could be messing it up (bug I've meet that challenge before!).

This isn't messing my workflow up much, but is in the "would be nice" domain. I am certainly open to being the guinea pig for testing when I have time.

Noting the installation instruction, I might be able to just workaround as I do serve it off of github. I haven't tried that yet. I know it might end up a time sink... so I need the time to dedicate to a solid try.

from pelican-jupyter.

josephcslater avatar josephcslater commented on August 16, 2024

That indeed fixed that error. There is also a dependency on dateutil which was easy to figure out from the error.

Unfortunately: I have a new error:

ERROR: Could not process ./Laplace_Transforms_Solution.ipynb
  | AttributeError: 'str' object has no attribute 'decode'

I'm looking around, but I have no idea where to look for this. I'm likely missing another dependency.

from pelican-jupyter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.