Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#25753] Byte-compile errors in some Python scripts
Date:
2011-01-21 16:11
Priority:
3
State:
Closed
Submitted by:
Shinsuke Irie (
irie
)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
Byte-compile errors in some Python scripts
Detailed description
I use Blender 2.56 rev. 34435 in Ubuntu 10.10 amd64.
When I try byte-compilation of Python scripts under scripts/addons/, I always get three errors as follows:
>>> import compileall
>>> compileall.compile_dir(".")
Listing . ...
Compiling ./add_curve_aceous_galore.py ...
*** File "./add_curve_aceous_galore.py", line 1
# ##### BEGIN GPL LICENSE BLOCK #####
^
SyntaxError: invalid character in identifier
Compiling ./add_curve_torus_knots.py ...
Compiling ./add_mesh_3d_function_surface.py ...
Listing ./add_mesh_BoltFactory ...
Compiling ./add_mesh_BoltFactory/createMesh.py ...
*** File "./add_mesh_BoltFactory/createMesh.py", line 1
# ##### BEGIN GPL LICENSE BLOCK #####
^
SyntaxError: invalid character in identifier
Compiling ./add_mesh_BoltFactory/original_script_add_mesh_bolt.py ...
*** File "./add_mesh_BoltFactory/original_script_add_mesh_bolt.py", line 1
# ##### BEGIN GPL LICENSE BLOCK #####
^
SyntaxError: invalid character in identifier
...
I found that these files start with the BOM (0xEF, 0xBB, 0xBF) which indicates utf-8 encoding.
Followup
Message
Date
: 2011-01-24 13:03
Sender
:
Campbell Barton
fixed r1490. added a check for BOM in your script checker too.
Date
: 2011-01-24 13:55
Sender
:
Shinsuke Irie
Confirmed. Thanks.
But currently these scripts seem not to work by another reason...
Attached Files:
No Files Currently Attached
Changes:
Field
Old Value
Date
By
status_id
Open
2011-01-24 13:03
campbellbarton
close_date
None
2011-01-24 13:03
campbellbarton
Status
Investigate
2011-01-24 13:03
campbellbarton
assigned_to
none
2011-01-21 18:08
ton
Status
New
2011-01-21 18:08
ton