Error While Installing Jasper

I am trying to install Jasper Report but i am getting this error.

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.github.com:443
DEBUG:urllib3.connectionpool:https://api.github.com:443 “GET /repos/frappe/jasper_erpnext_report HTTP/1.1” 404 None
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.github.com:443
DEBUG:urllib3.connectionpool:https://api.github.com:443 “GET /repos/erpnext/jasper_erpnext_report HTTP/1.1” 404 None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/make.py”, line 40, in get_app
get_app(git_url, branch=branch)
File “/home/frappe/.bench/bench/app.py”, line 115, in get_app
repo_name = git_url.rsplit(‘/’, 1)[1].rsplit(‘.’, 1)[0]
IndexError: list index out of range

Any help please

Please mention what is the link you used in get-app

bench get-app jasper_erpnext_report

Try this :-

bench get-app https://github.com/saguas/jasper_erpnext_report
bench --site [yoursite] install-app jasper_erpnext_report

Source : https://erpnext.org/app/jasper-report-integration

Using this now. Thanks

This is what i get using that

Traceback (most recent call last):
File “/usr/lib/python3.5/runpy.py”, line 184, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.5/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 22, in build
frappe.init(‘’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 162, in init
setup_module_map()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 951, in setup_module_map
for module in get_module_list(app):
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 825, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 783, in get_module
return importlib.import_module(modulename)
File “/home/frappe/frappe-bench/env/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 673, in _load_unlocked
File “”, line 665, in exec_module
File “”, line 222, in _call_with_frames_removed
File “/home/frappe/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/init.py”, line 23, in
from .utils.utils import get_Frappe_Version
File “/home/frappe/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/utils/utils.py”, line 162
print “MyJasperCustomScripletDefault method Teste {}”.format(args)
^
SyntaxError: invalid syntax

Hi,

Judging from above, it seems like the integration may not be compatible with Python 3. Are you using Python 3?

If so, you can fix this error by converting the print statement into print function and you can also use this as an opportunity to send a Pull Request.

1 Like

How do i go about this please?

Try editing line 162 in file “/home/frappe/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/utils/utils.py”

to

print(“MyJasperCustomScripletDefault method Teste {}”.format(args))

Also refer to this link to create a Pull Request:

https://help.github.com/articles/creating-a-pull-request/