keep-it-markdown: Python errors and login problem

I am having a hard time getting this installed. Seems to be a problem with python but every attempt to correct it has failed. Initially it was just telling me that gkeepapi was not installed, but everything I do to fix it (including trying to install gkeepapi independently of requirements.txt) seems to make it worse. Here’s where I stand now…hope someone can help.

The following happens whether I use pip or pip3:

kalico@MacBook-Air keep-it-markdown-0.4.3 % pip install -r requirements.txt 
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = ':/Users/kalico/Library/Python/3.8/bin'
  program name = '/Library/Developer/CommandLineTools/usr/bin/python3'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/Library/Developer/CommandLineTools/usr/bin/python3'
  sys.base_prefix = '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8'
  sys.base_exec_prefix = '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8'
  sys.executable = '/Library/Developer/CommandLineTools/usr/bin/python3'
  sys.prefix = '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8'
  sys.exec_prefix = '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8'
  sys.path = [
    '',
    '/Users/kalico/Library/Python/3.8/bin',
    '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python38.zip',
    '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8',
    '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1311, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1275, in _path_importer_cache
PermissionError: [Errno 1] Operation not permitted

I set the following in my .zhsrc

export PATH="${PATH}:/Users/kalico/Library/Python/3.8/bin"
export PYTHONPATH="${PYTHONPATH}:/Users/kalico/Library/Python/3.8/bin"

I’m assuming something is wrong with my Python setup but I’m not sure exactly what.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 46 (25 by maintainers)

Most upvoted comments

Hello

I rebooted, made a new pw and it worked. I could not possibly be happier. Thank you!!

Tina

Not sure @jamesmortensen - just thought it might aim you towards a VM setup and login.

Wow! So sorry for all the hoops to jump through to get there. But, congrats!! Great job sleuthing it out!!!

The official Google Keep API is now available. Once kim moves to it, all these problems should go away.

PS - can you give me your full system environment specs? PC model, OS version, Python installation used, default browser (seems you have a Mac - but is Safari or Chrome your default)?