error from auto generation of latex version sfepy documentation in window 8
Hi there, I tried to regenerate latex version of original sfepy documentation and got encoding error: "ascii" codec can't encode characters.....at location of src/sfepy/base/parse_conf (see the attached snapshots below). I checked the files in sfepy/sfepy/base and sfepy/doc/src/sfepy/base and could not find any non-ascii characters there.
Other information:
OS: window 8, make: msysgit/bin/make, sphinx v1.2.2
If it is possible to generate sfepy doc on my machine, it is good for
me to add my sfepy-learning notes into it for myself.
ouyang
On 07/21/2014 03:15 AM, Ouyang wrote:
Hi there, I tried to regenerate latex version of original sfepy documentation and got encoding error: "ascii" codec can't encode characters.....at location of src/sfepy/base/parse_conf (see the attached snapshots below). I checked the files in sfepy/sfepy/base and sfepy/doc/src/sfepy/base and could not find any non-ascii characters there.
Other information: OS: window 8, make: msysgit/bin/make, sphinx v1.2.2 If it is possible to generate sfepy doc on my machine, it is good for
me to add my sfepy-learning notes into it for myself.
ouyang
Hi Ouyang,
Could you send the full traceback (as mentioned in the error message)?
r.
Hi Robert,
The attached two files are respectively a running info file and a trace back log file.
I "git" a new copy of sfepy from the site today and got same errors for latex doc make ( by the way, today's new copy of sfepy can not pass ./run_tests.py)
ouyang
On Monday, July 21, 2014 5:35:58 PM UTC+8, Robert Cimrman wrote:
Hi there, I tried to regenerate latex version of original sfepy documentation and got encoding error: "ascii" codec can't encode characters.....at location of src/sfepy/base/parse_conf (see the attached snapshots below). I checked
On 07/21/2014 03:15 AM, Ouyang wrote: the
files in sfepy/sfepy/base and sfepy/doc/src/sfepy/base and could not find any non-ascii characters there.
Other information: OS: window 8, make: msysgit/bin/make, sphinx v1.2.2 If it is possible to generate sfepy doc on my machine, it is good
for me to add my sfepy-learning notes into it for myself.
ouyang
Hi Ouyang,
Could you send the full traceback (as mentioned in the error message)?
r.
On 07/21/2014 03:30 PM, Ouyang wrote:
Hi Robert,
The attached two files are respectively a running info file and a trace back log file.
Did not help - sorry - no idea where the problem is. All I can advise for now is
make clean make latex
Btw. the html target (make html) works? That would be strange, as the failure seems to be in the docs reading stage, not the generation stage.
I "git" a new copy of sfepy from the site today and got same errors for latex doc make ( by the way, today's new copy of sfepy can not pass ./run_tests.py)
Works for me - try the clean-rebuild cycle as well, and if that does not help, let us know which test(s) fail (+ --debug output).
Thanks, r.
ouyang
On Monday, July 21, 2014 5:35:58 PM UTC+8, Robert Cimrman wrote:
Hi there, I tried to regenerate latex version of original sfepy documentation and got encoding error: "ascii" codec can't encode characters.....at location of src/sfepy/base/parse_conf (see the attached snapshots below). I checked
On 07/21/2014 03:15 AM, Ouyang wrote: the
files in sfepy/sfepy/base and sfepy/doc/src/sfepy/base and could not find any non-ascii characters there.
Other information: OS: window 8, make: msysgit/bin/make, sphinx v1.2.2 If it is possible to generate sfepy doc on my machine, it is good
for me to add my sfepy-learning notes into it for myself.
ouyang
Hi Ouyang,
Could you send the full traceback (as mentioned in the error message)?
r.
Hi Robert,
Still does not work for both "make latex" and "make html".
For the new copy of sfepy, error info and debgu info from run_tests.py are attached.
Anyway, I will keep them in mind and may find solutions inadvertently in future.
ouyang
On Monday, July 21, 2014 9:56:13 PM UTC+8, Robert Cimrman wrote:
On 07/21/2014 03:30 PM, Ouyang wrote:
Hi Robert,
The attached two files are respectively a running info file and a trace back log file.
Did not help - sorry - no idea where the problem is. All I can advise for now is
make clean make latex
Btw. the html target (make html) works? That would be strange, as the failure seems to be in the docs reading stage, not the generation stage.
I "git" a new copy of sfepy from the site today and got same errors for latex doc make ( by the way, today's new copy of sfepy can not pass ./run_tests.py)
Works for me - try the clean-rebuild cycle as well, and if that does not help, let us know which test(s) fail (+ --debug output).
Thanks, r.
ouyang
On Monday, July 21, 2014 5:35:58 PM UTC+8, Robert Cimrman wrote:
Hi there, I tried to regenerate latex version of original sfepy documentation and got encoding error: "ascii" codec can't encode characters.....at location of src/sfepy/base/parse_conf (see the attached snapshots below). I checked
On 07/21/2014 03:15 AM, Ouyang wrote: the
files in sfepy/sfepy/base and sfepy/doc/src/sfepy/base and could not find any non-ascii characters there.
Other information: OS: window 8, make: msysgit/bin/make, sphinx v1.2.2 If it is possible to generate sfepy doc on my machine, it is
good for me to add my sfepy-learning notes into it for myself.
ouyang
Hi Ouyang,
Could you send the full traceback (as mentioned in the error message)?
r.
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
I will try to install sfepy in a w8 virtual box, to see what is wrong. It would help to know your setup - how did you install sfepy and its dependencies.
For the new copy of sfepy, error info and debgu info from run_tests.py are attached.
That is strange - it seems that import_file() function does not work properly. Could you try applying the patch: diff --git a/sfepy/base/base.py b/sfepy/base/base.py index 95a3f45..52f55dc 100644 --- a/sfepy/base/base.py +++ b/sfepy/base/base.py @@ -140,9 +140,11 @@ def import_file(filename, package_name=None, can_reload=Tru name = os.path.splitext(os.path.basename(filename))[0] if package_name: + print '.'.join((package_name, name)) mod = __import__('.'.join((package_name, name)), fromlist=[name]) else: + print name mod = __import__(name) if (name in sys.modules) and can_reload: and re-run any failing test in debug mode?
Anyway, I will keep them in mind and may find solutions inadvertently in future.
Yeah, you will probably be faster then me installing a virtual w8 box :) r.
ouyang
On Monday, July 21, 2014 9:56:13 PM UTC+8, Robert Cimrman wrote:
On 07/21/2014 03:30 PM, Ouyang wrote:
Hi Robert,
The attached two files are respectively a running info file and a trace back log file.
Did not help - sorry - no idea where the problem is. All I can advise for now is
make clean make latex
Btw. the html target (make html) works? That would be strange, as the failure seems to be in the docs reading stage, not the generation stage.
I "git" a new copy of sfepy from the site today and got same errors for latex doc make ( by the way, today's new copy of sfepy can not pass ./run_tests.py)
Works for me - try the clean-rebuild cycle as well, and if that does not help, let us know which test(s) fail (+ --debug output).
Thanks, r.
ouyang
On Monday, July 21, 2014 5:35:58 PM UTC+8, Robert Cimrman wrote:
Hi there, I tried to regenerate latex version of original sfepy documentation and got encoding error: "ascii" codec can't encode characters.....at location of src/sfepy/base/parse_conf (see the attached snapshots below). I checked
On 07/21/2014 03:15 AM, Ouyang wrote: the
files in sfepy/sfepy/base and sfepy/doc/src/sfepy/base and could not find any non-ascii characters there.
Other information: OS: window 8, make: msysgit/bin/make, sphinx v1.2.2
If it is possible to generate sfepy doc on my machine, it is good for me to add my sfepy-learning notes into it for myself.
ouyang
Hi Ouyang,
Could you send the full traceback (as mentioned in the error message)?
r.
On Tuesday, July 22, 2014 3:45:08 AM UTC+8, Robert Cimrman wrote:
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
I will try to install sfepy in a w8 virtual box, to see what is wrong. It would help to know your setup - how did you install sfepy and its dependencies.
For the new copy of sfepy, error info and debgu info from run_tests.py are attached.
That is strange - it seems that import_file() function does not work properly. Could you try applying the patch:
diff --git a/sfepy/base/base.py b/sfepy/base/base.py index 95a3f45..52f55dc 100644 --- a/sfepy/base/base.py +++ b/sfepy/base/base.py @@ -140,9 +140,11 @@ def import_file(filename, package_name=None, can_reload=Tru name = os.path.splitext(os.path.basename(filename))[0]
if package_name: + print '.'.join((package_name, name)) mod = __import__('.'.join((package_name, name)), fromlist=[name])
else: + print name mod = __import__(name)
if (name in sys.modules) and can_reload:
and re-run any failing test in debug mode?
How to apply the patch? Never do this before. I will google it to see how
to do it. ouyang
Anyway, I will keep them in mind and may find solutions inadvertently in
future.
Yeah, you will probably be faster then me installing a virtual w8 box :)
r.
ouyang
On Monday, July 21, 2014 9:56:13 PM UTC+8, Robert Cimrman wrote:
On 07/21/2014 03:30 PM, Ouyang wrote:
Hi Robert,
The attached two files are respectively a running info file and a
trace
back log file.
Did not help - sorry - no idea where the problem is. All I can advise for now is
make clean make latex
Btw. the html target (make html) works? That would be strange, as the failure seems to be in the docs reading stage, not the generation stage.
I "git" a new copy of sfepy from the site today and got same errors for latex doc make ( by the way, today's new copy of sfepy can not pass ./run_tests.py)
Works for me - try the clean-rebuild cycle as well, and if that does not help, let us know which test(s) fail (+ --debug output).
Thanks, r.
ouyang
On Monday, July 21, 2014 5:35:58 PM UTC+8, Robert Cimrman wrote:
Hi there, I tried to regenerate latex version of original sfepy documentation and got encoding error: "ascii" codec can't encode characters.....at location of src/sfepy/base/parse_conf (see the attached snapshots below). I checked
On 07/21/2014 03:15 AM, Ouyang wrote: the
files in sfepy/sfepy/base and sfepy/doc/src/sfepy/base and could not find any non-ascii characters there.
Other information: OS: window 8, make: msysgit/bin/make, sphinx v1.2.2
If it is possible to generate sfepy doc on my machine, it is good for me to add my sfepy-learning notes into it for myself.
ouyang
Hi Ouyang,
Could you send the full traceback (as mentioned in the error message)?
r.
On 07/23/2014 02:45 PM, Ouyang wrote:
On Tuesday, July 22, 2014 3:45:08 AM UTC+8, Robert Cimrman wrote:
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
I will try to install sfepy in a w8 virtual box, to see what is wrong. It would help to know your setup - how did you install sfepy and its dependencies.
For the new copy of sfepy, error info and debgu info from run_tests.py are attached.
That is strange - it seems that import_file() function does not work properly. Could you try applying the patch:
diff --git a/sfepy/base/base.py b/sfepy/base/base.py index 95a3f45..52f55dc 100644 --- a/sfepy/base/base.py +++ b/sfepy/base/base.py @@ -140,9 +140,11 @@ def import_file(filename, package_name=None, can_reload=Tru name = os.path.splitext(os.path.basename(filename))[0]
if package_name: + print '.'.join((package_name, name)) mod = __import__('.'.join((package_name, name)), fromlist=[name])
else: + print name mod = __import__(name)
if (name in sys.modules) and can_reload:
and re-run any failing test in debug mode?
How to apply the patch? Never do this before. I will google it to see how
to do it.
The easiest thing is to open sfepy/base/base.py in an editor and add the print statements to import_file() :) r.
On Wednesday, July 23, 2014 9:17:15 PM UTC+8, Robert Cimrman wrote:
On 07/23/2014 02:45 PM, Ouyang wrote:
On Tuesday, July 22, 2014 3:45:08 AM UTC+8, Robert Cimrman wrote:
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
I will try to install sfepy in a w8 virtual box, to see what is wrong.
It
would help to know your setup - how did you install sfepy and its dependencies.
For the new copy of sfepy, error info and debgu info from run_tests.py are attached.
That is strange - it seems that import_file() function does not work properly. Could you try applying the patch:
diff --git a/sfepy/base/base.py b/sfepy/base/base.py index 95a3f45..52f55dc 100644 --- a/sfepy/base/base.py +++ b/sfepy/base/base.py @@ -140,9 +140,11 @@ def import_file(filename, package_name=None, can_reload=Tru name = os.path.splitext(os.path.basename(filename))[0]
if package_name: + print '.'.join((package_name, name)) mod = __import__('.'.join((package_name, name)), fromlist=[name])
else: + print name mod = __import__(name)
if (name in sys.modules) and can_reload:
and re-run any failing test in debug mode?
How to apply the patch? Never do this before. I will google it to see how to do it.
The easiest thing is to open sfepy/base/base.py in an editor and add the print statements to import_file() :)
r.
Found the problem. See https://groups.google.com/forum/#!topic/sfepy-devel/GKcexGbS5ZY ouyang
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
Re-hi Ouyang!
Could you try to build the sphinx docs with [1]?
r. [1] https://github.com/rc/sfepy
I will try that and report back.
ouyang
On Friday, July 25, 2014 9:00:52 PM UTC+8, Robert Cimrman wrote:
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
Re-hi Ouyang!
Could you try to build the sphinx docs with [1]?
r. [1] https://github.com/rc/sfepy
Hi Robert, I retest doc auto-generation and attach the results for your checking .
An error is from "defaults" of c:/python27/Lib/inspect.py when doc is auto-generated for either html or pdf:
spec = spec + formatvalue(defaults[i - firstdefault])
I changed inspect.py for testing purpose: case 1 and case 2, see the attached files respectively.
Using try...except... to throw out the exceptions in inspect.py (case 2) returns "finished". But the pdf file just has 383 pages less than the one from sfepy site.
For case 1, The error printed out of "defaults" is at around line 517 of make_inspect_case1.txt
Ouyang
On Friday, July 25, 2014 9:00:52 PM UTC+8, Robert Cimrman wrote:
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
Re-hi Ouyang!
Could you try to build the sphinx docs with [1]?
r. [1] https://github.com/rc/sfepy
Hi Ouyang,
On 07/27/2014 07:26 AM, Ouyang wrote:
Hi Robert, I retest doc auto-generation and attach the results for your checking .
An error is from "defaults" of c:/python27/Lib/inspect.py when doc is
auto-generated for either html or pdf:
spec = spec + formatvalue(defaults[i - firstdefault]) I changed inspect.py for testing purpose: case 1 and case 2, see the
attached files respectively.
Using try...except... to throw out the exceptions in inspect.py (case 2)
returns "finished". But the pdf file just has 383 pages less than the one from sfepy site.
This is because the entire chapter with examples is missing. The gallery images need to be generated, see [1], step 2.
[1] http://sfepy.org/doc-devel/release_tasks.html
For case 1, The error printed out of "defaults" is at around line 517 of
make_inspect_case1.txt
Did you try that with the following version?
git clone https://github.com/rc/sfepy.git
The commit should be 2a500bba6b, not the one that is on the title page of the SfePy.pdf.
r.
Ouyang
On Friday, July 25, 2014 9:00:52 PM UTC+8, Robert Cimrman wrote:
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
Re-hi Ouyang!
Could you try to build the sphinx docs with [1]?
r. [1] https://github.com/rc/sfepy
Oops. I got a wrong copy. Now "make latex" works.
Thank you, Robert.
ouyang
On Monday, July 28, 2014 4:49:20 AM UTC+8, Robert Cimrman wrote:
Hi Ouyang,
On 07/27/2014 07:26 AM, Ouyang wrote:
Hi Robert, I retest doc auto-generation and attach the results for your checking .
An error is from "defaults" of c:/python27/Lib/inspect.py when doc
is auto-generated for either html or pdf:
spec = spec + formatvalue(defaults[i - firstdefault]) I changed inspect.py for testing purpose: case 1 and case 2, see the
attached files respectively.
Using try...except... to throw out the exceptions in inspect.py
(case 2) returns "finished". But the pdf file just has 383 pages less than the one from sfepy site.
This is because the entire chapter with examples is missing. The gallery images need to be generated, see [1], step 2.
[1] http://sfepy.org/doc-devel/release_tasks.html
For case 1, The error printed out of "defaults" is at around line
517 of
make_inspect_case1.txt
Did you try that with the following version?
git clone https://github.com/rc/sfepy.git
The commit should be 2a500bba6b, not the one that is on the title page of the SfePy.pdf.
r.
Ouyang
On Friday, July 25, 2014 9:00:52 PM UTC+8, Robert Cimrman wrote:
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
Re-hi Ouyang!
Could you try to build the sphinx docs with [1]?
r. [1] https://github.com/rc/sfepy
participants (2)
-
Ouyang
-
Robert Cimrman