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

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(css_file) #17

Open
rafaelreuber opened this issue Jul 24, 2020 · 6 comments

Comments

@rafaelreuber
Copy link

I just got the following error when use the markdown2pdf.

 [reuber@stormy hive-api]$ md2pdf ENDPOINTS.md --theme=github
Traceback (most recent call last):
  File "/home/reuber/envs/hive-api/bin/md2pdf", line 11, in <module>
    load_entry_point('Markdown2PDF==0.1.4', 'console_scripts', 'md2pdf')()
  File "/home/reuber/envs/hive-api/lib64/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/reuber/envs/hive-api/lib64/python3.8/site-packages/pkg_resources/__init__.py", line 2859, in load_entry_point
    return ep.load()
  File "/home/reuber/envs/hive-api/lib64/python3.8/site-packages/pkg_resources/__init__.py", line 2450, in load
    return self.resolve()
  File "/home/reuber/envs/hive-api/lib64/python3.8/site-packages/pkg_resources/__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/reuber/envs/hive-api/lib64/python3.8/site-packages/markdown2pdf/__init__.py", line 20
    print css_file
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(css_file)?

It' seems the pypi version is an old version.

@Sanil2108
Copy link

You could try https://pypi.org/project/markdown2pdf3/

@Caruso33
Copy link

markdown2pdf3 0.2.3

md2pdf README.md

Traceback (most recent call last):
  File "c:\users\tol\miniconda3\envs\smt\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\tol\miniconda3\envs\smt\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\tol\Miniconda3\envs\smt\Scripts\md2pdf.exe\__main__.py", line 4, in <module>     
  File "c:\users\tol\miniconda3\envs\smt\lib\site-packages\markdown2pdf3\__init__.py", line 3, in 
<module>
    from .main import convert_markdown_to_pdf
  File "c:\users\tol\miniconda3\envs\smt\lib\site-packages\markdown2pdf3\main.py", line 3, in <module>
    import pypandoc
ModuleNotFoundError: No module named 'pypandoc'

@Waples
Copy link

Waples commented Sep 2, 2021

same here....

@Sammeeey
Copy link

same here...

@sergenti
Copy link

+1

@saiteja21
Copy link

still the same, I guess this is not fixed

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

7 participants