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

Installation error on step 'pip install .' #188

Open
RishiPandey06 opened this issue Jul 5, 2023 · 11 comments
Open

Installation error on step 'pip install .' #188

RishiPandey06 opened this issue Jul 5, 2023 · 11 comments

Comments

@RishiPandey06
Copy link

Hi,
I am getting this error while on the step on pip install . given in the readme.
I have been trying to solve this for the past 1 week I do not understand the cause for this error.
error image

Here's my pytorch config:
image

Please let me know what I might be doing wrong or the changes I need to make, I'm running the exact same code mentioned in the readme even for the venv setup.

Thank you

@mzenk
Copy link
Collaborator

mzenk commented Jul 10, 2023

Hi Rishi, I assume you're talking about the task 1 readme. @RishiPandey06 can you send the complete output of the pip install command instead of a screenshot?
Maybe someone from the task-1 team help? (e.g. @brandon-edwards @psfoley; maybe also @Geeks-Sid because the screenshot looks similar to an error reported in issue #172)?
Since the challenge is currently not active, however, I'm not sure if someone from the Task-1 team is available soon, unfortunately...

@RishiPandey06
Copy link
Author

That was the whole error actually, and I saw the issue you mentioned but it only gave a solution for "gandalf" and not the issue I have.
Here is the entire error log I'm getting on pip install .

Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Processing d:\work\uofg\fets\challenge\task_1
Preparing metadata (setup.py) ... done
Collecting openfl@ git+https://github.com/intel/openfl.git@f4b28d710e2be31cdfa7487fdb4e8cb3a1387a5f (from fets-challenge==2.0)
Cloning https://github.com/intel/openfl.git (to revision f4b28d710e2be31cdfa7487fdb4e8cb3a1387a5f) to c:\users\hrish\appdata\local\temp\pip-install-niwmgaze\openfl_e197059e5cad4bb0897eb6f8b5339948
Running command git clone --filter=blob:none --quiet https://github.com/intel/openfl.git 'C:\Users\hrish\AppData\Local\Temp\pip-install-niwmgaze\openfl_e197059e5cad4bb0897eb6f8b5339948'
Running command git rev-parse -q --verify 'sha^f4b28d710e2be31cdfa7487fdb4e8cb3a1387a5f'
Running command git fetch -q https://github.com/intel/openfl.git f4b28d710e2be31cdfa7487fdb4e8cb3a1387a5f
Running command git checkout -q f4b28d710e2be31cdfa7487fdb4e8cb3a1387a5f
Resolved https://github.com/intel/openfl.git to commit f4b28d710e2be31cdfa7487fdb4e8cb3a1387a5f
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\hrish\AppData\Local\Temp\pip-install-niwmgaze\openfl_e197059e5cad4bb0897eb6f8b5339948\setup.py", line 79, in
long_description = f.read()
File "c:\python38\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6189: character maps to
[end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@RishiPandey06 RishiPandey06 reopened this Jul 12, 2023
@sunyeongan
Copy link

sunyeongan commented Mar 5, 2024

@RishiPandey06
Did you solve this problem? I'm experiencing the same problem.

--------ERROR LOG-----

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "C:\Users\asy10\AppData\Local\Temp\pip-install-0z8h_xpk\openfl_d27e7e9e78a04859acbb29d3ae303817\setup.py", line 79, in
long_description = f.read()
UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 5002: illegal multibyte sequence
[end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@PandeyRishiV
Copy link

@sunyeongan No, sadly I had to leave this project and create a federated learning model / env of my own. You could use tensorflows federated learning library to implement the same

@psfoley
Copy link
Collaborator

psfoley commented Jun 1, 2024

@RishiPandey06 @sunyeongan - this seems to be a compatibility bug with Windows for OpenFL (OpenFL experimentally supports Windows, but issues like this do come up occassionally). If possible to move forward, I would recommend migrating to Linux while my team looks into a fix.

@sunyeongan
Copy link

hi @psfoley
Following your advice, I am running the code in WSL on Windows in Ubuntu Linux 22.04 environment.
however
pip install .
An error occurs in the command.
image

Perhaps this issue is #172 (comment) is connected to

'GANDLF @ git+https://github.com/CBICA/GaNDLF.git@e4d0d4bfdf4076130817001a98dfb90189956278',
was changed to GANDLF @ git+https://github.com/sunyeongan/GaNDLF.git@ff6417f19c4da0eb64c50afb5d436887203f63c8',

With this change it will run. But I wonder if this is right

@kta-intel
Copy link
Collaborator

Hey @RishiPandey06 @sunyeongan

Re: Windows installation issue - can you try pinning OpenFL==v1.5 in the setup.py?
i.e. change

'openfl @ git+https://github.com/intel/openfl.git@f4b28d710e2be31cdfa7487fdb4e8cb3a1387a5f',

to openfl @ git+https://github.com/intel/[email protected]

@kta-intel
Copy link
Collaborator

I am running the code in WSL on Windows in Ubuntu Linux 22.04 environment. however pip install . An error occurs in the command. image

Perhaps this issue is #172 (comment) is connected to

'GANDLF @ git+https://github.com/CBICA/GaNDLF.git@e4d0d4bfdf4076130817001a98dfb90189956278',

was changed to GANDLF @ git+https://github.com/sunyeongan/GaNDLF.git@ff6417f19c4da0eb64c50afb5d436887203f63c8',
With this change it will run. But I wonder if this is right

Hmm, I did not run into this issue on my end. I wonder if it's a network issue. Though maybe not if you aren't running into issues cloning and installing other repos from source.

Can you try updating the URL?

'GANDLF @ git+https://github.com/CBICA/GaNDLF.git@e4d0d4bfdf4076130817001a98dfb90189956278',

to GANDLF @ git+https://github.com/mlcommons/GaNDLF.git@e4d0d4bfdf4076130817001a98dfb90189956278

Also might be helpful to update the commit to: mlcommons/GaNDLF@f13fb9c (same commit but contained within that repo)

@sunyeongan
Copy link

sunyeongan commented Jun 6, 2024

thank you for the reply. @kta-intel
It wasn't a network problem.

https://github.com/FeTS-AI/Challenge/blob/524d6b9f489ba852d601a437839abd937e5cab89/Task_1/setup.py#L30C5-L34C7

I solved the problem by installing each library as follows.

@kta-intel
Copy link
Collaborator

thank you for the reply. @kta-intel It wasn't a network problem.

https://github.com/FeTS-AI/Challenge/blob/524d6b9f489ba852d601a437839abd937e5cab89/Task_1/setup.py#L30C5-L34C7

I solved the problem by installing each library as follows.

Hey @sunyeongan, Thanks for the instructions. I just wanted to confirm something: did manually checking out and installing from that commit resolve the UnicodeDecodeError issue on Windows for you or was this in WSL/Linux?

@sunyeongan
Copy link

sunyeongan commented Jun 18, 2024

@kta-intel
When running on WSL/Linux, no UnicodeDecodeError occurred. This error occurred only when running setup.py in a Windows environment.

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

6 participants