Comments (14)
Glad to hear you got it to work @tonino0013 and thanks for the assist @SeaDude! I'll close this as it appears the issue is resolved.
from labella.py.
@tonino0013, see this documentation: #14 (comment)
Maybe latexmk.exe
is not in your Path
variable.
from labella.py.
Dear @SeaDude ,
you have the reason, adding the "MiKTeX" t enviorement variables allowd me to write a pdf file shared by @GjjvdBurg exmaple.
Thank you
from labella.py.
Hi Tonino, thanks for raising this issue, I'm sorry to hear you're having trouble with the package. The problem seems to be that the latexmk
can't be found. One thing to try is to run latexmk
in the conda environment to see if that works. If that works, then running labella in the same directory (with the conda environment activated) should work as well. Please let me know if that solves your issue or whether you need further assistance.
from labella.py.
Dear @GjjvdBurg ,
I type;
latexmk
, result:
Latexmk: This is Latexmk, John Collins, 17 Jan. 2018, version: 4.55.
Latexmk: No file name specified, and I couldn't find any
Use
latexmk -help
to get usage information
and then latexmk -h
and I got the help menu.
I installaed latexmk within conda, so where can I find the path for latex?, or Do I have to add to enviorement variables?
Stay safe and best regards,
Tonino
from labella.py.
from labella.py.
Dear @GjjvdBurg ,
I work with virtual enviorement activated, labella
is installed in the same enviorement that latxmk
.
Here I list yhe packages on my enviorement, labella
is included.
list_env.csv
from labella.py.
Thanks for the package list @tonino0013. This is a bit difficult to debug as it seems that while LatexMk is installed, it can't be found from Python. Can you try the following in the conda environment? This looks only at the compile_latex
function, which might help narrowing down what goes wrong:
from labella.tex import compile_latex
with open('./test.tex', 'w') as fp:
fp.write("""\
\\documentclass{article}
\\begin{document}
Hello, world!
\\end{document}""")
compile_latex('./test.tex', '.', None, silent=False)
(on my system this produces a test.pdf
file in the current directory.)
from labella.py.
Hi @GjjvdBurg,
Thanks for the time. I run the code, however I got the following:
File "C:\Users\Director\AppData\Local\Temp/ipykernel_14880/463237626.py", line 1, in <module>
compile_latex(r'D:\Inves\Pdoc\Timeline\test.tex', '.', None, silent=False)
File "C:\Users\Director\anaconda3\envs\allinone\lib\site-packages\labella\tex.py", line 91, in compile_latex
raise (e)
File "C:\Users\Director\anaconda3\envs\allinone\lib\site-packages\labella\tex.py", line 89, in compile_latex
output = subprocess.check_output(command, stderr=subprocess.STDOUT)
File "C:\Users\Director\anaconda3\envs\allinone\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "C:\Users\Director\anaconda3\envs\allinone\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Director\anaconda3\envs\allinone\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\Users\Director\anaconda3\envs\allinone\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\Users\Director\anaconda3\envs\allinone\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
I was not able to produce the test.pdf file.
Thank you
from labella.py.
Is that the full output that you get? It seems to be missing the actual error
from labella.py.
Dear @GjjvdBurg,
Sorry, this is the full error message:
Traceback (most recent call last):
File "C:\Users\Director\AppData\Local\Temp/ipykernel_4796/105075423.py", line 8, in <module>
compile_latex('./test.tex', '.', None, silent=False)
File "C:\Users\Director\anaconda3\envs\allinone\lib\site-packages\labella\tex.py", line 91, in compile_latex
raise (e)
File "C:\Users\Director\anaconda3\envs\allinone\lib\site-packages\labella\tex.py", line 89, in compile_latex
output = subprocess.check_output(command, stderr=subprocess.STDOUT)
File "C:\Users\Director\anaconda3\envs\allinone\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "C:\Users\Director\anaconda3\envs\allinone\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Director\anaconda3\envs\allinone\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\Users\Director\anaconda3\envs\allinone\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\Users\Director\anaconda3\envs\allinone\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Thanks for the time
Tonino
from labella.py.
I don't use anaconda myself, but there seem to be some other issues on Github with similar error messages; do these links help?
- https://github.com/jupyter/notebook/issues/4079
- https://github.com/jupyter/notebook/issues/2301
I strongly suspect that the issue is with the installation and not with labella.py. Something is causing latexmk to be available outside of Python, but not from Python. You can double check this by running:
import subprocess
subprocess.check_output(["latexmk", "-h"])
from labella.py.
Dear @GjjvdBurg ,
I got the same error that I showed. Let me check the pages you sent me, I will let you kwow, thanks for the time,
from labella.py.
What did you find? I am receiving the same error without anaconda.
I even installed pip install latexmk.py
in a brand new virtual env.
Heres the results of pip freeze > requirements.txt
:
intervaltree==3.1.0
labella==0.9.8
latexmk.py==0.4
sortedcontainers==2.4.0
from labella.py.
Related Issues (15)
- Implement logscale
- textStyle example HOT 4
- borderColor not working HOT 3
- I think I'm missing something in my machine to run it but I don't know what. HOT 9
- Gantt chart HOT 2
- Horizontal Timeline up and down HOT 1
- FileNotFoundError: [WinError 2] The system cannot find the file specified
- How to use URL hyperlinks for timeline events? HOT 4
- import error HOT 3
- How to convert timeline to .png? HOT 5
- How to adjust node size and font size? HOT 4
- latexmk issue HOT 4
- OSError: [Errno 22] Invalid argument on dt2milli HOT 2
- Width caluculation - switch to TikZ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labella.py.