Code Monkey home page Code Monkey logo

Comments (4)

greghendershott avatar greghendershott commented on August 23, 2024

See pygments.rkt: We do (process "python -u /path/to/pipe.py") and wait 1 second. If for any reason the process isn't still running, we can't use pygments.

The process might no longer be running for a variety of reasons, including but not limited to:

  • The system can't find Python.
  • Python can't find Frog's pipe.py.
  • Python can't find the Pygments libraries pipe.py imports. Because:
    • Pygments isn't installed?
    • It's installed, but not in a way that its libraries are available to Python programs? (Analogous to not raco link-ing a collection in Racket?)

The error message says the last of these because it seems the most likely reason.


One thing you could try is to run a one-liner Python program:

echo 'from pygments import highlight' | python

Does that work silently, or give an error like:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pygments

?

from frog.

ebzzry avatar ebzzry commented on August 23, 2024

I ran that one-liner, and I got this:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pygments

Aww, that's sad, because I used to have it working. :-(
I have also verified from my system package management
system that I do have pygments installed, and that I can
call the pygmentize, too from the command-line.

It may be due to the fact that the filesystem organization
of my OS is not the "usual" one.

from frog.

greghendershott avatar greghendershott commented on August 23, 2024

Although I only found it from searching (I've never used it), it seems like this from the Python docs might help you: The Module Search Path.

In other words if you can find the directory containing the pygments .py files (such as highlight.py) and add the directory to the PYTHONPATH environment variable, it would probably work?

from frog.

greghendershott avatar greghendershott commented on August 23, 2024

I'm going to close this since I don't think it's anything I can do on my end. However please feel free to comment again here if there's anything else I can do to help.

from frog.

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.