Skip to content

Conversation

@ii0606226
Copy link

Move import Server into if args.server: code block so it doesn't get imported when it's not used (i.e. on python nut.py --decompress <filename>) and doesn't throw an exception on pycurl-less systems (i.e. Windows as per requirements.txt, line 20).
Minimal testing done:
before change --decompress throws an exception;
after change --decompress works, -S throws an exception.

Move `import Server` into `if args.server:` code block so it doesn't get imported when it's not used (i.e. on `python nut.py --decompress <filename>`) and doesn't throw an exception on pycurl-less systems (i.e. Windows as per `requirements.txt`, line 20).
Minimal testing done:
before change `--decompress` throws an exception;
after change `--decompress` works, `-S` throws an exception.
@ghost
Copy link

ghost commented Oct 20, 2021

for pycurl on windows use the prebuilt wheel - https://github.com/blawar/nut/blob/master/tests/pycurl-7.43.0.5-cp39-cp39-win_amd64.whl

@introkun introkun requested a review from blawar March 26, 2024 21:58
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

Successfully merging this pull request may close these issues.

1 participant