Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named jyotisha.panchaanga.writer.tex.write_daily_panchaanga_tex #9

Open
tBalavelan opened this issue Dec 30, 2020 · 5 comments

Comments

@tBalavelan
Copy link

Hi Karthik,

I tried to install the script and tried to run your code. I get this error:
/usr/bin/python3: No module named jyotisha.panchaanga.writer.tex.write_daily_panchaanga_tex

I am running this in centos 7. I installed a virtualBox with centos 7 machine. Now after installing packages like latex, python, other packages, I tried to install panchangam and jyothisha.

when I run:
./gen_daily_cal.sh Chennai 13:05:24 80:16:12 'Asia/Calcutta' 2017 devanagri lagna

I get the above mentioned error.
Would you be able to help me out here ?

Many thanks,

Balavelan

@vvasuki
Copy link
Collaborator

vvasuki commented Dec 30, 2020

That's because write_daily_panchaanga_tex is long gone. This repo keeps getting out of sync with https://github.com/jyotisham/jyotisha .

My suggestion to you is to use https://github.com/jyotisham/jyotisha directly - it's not that much more difficult to create a python script yourself and run it.

My suggestion to @karthikraman is to archive this repo and instead improve the "beginners guide" docs in jyotisha as needed.

@tBalavelan
Copy link
Author

That's because write_daily_panchaanga_tex is long gone. This repo keeps getting out of sync with https://github.com/jyotisham/jyotisha .

My suggestion to you is to use https://github.com/jyotisham/jyotisha directly - it's not that much more difficult to create a python script yourself and run it.

My suggestion to @karthikraman is to archive this repo and instead improve the "beginners guide" docs in jyotisha as needed.

Hi Vishvas,

Many thanks for getting back on this. Just realised that the problem was in the sh script used for generating the calendar.
I had to change the script to point to the right file that was in the folder of jyothisha installation:
python3 -m jyotisha.panchaanga.writer.tex.daily_tex_writer <-- like this.

Now panchangam is generated successfully, but I have this font problem.

===============================================================================================
Completed panchangam computation successfully!
Generating PDF (log --> /tmp/cal-2020-Chennai-deva.texlog)...

kpathsea:make_tex: Invalid fontname `[siddhanta.ttf]/ICU', contains '['

!!! Error generating PDF! See /tmp/cal-2020-Chennai-deva.texlog:
!
! See the fontspec documentation for further information.
!
! For immediate help type H .
!...............................................

l.81 \setmainfont{siddhanta.ttf}
[Path=../fonts/,Script=Devanagari]
No pages of output.
Transcript written on daily-cal-2020-Chennai-deva.log.

Any inputs on this ? I have installed Tamil and Devanagri fonts in my system. particularly siddhanta.ttf is installed. but whatever I do, say like, use fc-cache or place the font in a "fonts" folder next to bin directory, I still get this error.

Please share your inputs on this.

Year 2021 Wishes.
Thanks,

Balavelan

@karthikraman
Copy link
Owner

If Siddhanta is installed, remove be the Path= part from the TeX and try compiling... Let me try out too

@rathankalluri
Copy link

@karthikraman Can you help me with this error i am seeing when running gen_daily_cal.sh. I am not able to identify why this error is popping. Nor i am able to understand what to change in that tex file to get the PDF.

image

@karthikraman
Copy link
Owner

This repo is defunct for the most part.. please see the jyotisha repo - https://github.com/jyotisham/jyotisha ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants