Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It hangs on Python 3.7.4 #9

Open
gabrieluribegit opened this issue Jul 17, 2019 · 0 comments
Open

It hangs on Python 3.7.4 #9

gabrieluribegit opened this issue Jul 17, 2019 · 0 comments

Comments

@gabrieluribegit
Copy link

gabrieluribegit commented Jul 17, 2019

Using Homebrew, unfortunately updated from python 3.7.3 to 3.7.4 and broke my virtualenv. But convert-outlook-msg-file doesn't work even creating new virtualenv

Error after killing it:

  File "qt1.py", line 107, in convert_msg
    f.write(msg.as_bytes())
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/message.py", line 178, in as_bytes
    g.flatten(self, unixfrom=unixfrom)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/generator.py", line 116, in flatten
    self._write(msg)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/generator.py", line 195, in _write
    self._write_headers(msg)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/generator.py", line 418, in _write_headers
    self._fp.write(self.policy.fold_binary(h, v))
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/policy.py", line 200, in fold_binary
    folded = self._fold(name, value, refold_binary=self.cte_type=='7bit')
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/policy.py", line 206, in _fold
    return value.fold(policy=self)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/headerregistry.py", line 258, in fold
    return header.fold(policy=policy)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/_header_value_parser.py", line 157, in fold
    return _refold_parse_tree(self, policy=policy)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/_header_value_parser.py", line 2672, in _refold_parse_tree
    part.ew_combine_allowed, charset)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/_header_value_parser.py", line 2724, in _fold_as_ew
    get_unstructured(lines[-1][last_ew:] + to_encode))
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/_header_value_parser.py", line 1127, in get_unstructured
    _validate_xtext(vtext)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/_header_value_parser.py", line 979, in _validate_xtext
    if utils._has_surrogates(xtext):
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/email/utils.py", line 51, in _has_surrogates
    def _has_surrogates(s):
KeyboardInterrupt
Abort trap: 6

Troubleshooting:

Created a couple of virtualenv, installed compoundfiles, same issue.
Homebrew uninstalled python, and reinstalled, created new virtualenv, same issue.

Solution:

Uninstalled 3.7.4 and rolled back to python 3.7.3:
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/c24d6bcd4795e9263617e49f340cc61498eea5d3/Formula/python.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant