Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

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

    Kopano Groupware Core
    2
    5
    569
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sgieschen
      sgieschen last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano last edited by

        Hi @sgieschen ,

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

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • sgieschen
          sgieschen last edited by

          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
          
          fbartels 1 Reply Last reply Reply Quote 0
          • fbartels
            fbartels Kopano @sgieschen last edited by

            @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.

            Regards Felix

            Resources:
            https://kopano.com/blog/how-to-get-kopano/
            https://documentation.kopano.io/
            https://kb.kopano.io/

            Support overview:
            https://kopano.com/support/

            1 Reply Last reply Reply Quote 0
            • sgieschen
              sgieschen last edited by

              @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
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post