Am .04.2016, 17:16 Uhr, schrieb Paul Symonds <
paul.j....@gmail.com>:
> Charlie,
>
> Good afternoon, thank you for the assistance in installing openpyxl
> 2.4.0.
> I am now in a position to test features of this with my code base that
> works on the current release.
Good stuff.
> My environment for testing is as follows Anaconda 4.0.0 (do you recommend
> anything else).
> #
> et-xmlfile 1.0.1 <pip>
> jdcal 1.2 <pip>
> mkl 11.3.1 0 defaults
> numpy 1.11.0 py35_0 defaults
> openpyxl (c:\users\xxxxxx\openpyxl) 2.4.0 <pip>
> pandas 0.18.0 np111py35_0 defaults
> pip 8.1.1 py35_1 defaults
> python 3.5.1 4 defaults
> python-dateutil 2.5.2 py35_0 defaults
> pytz 2016.3 py35_0 defaults
> setuptools 20.3 py35_0 defaults
> six 1.10.0 py35_0 defaults
> vs2015_runtime 14.00.23026.0 0 defaults
> wheel 0.29.0 py35_0 defaults
No, that's fine.
> My code opens a template with the print area configure for 3 sheets along
> with many named references and then populates many other sheets then save
> as.
>
> any tips on how to debug this or what may be needed to fix. I am happy
> to invest time in helping where I can and within my ability and as my
> program progresses I can test the releases against my code.
>
> *When running my code I am getting the following error:*
>
> Traceback (most recent call last):
> File "of_main.py", line 30, in <module>
> main(sys.argv[1:])
> File "of_main.py", line 26, in main
> x = ofr.OF(cob_date, environment)
> File "D:\svn\of_main\of_reporting.py", line 46, in __init_
> _
> self.xlwriter = self.writer()
> File "D:\svn\of_main\of_reporting.py", line 96, in writer
> , self.env.REPORT_TEMPLATE))
> File "c:\users\xxxx\openpyxl\openpyxl\reader\excel.py", line 240, in
> load_
> workbook
> parser.assign_names()
> File "c:\users\xxxx\openpyxl\openpyxl\packaging\workbook.py", line 80,
> in
> assign_names
> sheet.print_area = _unpack_print_area(defn)
> File "c:\users\xxxx\openpyxl\openpyxl\workbook\defined_name.py", line
> 56,
> in _unpack_print_area
> return m.group("cells")
> AttributeError: 'NoneType' object has no attribute 'group'
hm, lemme guess: the print area is not a range of cells but another
defined name?
/me impersonates Father Jack
Can you run this in something that will let you debug it and let me know
what defn.value is? Also, if possible send me the file (directly or some
other means if it has sensitive information).
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel:
+49-211-600-3657
Mobile:
+49-178-782-6226