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

Failed in installation " Did you mean : 'extra_compile_args' ?" #536

Open
xuannnnnnn opened this issue Feb 4, 2024 · 9 comments · Fixed by #537
Open

Failed in installation " Did you mean : 'extra_compile_args' ?" #536

xuannnnnnn opened this issue Feb 4, 2024 · 9 comments · Fixed by #537

Comments

@xuannnnnnn
Copy link

I downloaded the zip here and installed it by 'python setup.py install'
then it showed a NameError : name ' extra_link_args' is not defined.
I don't if it is a problem with my environment but I have followed all the requirements in the readthedocs, so it seems I do need some help now.
TFKZ0`)8D~8SPVHNQD}7 }F

@an-ivanov
Copy link
Contributor

Have made the pull request for this
#537

@Venkatakrishnan-M
Copy link

Venkatakrishnan-M commented Feb 21, 2024

Hello @xuannnnnnn . I am also facing the same issue. I am using windows 11 machine. I have downloaded all the required packages as mentioned in the https://nansat.readthedocs.io/en/latest/source/installation.html.

Where you able to solve this problem ? If so, can you please advise me how to install nansat properly.

Also @an-ivanov I saw your pull request and understand some modification is made to the setup.py file. Will the problem get solved by cloning your version ?

@an-ivanov
Copy link
Contributor

I have not merged the fixes into my master fork.
You can fork from this repo and merge my b1 and b2 branches into it.
Then use your own repo with the fixes.

Also @an-ivanov I saw your pull request and understand some modification is made to the setup.py file. Will the problem get solved by cloning your version ?

@Venkatakrishnan-M
Copy link

I have not merged the fixes into my master fork. You can fork from this repo and merge my b1 and b2 branches into it. Then use your own repo with the fixes.

Also @an-ivanov I saw your pull request and understand some modification is made to the setup.py file. Will the problem get solved by cloning your version ?

@an-ivanov Thanks for your advise and help. But I have one question, I am a noob in using github. I am not able to understand exactly what you are trying to say. Can you please tell me what branch I must fork and what branches should I merge ? After doing that I can clone that resultant repo and try installing the package right ? Thanks again for your help.

@an-ivanov
Copy link
Contributor

an-ivanov commented Feb 21, 2024

I'm afraid It will be too difficult for you then.
Just use:
pip install https://github.com/an-ivanov/nansat/archive/master.zip

@Venkatakrishnan-M
Copy link

Hello @an-ivanov. I tried your method. but now i am facing a new error. This is want I am getting now. Can you please advise what must be done ?

image

@aperrin66 aperrin66 linked a pull request Apr 11, 2024 that will close this issue
@aperrin66
Copy link
Member

aperrin66 commented Apr 11, 2024

@Venkatakrishnan-M you need a C compiler to compile pixel functions.
Since you are on Windows, it looks like you need to install Microsoft C++ build tools, you even have the link in the message you posted!

@LooperzZ
Copy link

building 'nansat._pixfun_py3' extension
creating build\temp.win-amd64-cpython-39
creating build\temp.win-amd64-cpython-39\Release
creating build\temp.win-amd64-cpython-39\Release\nansat
creating build\temp.win-amd64-cpython-39\Release\nansat\pixelfunctions
C:\software\vs2022\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\software\Anaconda3\envs\nansat3.9\Library\include -IC:\software\Anaconda3\envs\nansat3.9\include -IC:\software\Anaconda3\envs\nansat3.9\Include -IC:\software\vs2022\VC\Tools\MSVC\14.38.33130\include -IC:\software\vs2022\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcnansat/pixelfunctions/_pixfun_py3.c /Fobuild\temp.win-amd64-cpython-39\Release\nansat/pixelfunctions/_pixfun_py3.obj -nologo -DLL
_pixfun_py3.c
nansat/pixelfunctions/_pixfun_py3.c(2): fatal error C1083: 无法打开包括文件: “gdal.h”: No such file or directory error: command 'C:\software\vs2022\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for nansat
Running setup.py clean for nansat
Failed to build nansat
ERROR: Could not build wheels for nansat, which is required to install pyproject.toml-based projects

@aperrin66
Copy link
Member

@LooperzZ it looks like GDAL is not installed. Can you check that GDAL is installed in your anaconda 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

Successfully merging a pull request may close this issue.

5 participants