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

Installing pynitrokey on mac Sequoia with pipx #614

Closed
randy368 opened this issue Jan 15, 2025 · 6 comments
Closed

Installing pynitrokey on mac Sequoia with pipx #614

randy368 opened this issue Jan 15, 2025 · 6 comments

Comments

@randy368
Copy link

Installing pipx correctly.
On command: pipx install pynitrokey --> Fatal error from pipx ...
pip seemed to fail to build package: hidapi<0.14.0.post4,>=0.14.0.post1

How can i solve? thank you.

@randy368
Copy link
Author

When I launch the command "pipx install pynitrokey" , this warning appears on the screen: The "xcrun" command requres the command tools. Would .. install? .. Ok, I tried but the download takes a long time. Is this the correct procedure?

@robin-nitrokey
Copy link
Member

pipx should produce a log file with more details about the error. Can you please share it as well as the output of pip debug --verbose?

@randy368
Copy link
Author

pipx should produce a log file with more details about the error. Can you please share it as well as the output of pip debug --verbose?

Thanks, copy and paste here the message from log file...
He understood the problem.. the fact is that I don't want to install all the XCODE package that my pc asks me when I launch the command "pipx install pynitrokey" (mac Sequoia shows me a message on the screen to install the missing files but by doing that, I download the whole application). How can I avoid this step? Is it possible, for example, to use another pipx command to install pynitrokey directly from github?

log:

PIP STDOUT

Collecting pynitrokey
Using cached pynitrokey-0.7.3-py3-none-any.whl.metadata (4.5 kB)
Collecting cffi (from pynitrokey)
Using cached cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl.metadata (1.5 kB)
Collecting click<9,>=8.1.6 (from pynitrokey)
Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
Collecting cryptography<45,>=43 (from pynitrokey)
Using cached cryptography-44.0.0-cp39-abi3-macosx_10_9_universal2.whl.metadata (5.7 kB)
Collecting ecdsa (from pynitrokey)
Using cached ecdsa-0.19.0-py2.py3-none-any.whl.metadata (29 kB)
Collecting fido2<2,>=1.2.0 (from pynitrokey)
Using cached fido2-1.2.0-py3-none-any.whl.metadata (1.4 kB)
Collecting hidapi<0.14.0.post4,>=0.14.0.post1 (from pynitrokey)
Using cached hidapi-0.14.0.post2.tar.gz (172 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'

PIP STDERR

error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
xcode-select: note: No developer tools were found, requesting install.
If developer tools are located at a non-default location on disk, use sudo xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools, and cancel the installation dialog.
See man xcode-select for more details.

......
......

subprocess.CalledProcessError: Command '['xcrun', '--show-sdk-path']' returned non-zero exit status 1.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Thanks a lot!

@robin-nitrokey
Copy link
Member

Normally, pipx should use pre-compiled binaries from PyPI instead of trying to compile them from source. I have a guess why this is not the case here, but to verify it I would need the output of pip debug --verbose.

@robin-nitrokey
Copy link
Member

I’ve prepared a fix for the suspected cause here: #615

You can try it with:

pipx install git+https://github.com/Nitrokey/pynitrokey.git@refs/pull/615/head --suffix=-pr615

Does that command run successfully?

@randy368
Copy link
Author

randy368 commented Jan 16, 2025

Hi, no it doesen't work but I fixed it by downloading the xcode command line!
Thanks for your support.

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