Reputation: 595
After giving up on Syleam's openerp jasper module, I am struggling with Nan Tic's jasper_reports module.
It keeps giving me an error:
File "C:\Program Files (x86)\OpenERP 6.1\Source\openerp-6.1-latest\openerp-6.1-20121113-003313\openerp\addons\jasper_reports\jasper_report.py", line 39, in <module>
from JasperReports import *
ImportError: No module named JasperReports
I am assuming it is looking for a java library of this name. I downloaded all files under java folder and also set the CLASSPATH.
Please suggest.
Thanks
Upvotes: 3
Views: 1445
Reputation: 69248
I suspect you either don't have all the files, or you don't have them in the right place. Looking at the code repository I see several folders, one of which is JasperReports. That seems to be what is missing from your installation.
From the web page:
-- jasper_reports | +-- custom_reports | +-- demo | +-- doc | +-- i18n | +-- JasperReports | | | |-- __init__.py | | | |-- AbstractDataGenerator.py | | | |-- BrowseDataGenerator.py | | | |-- JasperReport.py | | | |-- JasperServer.py | | | |-- RecordDataGenerator.py | +-- java | +-- report | +-- security | +-- wizard | |-- __init__.py | |-- __openerp__.py | |-- http_server.py | |-- jasper_demo.xml | |-- jasper_report.py | |-- jasper_wizard.xml | |-- report_xml.py | |-- report_xml_view.xml
As you can see, the fifth folder down is JasperReports
, and that is what seems to be missing from your installation.
Upvotes: 4