spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.48k stars 3.1k forks source link

SyntaxError: invalid or missing encoding declaration for '/private/var/folders/n9/yr25m5sn46s51zz4jkxkcd740000gn/T/AppTranslocation/8A849B87-8161-494B-B48B-BCB92CDB81FE/d/Electrum.app/Contents/MacOS/run_electrum' #6550

Open TARS-bot opened 4 years ago

TARS-bot commented 4 years ago

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

  File "electrum/gui/qt/main_window.py", line 425, in on_network_qt
  File "electrum/gui/qt/main_window.py", line 331, in on_fx_quotes
  File "electrum/util.py", line 390, in <lambda>
  File "electrum/util.py", line 388, in do_profile
  File "logging/__init__.py", line 1366, in debug
  File "logging/__init__.py", line 1514, in _log
  File "logging/__init__.py", line 1524, in handle
  File "logging/__init__.py", line 1586, in callHandlers
  File "logging/__init__.py", line 894, in handle
  File "logging/__init__.py", line 1127, in emit
  File "logging/__init__.py", line 1033, in emit
  File "logging/__init__.py", line 956, in handleError
  File "/Users/user/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/traceback.py", line 190, in print_stack
  File "/Users/user/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/traceback.py", line 211, in extract_stack
  File "/Users/user/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/traceback.py", line 363, in extract
  File "/Users/user/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/traceback.py", line 285, in line
  File "/Users/user/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/linecache.py", line 16, in getline
  File "/Users/user/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/linecache.py", line 47, in getlines
  File "/Users/user/.pyenv/versions/3.7.7/Python.framework/Versions/3.7/lib/python3.7/linecache.py", line 136, in updatecache
  File "tokenize.py", line 449, in open
  File "tokenize.py", line 426, in detect_encoding
  File "tokenize.py", line 390, in find_cookie

SyntaxError: invalid or missing encoding declaration for '/private/var/folders/n9/yr25m5sn46s51zz4jkxkcd740000gn/T/AppTranslocation/8A849B87-8161-494B-B48B-BCB92CDB81FE/d/Electrum.app/Contents/MacOS/run_electrum'

Reporter

This issue was reported by 1 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.0.2 3.7.7 (default, Jun 23 2020, 16:29:54) [Clang 11.0.0 (clang-1100.0.33.17)] Darwin-19.5.0-x86_64-i386-64bit standard ? ℹ

Additional Information

The reporting user(s) did not provide additional information.

SomberNight commented 4 years ago

not sure what is going on, the line that is raising is a logging (stdlib) call... https://github.com/spesmilo/electrum/blob/3b5b020941a25495cb9e8625ba4c8299928c3714/electrum/util.py#L388