Re: [gtk-osx-users] jhbuildrc TypeError issue.
- From: John Ralls <jralls ceridwen us>
- To: Pascal <p p14 orange fr>
- Cc: gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] jhbuildrc TypeError issue.
- Date: Fri, 21 Aug 2020 20:38:20 -0700
On Aug 21, 2020, at 1:14 PM, Pascal <p p14 orange fr> wrote:
Hello,
I've just run a fresh new jhbuild environment.
I've got this error:
% jhbuild bootstrap-gtk-osx
Loading .env environment variables…
### in jhbuildrc-custom
### /opt/xnadalib-2020 38
Traceback (most recent call last):
File "/opt/src-2020/Source/jhbuild/jhbuild/config.py", line 194, in load
execfile(filename, config)
File "/opt/src-2020/Source/jhbuild/jhbuild/utils/compat.py", line 67, in execfile
exec(code, globals, locals)
File "/opt/src-2020/config/jhbuildrc", line 609, in <module>
_python_install_path = os.path.join(prefix, 'lib', _python_ver, 'site-packages')
File "/opt/src-2020/.new_local/share/pyenv/versions/3.8.5/lib/python3.8/posixpath.py", line 90, in join
genericpath._check_arg_types('join', a, *p)
File "/opt/src-2020/.new_local/share/pyenv/versions/3.8.5/lib/python3.8/genericpath.py", line 152, in
_check_arg_types
raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'int'
jhbuild: could not load config file
Before the line 609 in jhbuildrc:
https://github.com/jralls/gtk-osx-build/blob/master/jhbuildrc-gtk-osx#L608
I've added debug prints, see above lines with ### prefix.
print (prefix, _python_ver)
It seems that the issue is that _python_ver is a number not a string.
It is ok if I changed the line to:
_python_install_path = os.path.join(prefix, 'lib', str(_python_ver), 'site-packages')
What is your feedback?
Pascal,
Makes sense. I've made the change and pushed it. Thanks.
Regards,
John Ralls
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]