← Back to team overview

sikuli-driver team mailing list archive

[Bug 1873743] Re: [2.0.4] error when importing xlrd module (encoding error)

 

** Summary changed:

- error when importing xlrd module in 2.0.5 nightly
+ [2.0.4] error when importing xlrd module (encoding error)

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 2.0.5

** Summary changed:

- [2.0.4] error when importing xlrd module (encoding error)
+ [2.0.4] error when importing xlrd module (encoding error) --- workaround

** Description changed:

+ ----------------- workaround
+ delete the SikuliX copyright comment from the offending .py-file
+ 
+ -------------------------------------------------
+ 
  Delete content of %apppdata%/sikulix, launch sikuli 2.0.5 nightly
  
  run following code:
  
  import xlrd
  
  we get following error:
  
  [error] script [ sikulitemp-8174369599088720768 ] stopped with error in line 1
  [error] SyntaxError ( Non-ASCII character in file 'C:\Users\...\AppData\Roaming\Sikulix\Lib\xlrd\licences.py', but no encoding declared; see http://www.python.org/peps/pep-0263.html for details )
  [error] --- Traceback --- error source first
- line: module ( function ) statement 
+ line: module ( function ) statement
  11: __init__ (  <module> )     from . import licences
  1: main (  <module> )     import xlrd
  [error] --- Traceback --- end --------------

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1873743

Title:
  [2.0.4] error when importing xlrd module (encoding error) ---
  workaround

Status in Sikuli:
  Fix Committed

Bug description:
  ----------------- workaround
  delete the SikuliX copyright comment from the offending .py-file

  -------------------------------------------------

  Delete content of %apppdata%/sikulix, launch sikuli 2.0.5 nightly

  run following code:

  import xlrd

  we get following error:

  [error] script [ sikulitemp-8174369599088720768 ] stopped with error in line 1
  [error] SyntaxError ( Non-ASCII character in file 'C:\Users\...\AppData\Roaming\Sikulix\Lib\xlrd\licences.py', but no encoding declared; see http://www.python.org/peps/pep-0263.html for details )
  [error] --- Traceback --- error source first
  line: module ( function ) statement
  11: __init__ (  <module> )     from . import licences
  1: main (  <module> )     import xlrd
  [error] --- Traceback --- end --------------

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1873743/+subscriptions


References