# metasrht-setup.txt -rw-r--r-- 1.1 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% python3 setup.py 
Traceback (most recent call last):
  File "/home/ancarda/src/git.sr.ht/~sircmpwn/meta.sr.ht/setup.py", line 9, in <module>
    with importlib.resources.path('srht', 'Makefile') as f:
  File "/usr/lib/python3.9/importlib/resources.py", line 165, in path
    _common.as_file(files(package).joinpath(_normalize_path(resource)))
  File "/usr/lib/python3.9/importlib/resources.py", line 147, in files
    return _common.from_package(_get_package(package))
  File "/usr/lib/python3.9/importlib/_common.py", line 14, in from_package
    return fallback_resources(package.__spec__)
  File "/usr/lib/python3.9/importlib/_common.py", line 18, in fallback_resources
    package_directory = pathlib.Path(spec.origin).parent
  File "/usr/lib/python3.9/pathlib.py", line 1071, in __new__
    self = cls._from_parts(args, init=False)
  File "/usr/lib/python3.9/pathlib.py", line 696, in _from_parts
    drv, root, parts = self._parse_args(args)
  File "/usr/lib/python3.9/pathlib.py", line 680, in _parse_args
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType