Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues installing this package #51

Open
waypointsoftware opened this issue Nov 28, 2023 · 1 comment
Open

Issues installing this package #51

waypointsoftware opened this issue Nov 28, 2023 · 1 comment

Comments

@waypointsoftware
Copy link

I have tried different versions of python to see if it helps, it does not.

Somewhere in this library there is some unicode characters that cant be decoded. I have installed other adafruit packages without issues.

I have also tried installing older versions of this package and get the same error.

Can anyone suggest what I can do?

install --progress-bar off adafruit-circuitpython-tca9548a
Looking in indexes: http://127.0.0.1:36628
127.0.0.1 - - [28/Nov/2023 18:15:52] "GET /adafruit-circuitpython-tca9548a/ HTTP/1.1" 200 -
Collecting adafruit-circuitpython-tca9548a
Using cached http://127.0.0.1:36628/adafruit-circuitpython-tca9548a/adafruit_circuitpython_tca9548a-0.7.2-py3-none-any.whl/
Requirement already satisfied: typing-extensions~=4.0 in c:\users\craig-pc\appdata\local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages (from adafruit-circuitpython-tca9548a) (4.8.0)
Requirement already satisfied: adafruit-circuitpython-typing in c:\users\craig-pc\appdata\local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages (from adafruit-circuitpython-tca9548a) (1.9.5)
Requirement already satisfied: Adafruit-Blinka in c:\users\craig-pc\appdata\local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages (from adafruit-circuitpython-tca9548a) (8.25.0)
Requirement already satisfied: adafruit-circuitpython-busdevice in c:\users\craig-pc\appdata\local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages (from adafruit-circuitpython-tca9548a) (5.2.6)
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\pkg_resources_init_.py", line 3021, in _dep_map
return self._dep_map
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 2815, in getattr
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\pkg_resources_init_.py", line 3012, in _parsed_pkg_info
return self.pkg_info
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 2815, in getattr
raise AttributeError(attr)
AttributeError: _pkg_info

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_internal\commands\install.py", line 369, in run
requirement_set = resolver.resolve(
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 373, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 213, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 203, in _get_updated_criteria
for requirement in self._p.get_dependencies(candidate=candidate):
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_internal\resolution\resolvelib\provider.py", line 237, in get_dependencies
return [r for r in candidate.iter_dependencies(with_requires) if r is not None]
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_internal\resolution\resolvelib\provider.py", line 237, in
return [r for r in candidate.iter_dependencies(with_requires) if r is not None]
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 395, in iter_dependencies
for r in self.dist.iter_dependencies():
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_internal\metadata\pkg_resources.py", line 199, in iter_dependencies
return self.dist.requires(extras)
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 2736, in requires
dm = self.dep_map
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 3023, in _dep_map
self.__dep_map = self.compute_dependencies()
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 3032, in _compute_dependencies
for req in self.parsed_pkg_info.get_all('Requires-Dist') or []:
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 3014, in parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 1424, in get_metadata
return value.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 2134: invalid start byte in METADATA file at path: c:\users\craig-pc\appdata\local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\lib\site-packages\adafruit_circuitpython_typing-1.9.5.dist-info\METADATA
Error Command '['C:\Users\CRAIG-PC\AppData\Local\pipkin\cache\workspaces\572d60ec1d3303b24c9425c8f5c5f661\Scripts\python.exe', '-I', '-m', 'pip', '--no-color', '--disable-pip-version-check', '--trusted-host', '127.0.0.1', 'install', '--no-compile', '--use-pep517', '--upgrade-strategy', 'only-if-needed', 'adafruit-circuitpython-tca9548a', '--index-url', 'http://127.0.0.1:36628']' returned non-zero exit status 2.

@caternuson
Copy link
Contributor

The OS appears to be Windows? What version?

What version of Python and Pip were being used here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants