Giter Club home page Giter Club logo

Comments (5)

tnipen avatar tnipen commented on August 28, 2024

Was that the entire error message, or was there more? It's a bit hard to tell what went wrong here :)

from gridpp.

fipoucat avatar fipoucat commented on August 28, 2024

Below entire error message:

Building wheels for collected packages: gridpp
Building wheel for gridpp (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/setup.py'"'"'; file='"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-wheel-vw19civz
cwd: /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/
Complete output (14 lines):
running bdist_wheel
running build
running build_ext
building '_gridpp' extension
creating build
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
creating build/temp.macosx-10.9-x86_64-3.8/src/api
/usr/local/bin/gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I./include -Iboost_1_74_0 -Iarmadillo-9.800.5/include -I/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/api/calc_gradient.cpp -o build/temp.macosx-10.9-x86_64-3.8/src/api/calc_gradient.o -Wall -Wfatal-errors -Wno-reorder -Wno-sign-compare -Wl,-init,initialize_omp -fopenmp
src/api/calc_gradient.cpp:1:10: fatal error: gridpp.h: No such file or directory
1 | #include "gridpp.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/local/bin/gcc-10' failed with exit status 1

ERROR: Failed building wheel for gridpp
Running setup.py clean for gridpp
Failed to build gridpp
Installing collected packages: gridpp
Running setup.py install for gridpp ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/setup.py'"'"'; file='"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-record-bp6zoyxz/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/sarr/Library/Python/3.8/include/python3.8/gridpp
cwd: /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/
Complete output (13 lines):
running install
running build_ext
building '_gridpp' extension
creating build
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
creating build/temp.macosx-10.9-x86_64-3.8/src/api
/usr/local/bin/gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I./include -Iboost_1_74_0 -Iarmadillo-9.800.5/include -I/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/api/calc_gradient.cpp -o build/temp.macosx-10.9-x86_64-3.8/src/api/calc_gradient.o -Wall -Wfatal-errors -Wno-reorder -Wno-sign-compare -Wl,-init,initialize_omp -fopenmp
src/api/calc_gradient.cpp:1:10: fatal error: gridpp.h: No such file or directory
1 | #include "gridpp.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/local/bin/gcc-10' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/setup.py'"'"'; file='"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-3q_szwe5/gridpp_a06d2a2a72914e7886507b1e05c05784/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-record-bp6zoyxz/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/sarr/Library/Python/3.8/include/python3.8/gridpp Check the logs for full command output.

from gridpp.

tnipen avatar tnipen commented on August 28, 2024

Thanks for the error report! I think I've fixed the problem with the source distribution. Could you try installing with the newest release (0.5.3) from pip? Let me know if that doesn't work.

from gridpp.

fipoucat avatar fipoucat commented on August 28, 2024

I tried again but still getting error?
pip install gridpp --user
Collecting gridpp
Using cached gridpp-0.5.3.tar.gz (164 kB)
Requirement already satisfied: numpy>=1.7 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from gridpp) (1.18.4)
Building wheels for collected packages: gridpp
Building wheel for gridpp (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-u3yau5is/gridpp_a1bef123431c4e2fa90feb84f83acc3f/setup.py'"'"'; file='"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-u3yau5is/gridpp_a1bef123431c4e2fa90feb84f83acc3f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-wheel-iyu0onwd
cwd: /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-u3yau5is/gridpp_a1bef123431c4e2fa90feb84f83acc3f/
Complete output (12 lines):
running bdist_wheel
running build
running build_ext
building '_gridpp' extension
creating build
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
creating build/temp.macosx-10.9-x86_64-3.8/src/api
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I./include -I/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/api/calc_gradient.cpp -o build/temp.macosx-10.9-x86_64-3.8/src/api/calc_gradient.o -Wall -Wfatal-errors -Wno-reorder -Wno-sign-compare -Wl,-init,initialize_omp -fopenmp -std=c++98
clang: warning: -Wl,-init,initialize_omp: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: unsupported option '-fopenmp'
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for gridpp
Running setup.py clean for gridpp
Failed to build gridpp
Installing collected packages: gridpp
Running setup.py install for gridpp ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-u3yau5is/gridpp_a1bef123431c4e2fa90feb84f83acc3f/setup.py'"'"'; file='"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-u3yau5is/gridpp_a1bef123431c4e2fa90feb84f83acc3f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-record-m_26ya7r/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/sarr/Library/Python/3.8/include/python3.8/gridpp
cwd: /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-u3yau5is/gridpp_a1bef123431c4e2fa90feb84f83acc3f/
Complete output (11 lines):
running install
running build_ext
building '_gridpp' extension
creating build
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
creating build/temp.macosx-10.9-x86_64-3.8/src/api
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I./include -I/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/api/calc_gradient.cpp -o build/temp.macosx-10.9-x86_64-3.8/src/api/calc_gradient.o -Wall -Wfatal-errors -Wno-reorder -Wno-sign-compare -Wl,-init,initialize_omp -fopenmp -std=c++98
clang: warning: -Wl,-init,initialize_omp: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: unsupported option '-fopenmp'
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-u3yau5is/gridpp_a1bef123431c4e2fa90feb84f83acc3f/setup.py'"'"'; file='"'"'/private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-install-u3yau5is/gridpp_a1bef123431c4e2fa90feb84f83acc3f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/wb/pry3ghxn4s30_yrgyynbrxs80000gn/T/pip-record-m_26ya7r/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/sarr/Library/Python/3.8/include/python3.8/gridpp Check the logs for full command output.

from gridpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.