- Saved searches
- Use saved searches to filter your results more quickly
- Missing pyconfig.h raises unnesseccary error #1539
- Missing pyconfig.h raises unnesseccary error #1539
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- fatal error: ‘pyconfig.h’ file not found #1505
- fatal error: ‘pyconfig.h’ file not found #1505
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Problem building on Linux: «pyconfig.h» not found #199
- Problem building on Linux: «pyconfig.h» not found #199
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Problem building on Linux: «pyconfig.h» not found #199
- Problem building on Linux: «pyconfig.h» not found #199
- Comments
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
Missing pyconfig.h raises unnesseccary error #1539
Missing pyconfig.h raises unnesseccary error #1539
area:hooks Caused by or effecting some hook kind:support platform:Linux solution:not enough info Not enough info has been provided to solve or help. Fill out the issue template
Comments
While «compiling» a python file on Ubuntu studio 14.10 with Pyinstaller 3.0.dev6 and the —onedir tag it raises the error:
PyInstaller.compat.FileNotFoundError: Path or glob «/usr/include/python2.7/pyconfig.h» not found or matches no files.
Simply creating an emtpy pyconfig.h solved the problem.
The text was updated successfully, but these errors were encountered:
@matysek Well as stated in the original message I created an empty pyconfig.h . After that everything worked fine so I imagine that somewhere in the code only a check needs to be done weather this file exists and if not it creates an empty file. But should I still try deleting pyconfig.h, install python-dev and then check if a pyconfig.h is present?
@matysek Installing python.dev solved the problem too. But this should not be necessary because even with no information in pyconfig.h the processing still work fine. Because I am not one of the makers of Pyinstaller I don’t know if it uses a fallback if pyconfig.h is empty. In this case it would be ok for this error to occur but instead it should print a warning and create an empty pyconfig.h .
Processing (freezing) your application may work. But obviously your app is including on of the packages requiring pyconfig.h . E.g. sysconfig , distutils or numpy . And some function in there require pyconfig.h .
@htgoebel Indeed it might work too. The problem is not that its not working. Its just that I think that the error has no need to be risen. Maybe a warning but not an error. For the argumentation look at my answer to @matysek above. But I also might be completely wrong.
Hi there, I have exactly the same problem but I installed python3.4-dev and libpython3.4-dev with no success.
I’m in a virtual environment (in order to be able to use py3.4 without modifying my system) and it seems to be the problem.
EDIT: create an empty python.h in the folder does the trick and the compilation passes.
Which package of your Linux distribution includes the file /usr/include/python2.7/pyconfig.h ? This is the one you need to install.
I’m sorry. It has been two years and I have no idea what where or how. I am neither using 14.10 nor UbuntuStudio anymore. So I can not help you. Consider this either closed or postponed.
htgoebel added solution:not enough info Not enough info has been provided to solve or help. Fill out the issue template and removed state:need info Need more information for solve or help. labels Dec 5, 2017
I got this issue just barely. Running Linux Mint, using a Makefile, I got the following output:
pyinstaller -F -y -n PySpeedTest_v0.5.0_unix --specpath build --clean -c src/gui.py 17 INFO: PyInstaller: 3.3.1 18 INFO: Python: 2.7.12 18 INFO: Platform: Linux-4.8.0-53-generic-x86_64-with-LinuxMint-18.2-sonya 21 INFO: wrote build/PySpeedTest_v0.5.0_unix.spec 24 INFO: UPX is not available. 25 INFO: Removing temporary files and cleaning cache in /home/misha/.cache/pyinstaller 33 INFO: Extending PYTHONPATH with paths ['/mnt/hgfs/PySpeedMonitor/src', '/mnt/hgfs/PySpeedMonitor/build'] 35 INFO: checking Analysis 38 INFO: Building Analysis because out00-Analysis.toc is non existent 40 INFO: Initializing module dependency graph. 59 INFO: Initializing module graph hooks. 171 INFO: running Analysis out00-Analysis.toc 215 INFO: Caching module hooks. 234 INFO: Analyzing src/gui.py 2963 INFO: Processing pre-safe import module hook _xmlplus 3209 INFO: Processing pre-find module path hook distutils 4146 INFO: Loading module hooks. 4146 INFO: Loading module hook "hook-distutils.py". Unable to find "/usr/include/python2.7/pyconfig.h" when adding binary and data files. Makefile:55: recipe for target 'main' failed make: *** [main] Error 1
I was able to solve the error by installing the python-dev package. Not actually a problem for me, since I was able to solve it, but just wanted to give you guys more information. Hope this helps!
Info:
uname -a : Linux xxxxx-mintvm 4.8.0-53-generic #56~16.04.1-Ubuntu SMP Tue May 16 01:18:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Linux Mint VM running on Windows 10 host. x64 bit architecture.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
fatal error: ‘pyconfig.h’ file not found #1505
fatal error: ‘pyconfig.h’ file not found #1505
Comments
I am facing issue while building the nano blockchain.
- Clone the nano git and start the building process by using the command $sudo sh bootstrap_boost.sh
- I already installed the boots for mac Error I am facing while building as
`In file included from libs/python/src/list.cpp:5:
In file included from ./boost/python/list.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: ‘pyconfig.h’ file not found
include
^
1 error generated.
In file included from libs/python/src/long.cpp:5:
In file included from ./boost/python/long.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: ‘pyconfig.h’ file not found
include
^
1 error generated.
In file included from libs/python/src/dict.cpp:4:
In file included from ./boost/python/dict.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: ‘pyconfig.h’ file not found
include
^
1 error generated.
In file included from libs/python/src/tuple.cpp:5:
In file included from ./boost/python/tuple.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: ‘pyconfig.h’ file not found
include
^
1 error generated.
In file included from libs/python/src/str.cpp:4:
In file included from ./boost/python/str.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: ‘pyconfig.h’ file not found
include
^
1 error generated.
In file included from libs/python/src/slice.cpp:1:
In file included from ./boost/python/slice.hpp:9:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: ‘pyconfig.h’ file not found
include
^
1 error generated.
In file included from libs/python/src/converter/from_python.cpp:6:
In file included from ./boost/python/converter/from_python.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: ‘pyconfig.h’ file not found
include
^
1 error generated.
In file included from libs/python/src/converter/registry.cpp:5:
In file included from ./boost/python/converter/registry.hpp:7:
In file included from ./boost/python/type_id.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: ‘pyconfig.h’ file not found
include
^
`
I checked this command in my terminal to solve this issue as $export CPLUS_INCLUDE_PATH=»$CPLUS_INCLUDE_PATH:/usr/include/python2.7/»
I also added the file path in my bash_profile
export CPLUS_INCLUDE_PATH auto»>And python 2.7 lib path to check whether file ‘pyconfig.h’ is present and it is present.
/usr/include/python2.7
fileobject.h pycapsule.h unicodeobject.h floatobject.h pyconfig.h warnings.h frameobject.h pyctype.h
Current python version
$ python —version Python 3.7.0
Please help me to solve this error thank you
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
Problem building on Linux: «pyconfig.h» not found #199
Problem building on Linux: «pyconfig.h» not found #199
Comments
When building on Linux, the Setup.sh script is somehow unable to build Boost and I am getting a bunch of errors similar to as show below
# include ^ 1 error generated. "clang++" -c -x c++ -fPIC -std=c++1y -stdlib=libc++ -I../llvm-install/include/c++/v1 -O3 -Wno-inline -Wall -pthread -m64 -fPIC -std=c++1y -stdlib=libc++ -I../llvm-install/include/c++/v1 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/home/him/anaconda3/envs/tensorflow/include/python3.5" -o "bin.v2/libs/python/build/clang-linux-3.9/release/link-static/threading-multi/long.o" "libs/python/src/long.cpp" . failed clang-linux.compile.c++.without-pth bin.v2/libs/python/build/clang-linux-3.9/release/link-static/threading-multi/long.o. clang-linux.compile.c++.without-pth bin.v2/libs/python/build/clang-linux-3.9/release/link-static/threading-multi/numeric.o In file included from libs/python/src/numeric.cpp:6: In file included from ./boost/python/numeric.hpp:8: In file included from ./boost/python/detail/prefix.hpp:13: ./boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found
I tried using with and without default python compiler (using Anaconda one and system both), However still am getting the same bunch of errors. Any help or suggestion appreciated.
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
Problem building on Linux: «pyconfig.h» not found #199
Problem building on Linux: «pyconfig.h» not found #199
Comments
When building on Linux, the Setup.sh script is somehow unable to build Boost and I am getting a bunch of errors similar to as show below
# include ^ 1 error generated. "clang++" -c -x c++ -fPIC -std=c++1y -stdlib=libc++ -I../llvm-install/include/c++/v1 -O3 -Wno-inline -Wall -pthread -m64 -fPIC -std=c++1y -stdlib=libc++ -I../llvm-install/include/c++/v1 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/home/him/anaconda3/envs/tensorflow/include/python3.5" -o "bin.v2/libs/python/build/clang-linux-3.9/release/link-static/threading-multi/long.o" "libs/python/src/long.cpp" . failed clang-linux.compile.c++.without-pth bin.v2/libs/python/build/clang-linux-3.9/release/link-static/threading-multi/long.o. clang-linux.compile.c++.without-pth bin.v2/libs/python/build/clang-linux-3.9/release/link-static/threading-multi/numeric.o In file included from libs/python/src/numeric.cpp:6: In file included from ./boost/python/numeric.hpp:8: In file included from ./boost/python/detail/prefix.hpp:13: ./boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found
I tried using with and without default python compiler (using Anaconda one and system both), However still am getting the same bunch of errors. Any help or suggestion appreciated.
The text was updated successfully, but these errors were encountered: