Giter Site home page Giter Site logo

error in windows 10 about doconce HOT 12 CLOSED

phsheth avatar phsheth commented on July 30, 2024
error in windows 10

from doconce.

Comments (12)

phsheth avatar phsheth commented on July 30, 2024

apologies. i think the bit.ly link in the sample code for trials is missing.

from doconce.

phsheth avatar phsheth commented on July 30, 2024

All files present here (except citations bib file):
https://github.com/hplgit/hplgit.github.com/tree/master/teamods/writing_reports/doconce_src

from doconce.

KGHustad avatar KGHustad commented on July 30, 2024

The second exception shouldn't occur, so that's very much a valid bug.

from doconce.

phsheth avatar phsheth commented on July 30, 2024

The second exception shouldn't occur, so that's very much a valid bug.

The exception goes away after all files are included in the folder. It has generated the tex file. I think some .sty files are missing (ptex2tex.sty). For which i think i need to read this: https://github.com/hplgit/ptex2tex/blob/master/README.
Which I will do tomorrow.

from doconce.

phsheth avatar phsheth commented on July 30, 2024

! Package minted Error: You must invoke LaTeX with the -shell-escape flag.
! Package minted Error: You must have `pygmentize' installed to use this package.

! Undefined control sequence.
l.404 \bpycod

from doconce.

phsheth avatar phsheth commented on July 30, 2024

Boom! suddenly I have the PDF compiled by texworks
Implementation section does not have the code written properly...

from doconce.

phsheth avatar phsheth commented on July 30, 2024

Although DocOnce seems to be working fair - I am having trouble with the minted package. Went around trouble shooting the minted errors online but I am stuck on an error with \inputlistings line not being fed properly. @KGHustad - by any chance do u have an idea how to deal with it?

from doconce.

phsheth avatar phsheth commented on July 30, 2024

I know I am not really helping by pasting all error messages here, but heres the latest:

(base) C:\Users\Pushkar Sheth\Documents\work\doconce_trials\setup4book-doconce-master\doc\src\book>doconce format pdflatex book.do.txt
running preprocess -DFORMAT=pdflatex -DDEVICE=screen  book.do.txt > tmp_preprocess__book.do.txt
Could not run preprocessor:
preprocess -DFORMAT=pdflatex -DDEVICE=screen  book.do.txt > tmp_preprocess__book.do.txt
'preprocess' is not recognized as an internal or external command,
operable program or batch file.

return code from preprocess: 1
Abort! (add --no_abort on the command line to avoid this abortion)

from doconce.

KGHustad avatar KGHustad commented on July 30, 2024

Have you installed preprocess in the same conda environment? If not, try conda install -c conda-forge preprocess.

preprocess should show up when you run the following command

conda list preprocess

from doconce.

phsheth avatar phsheth commented on July 30, 2024

I think we are at the last leg of debugging.
the report.do.txt is generating, \inputlistings issue is also solved.
now to solve preprocess issue.

@KGHustad - do u have a more recent version of the book style format used for recently printed books?

(base) C:\Users\Pushkar Sheth\Documents\work\doconce_trials\setup4book-doconce-master\doc\src\book>conda list preprocess
# packages in environment at C:\ProgramData\Anaconda3:
#
# Name                    Version                   Build  Channel
preprocess                1.2.3                      py_1    conda-forge

(base) C:\Users\Pushkar Sheth\Documents\work\doconce_trials\setup4book-doconce-master\doc\src\book>doconce format pdflatex book.do.txt
running preprocess -DFORMAT=pdflatex -DDEVICE=screen  book.do.txt > tmp_preprocess__book.do.txt
Could not run preprocessor:
preprocess -DFORMAT=pdflatex -DDEVICE=screen  book.do.txt > tmp_preprocess__book.do.txt
'preprocess' is not recognized as an internal or external command,
operable program or batch file.

return code from preprocess: 1
Abort! (add --no_abort on the command line to avoid this abortion)

(base) C:\Users\Pushkar Sheth\Documents\work\doconce_trials\setup4book-doconce-master\doc\src\book>

from doconce.

KGHustad avatar KGHustad commented on July 30, 2024

The issue is that Windows does not seem to recognise preprocess as a command even though it should be present in the environment.
Could you try running preprocess or preprocess.exe in the Anaconda command prompt?
I don't know if I have ever tested preprocess on Windows, but I wasn't expecting it to cause any problems.

The book style format has not changed in the past couple of years. I know it could probably use an update, but I don't have the time to do that anytime soon.

from doconce.

phsheth avatar phsheth commented on July 30, 2024

I appreciate your help @KGHustad. Closing this issue here because it is external to doconce.

from doconce.

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.