kopano-migration-pst |NameError: name 'unicode' is not defined



  • Hi there,
    i am new to kopano and when i try to import a pst file to my installation i get the following errors:

    kopano-migration-pst -u sys 20190209.2126.sysop.pst -l DEBUG
    2019-02-09 23:21:07,009 - migration-pst - INFO - cannot open config file %s running with defaults
    2019-02-09 23:21:07,009 - migration-pst - INFO - cannot open config file %s running with defaults
    2019-02-09 23:21:07,009 - migration-pst - INFO - starting migration-pst
    2019-02-09 23:21:07,009 - migration-pst - INFO - starting migration-pst
    2019-02-09 23:21:07,012 - migration-pst - INFO - importing file '20190209.2126.sysop.pst'
    2019-02-09 23:21:07,012 - migration-pst - INFO - importing file '20190209.2126.sysop.pst'
    2019-02-09 23:21:07,107 - migration-pst - INFO - importing to user 'sys'
    2019-02-09 23:21:07,107 - migration-pst - INFO - importing to user 'sys'
    2019-02-09 23:21:08,014 - migration-pst - INFO - stopping migration-pst
    2019-02-09 23:21:08,014 - migration-pst - INFO - stopping migration-pst
    2019-02-09 23:21:08,015 - migration-pst - ERROR - Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/kopano/log.py", line 89, in log_exc
        try: yield
      File "/usr/lib/python3.6/site-packages/kopano/service.py", line 182, in start
        _daemon_helper(self.main, self, self.log)
      File "/usr/lib/python3.6/site-packages/kopano/service.py", line 59, in _daemon_helper
        func()
      File "/usr/lib/python3.6/site-packages/kopano_migration_pst/__init__.py", line 163, in main
        self.import_pst(p, self.server.user(name).store)
      File "/usr/lib/python3.6/site-packages/kopano_migration_pst/__init__.py", line 117, in import_pst
        root_path = rev_cp1252(next(folders).path) # skip root
      File "/usr/lib/python3.6/site-packages/kopano_migration_pst/__init__.py", line 31, in rev_cp1252
        if isinstance(value, unicode):
    NameError: name 'unicode' is not defined
    
    2019-02-09 23:21:08,015 - migration-pst - ERROR - Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/kopano/log.py", line 89, in log_exc
        try: yield
      File "/usr/lib/python3.6/site-packages/kopano/service.py", line 182, in start
        _daemon_helper(self.main, self, self.log)
      File "/usr/lib/python3.6/site-packages/kopano/service.py", line 59, in _daemon_helper
        func()
      File "/usr/lib/python3.6/site-packages/kopano_migration_pst/__init__.py", line 163, in main
        self.import_pst(p, self.server.user(name).store)
      File "/usr/lib/python3.6/site-packages/kopano_migration_pst/__init__.py", line 117, in import_pst
        root_path = rev_cp1252(next(folders).path) # skip root
      File "/usr/lib/python3.6/site-packages/kopano_migration_pst/__init__.py", line 31, in rev_cp1252
        if isinstance(value, unicode):
    NameError: name 'unicode' is not defined
    

    Any suggestions? did i need some additional packages for python or kopano?


  • Kopano

    Hi @sgieschen ,

    can you specify the exact version you encountered this with? Possibly also the os?



  • Hi @fbartels ,

    see version information below:

    Information for package kopano-migration-pst:
    ---------------------------------------------
    Repository     : openSUSE-Leap-15.0-Oss
    Name           : kopano-migration-pst
    Version        : 8.6.0.0-lp150.1.4
    Arch           : x86_64
    Vendor         : openSUSE
    Installed Size : 211.9 KiB
    Installed      : Yes
    Status         : up-to-date
    Source package : kopano-8.6.0.0-lp150.1.4.src
    Summary        : Utility to import PST files
    

  • Kopano

    @sgieschen i don’t recognise the version extension, but our packaging is already at 8.7.0 for customers and 8.7.80 for the nightly downloads. I’d recommend to look for an update.



  • @fbartels said in kopano-migration-pst |NameError: name 'unicode' is not defined:

    i don’t recognise the version extension, but our packaging is already at 8.7.0 for customers and 8.7.80 for the nightly downloads. I’d recommend to look for an update.

    Hi @fbartels ,

    thanks for your help. Its working with version 8.7.0.8-lp150.85.3

    Information for package kopano-migration-pst:
    ---------------------------------------------
    Repository     : Kopano Core (openSUSE_Leap_15.0)
    Name           : kopano-migration-pst
    Version        : 8.7.0.8-lp150.85.3
    Arch           : x86_64
    Vendor         : obs://build.opensuse.org/server:mail
    Installed Size : 231.7 KiB
    Installed      : Yes
    Status         : up-to-date
    Source package : kopano-8.7.0.8-lp150.85.3.src
    Summary        : Utility to import PST files
    

Log in to reply