You are not logged in.

#1 2020-12-12 07:34:25

Vivus
Member
Registered: 2016-06-22
Posts: 28

KiCad Phyton problem PYTHONHOME

Downgraded to python3.8
Solved. Sorry smile


Hello,

if i start kicad, it works. As soon as i start my layout editor, it fails:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = '/usr/bin/../lib/python3.8/site-packages'
  program name = 'python3'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/bin/python3'
  sys.base_prefix = '/usr'
  sys.base_exec_prefix = '/usr'
  sys.executable = '/usr/bin/python3'
  sys.prefix = '/usr'
  sys.exec_prefix = '/usr'
  sys.path = [
    '/usr/bin/../lib/python3.8/site-packages',
    '/usr/lib/python38.zip',
    '/usr/lib/python3.8',
    '/usr/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007ff9596b19c0 (most recent call first):
<no Python frame>

What i tried to do:
I changed my home variable:
export PYTHONHOME=/usr/bin/python3
Result: same error.

Who can help me?

Last edited by Vivus (2020-12-12 07:39:36)

Offline

#2 2020-12-12 08:07:23

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: KiCad Phyton problem PYTHONHOME

Edit: Please set your title to [SOLVED]

Arch by default uses python 3.9 if you downgraded python, then you are in a state where all repository packages depending on python (especially python libraries) won't work well anymore.

Last edited by progandy (2020-12-12 08:10:13)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2020-12-12 15:43:13

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: KiCad Phyton problem PYTHONHOME

Vivus wrote:

Downgraded to python3.8
Solved. Sorry smile

No, that doesn't solve the problem, that's a very temporary workaround. Are you running kicad from [community] and are you fully up to date (post exact current version of kicad you have installed)? Then it's likely a bug (packaging or upstream with Python 3.9).

Offline

#4 2020-12-22 20:02:15

Vivus
Member
Registered: 2016-06-22
Posts: 28

Re: KiCad Phyton problem PYTHONHOME

You are right.
I use kicad-git-5.99.0.r6897.g5c309f0fef-1
Same problem with python-3.9.1-1

Last edited by Vivus (2020-12-22 20:06:10)

Offline

#5 2020-12-23 10:40:11

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: KiCad Phyton problem PYTHONHOME

Did you rebuild kicad-git? If not, do so.

Offline

#6 2020-12-25 18:07:21

Vivus
Member
Registered: 2016-06-22
Posts: 28

Re: KiCad Phyton problem PYTHONHOME

Stefan Husmann wrote:

Did you rebuild kicad-git? If not, do so.

solved it. thank you!

Offline

Board footer

Powered by FluxBB