-
Notifications
You must be signed in to change notification settings - Fork 489
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
Qt5 error during pip install -e $ROBOSCHOOL_PATH #110
Comments
Check your PKG_CONFIG_PATH environment variable.
for example if you find the file inside: /usr/lib/x86_64-linux-gnu/pkgconfig/ it would be:
|
Thanks @TheCrazyT
[...] So i think it is pointing to the right folder. Unless I missed something. |
Hm never worked with anaconda. |
I have met the same problem ,have you solved the problem? |
Hi FitMachineLearning, I recommend downgrading to Sierra since I never got roboschool to work with High Sierra. You would have to perform a clean install to downgrade, tutorial here You should also downgrade python to 3.5.2 within Anaconda
Make sure you've defined $PKG_CONFIG_PATH within the same session that where you're performing installation. Have you tried installing with pip3?
It would be useful to know your:
|
The following solved it for me: (perhaps one of the paths here isn't necessary idk)
|
Thanks, @khoa-ngo . Downgrading to Sierra isn't an option for me. So I will try these instructions on High Sierra. |
@Phylliida thanks for the help. I must admit, this has been a very frustrating experience. |
Still no joy. I get the following... ` (p35) bash-3.2$ pwd (p35) bash-3.2$ export (p35) bash-3.2$ sudo pip3 install -e $ROBOSCHOOL_PATH
Command "python setup.py egg_info" failed with error code 1 in /Users/eljed/packages2/roboschool/ ` |
Try running your commands with sudo -H instead of sudo |
Thanks Phyllida, Tried sudo -H,
This is what I get.
…---
(p35) bash-3.2$ sudo -H pip3 install -e $ROBOSCHOOL_PATH
Password:
Obtaining file:///Users/eljed/packages2/roboschool
Complete output from command python setup.py egg_info:
found resource files: 185
running egg_info
Mac, assumed python3, homebrew branch
Link against python 3.5
Slow hardware or software render (no shadows)
rm -f ../robot-test-tool ../robot-test-tool_d ../cpp_household.so
../cpp_household_d.so .build-release/physics-bullet.o
.build-release/assets-mesh.o .build-release/random-world-tools.o
.build-release/render-glwidget.o .build-release/render-hud.o
.build-release/render-simple.o .build-release/render-simple-primitives.o
.build-release/test-tool-qt4.o .build-release/python-binding.o
.build-debug/physics-bullet.o .build-debug/assets-mesh.o
.build-debug/random-world-tools.o .build-debug/render-glwidget.o
.build-debug/render-hud.o .build-debug/render-simple.o
.build-debug/render-simple-primitives.o .build-debug/test-tool-qt4.o
.build-debug/python-binding.o
.generated/*.moc *.ilk *.pdb .build-release/physics-bullet.o.dep
.build-release/assets-mesh.o.dep .build-release/random-world-tools.o.dep
.build-release/render-glwidget.o.dep .build-release/render-hud.o.dep
.build-release/render-simple.o.dep
.build-release/render-simple-primitives.o.dep
.build-release/test-tool-qt4.o.dep .build-release/python-binding.o.dep
.build-debug/physics-bullet.o.dep .build-debug/assets-mesh.o.dep
.build-debug/random-world-tools.o.dep .build-debug/render-glwidget.o.dep
.build-debug/render-hud.o.dep .build-debug/render-simple.o.dep
.build-debug/render-simple-primitives.o.dep
.build-debug/test-tool-qt4.o.dep .build-debug/python-binding.o.dep
rm -rf .generated
rm -rf .build-debug
rm -rf .build-release
Mac, assumed python3, homebrew branch
Link against python 3.5
Slow hardware or software render (no shadows)
mkdir -p .generated
mkdir -p .build-release
mkdir -p .build-debug
gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function
-Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3
-march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
`pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5`
-Ibullet_local_install/include -Ibullet_local_install/include/bullet
-I/usr/local/include/bullet -c physics-bullet.cpp
-o.build-release/physics-bullet.o
-MMD -MF .build-release/physics-bullet.o.dep
Package Qt5Widgets was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Widgets.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Widgets' found
Package Qt5OpenGL was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5OpenGL.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5OpenGL' found
Package python-3.5 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.5.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python-3.5' found
gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function
-Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3
-march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
`pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5`
-Ibullet_local_install/include -Ibullet_local_install/include/bullet
-I/usr/local/include/bullet -c assets-mesh.cpp -o.build-release/assets-mesh.o
-MMD -MF .build-release/assets-mesh.o.dep
Package Qt5Widgets was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Widgets.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Widgets' found
Package Qt5OpenGL was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5OpenGL.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5OpenGL' found
Package python-3.5 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.5.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python-3.5' found
gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function
-Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3
-march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
`pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5`
-Ibullet_local_install/include -Ibullet_local_install/include/bullet
-I/usr/local/include/bullet -c random-world-tools.cpp
-o.build-release/random-world-tools.o
-MMD -MF .build-release/random-world-tools.o.dep
Package Qt5Widgets was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Widgets.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Widgets' found
Package Qt5OpenGL was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5OpenGL.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5OpenGL' found
Package python-3.5 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.5.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python-3.5' found
gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function
-Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3
-march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
`pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5`
-Ibullet_local_install/include -Ibullet_local_install/include/bullet
-I/usr/local/include/bullet -c render-glwidget.cpp
-o.build-release/render-glwidget.o
-MMD -MF .build-release/render-glwidget.o.dep
Package Qt5Widgets was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Widgets.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Widgets' found
Package Qt5OpenGL was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5OpenGL.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5OpenGL' found
Package python-3.5 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.5.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python-3.5' found
In file included from physics-bullet.cpp:1:
In file included from ./render-glwidget.h:1:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not
found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from assets-mesh.cpp:1:
./render-simple.h:6:10: 1 error generated.
make: *** [.build-release/physics-bullet.o] Error 1
make: *** Waiting for unfinished jobs....
fatal error: 'QtWidgets/QOpenGLWidget' file not found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from random-world-tools.cpp:3:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not
found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build-release/random-world-tools.o] Error 1
In file included from render-glwidget.cpp:2:
In file included from ./render-glwidget.h:1:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not
found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build-release/render-glwidget.o] Error 1
1 error generated.
make: *** [.build-release/assets-mesh.o] Error 1
cd /Users/eljed/packages2/roboschool/roboschool/cpp-household && make
clean && make -j4 dirs ../cpp_household.so
C++ dependencies for this project are:
bullet
tinyxml
boost_python
assimp
Qt5
If you see compilation error FIRST THING TO CHECK if pkg-config call
was successful.
Install dependencies that pkg-config cannot find.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/Users/eljed/packages2/roboschool/
On Tue, Mar 20, 2018 at 2:10 PM, Phylliida Dev ***@***.***> wrote:
Try running your commands with
sudo -H
instead of sudo
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#110 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AfwsP2Ix5WiSStE_BMGmvmo464KFiujEks5tgXA8gaJpZM4Rlw3I>
.
|
Ok Last try at this. Suspecting environment variable issues i did the following.
Unfortunately this still gives me the following error: (py35rs) Eljeds-iMac:lib eljed$ sudo -H pip3 install -e $ROBOSCHOOL_PATH
|
You have the formatting wrong: ‘’’ Should be ‘’’ (Don’t have the second equals sign) You might have hecked up that environment variable by putting an = in it, try starting a new terminal and then setting roboschool path and such again |
Thanks Phyllida, I have documented my full install process here Hopefully you might be able to spot something else that leads me to this error. if I am able to fix this error, I will create a video documenting the full correct install process to benefit all other researchers. |
Same problem.. |
OK at this point I am ready to pay someone some money to tell me what is still wrong here. I have followed the instructions and recommendations of many here to avail 1 - I have reinstalled my mac https://i.imgur.com/jxDEdr6.png I still get the same error. Am I setting the wrong env variable? I would really appreciate your help on this one. |
Hi @FitMachineLearning . It is usually not that hard to debug. What does |
Hi @olegklimov , When I run the above command this is what I get. https://i.imgur.com/8ysOnQm.png Not sure how to write a "hello world for Qt5. Doing you mean like this https://wiki.qt.io/Qt_for_Beginners |
Right, so it points to Qt inside Anaconda. If you want to do that, it's fine, but you've got to know what you are doing. This project is known to work with Qt as installed by homebrew. |
OK,
I will restart the install with the mac-os homebrew install instruction and
report back in a bit.
…On Sun, Apr 15, 2018 at 2:37 PM, Oleg Klimov ***@***.***> wrote:
Right, so it points to Qt inside Anaconda. If you want to do that, it's
fine, but you've got to know what you are doing. This project is known to
work with Qt as installed by homebrew.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#110 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AfwsP38EgCccp3V0Dbxej29QgCeiZUpLks5to72zgaJpZM4Rlw3I>
.
|
I do get the exact same error. See imaged ko |
Fix 'No package Python-3.5'. pkg-config fails, doesn't produce any flags. |
My apologies Oleg, I just noticed that in my output it says
I will find it and add it to the PKG_CONFIG_PATH and report back |
OK, Progress!!! https://i.imgur.com/1d2s4S3.png |
https://i.imgur.com/BKm1PFV.png |
Finally was able to install. Following the recommendations found here here I had to run I was finally able to run I will report back if once I have been able to ran an example. |
Thanks a million @olegklimov . The issue is discussed here so I will be closing this issue in a few days. If there is anyway I can help, even if it is for financial contribution/donation, I would love to. |
After full reinstall using Anaconda with a 3.5.2 environment using these instructions, I finally got the demo working by setting the right environment variables
In my case I didn't get have to use the python3.6m folders as I was doing a 3.5.2 install. Also make sure you do the following.
You may need to recompile roboschool with |
I have followed README instructions multiple times but I am not able to find solution for this. On the final step of the install during the "sudo pip install -e $ROBOSCHOLL_PATH" command, I get the following error.
I am on python 3.6 with Anaconda on Mac High Sierra.
" [...]
gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function -Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3 -march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5
-Ibullet_local_install/include -Ibullet_local_install/include/bullet -I/usr/local/include/bullet -c physics-bullet.cpp -o.build-release/physics-bullet.o -MMD -MF .build-release/physics-bullet.o.depPackage Qt5Widgets was not found in the pkg-config search path.
Perhaps you should add the directory containing
Qt5Widgets.pc' to the PKG_CONFIG_PATH environment variable No package 'Qt5Widgets' found Package Qt5OpenGL was not found in the pkg-config search path. Perhaps you should add the directory containing
Qt5OpenGL.pc'to the PKG_CONFIG_PATH environment variable
No package 'Qt5OpenGL' found
Package python-3.5 was not found in the pkg-config search path.
Perhaps you should add the directory containing
python-3.5.pc' to the PKG_CONFIG_PATH environment variable No package 'python-3.5' found gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function -Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3 -march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5-Ibullet_local_install/include -Ibullet_local_install/include/bullet -I/usr/local/include/bullet -c assets-mesh.cpp -o.build-release/assets-mesh.o -MMD -MF .build-release/assets-mesh.o.dep Package Qt5Widgets was not found in the pkg-config search path. Perhaps you should add the directory containing
Qt5Widgets.pc'to the PKG_CONFIG_PATH environment variable
No package 'Qt5Widgets' found
Package Qt5OpenGL was not found in the pkg-config search path.
Perhaps you should add the directory containing
Qt5OpenGL.pc' to the PKG_CONFIG_PATH environment variable No package 'Qt5OpenGL' found Package python-3.5 was not found in the pkg-config search path. Perhaps you should add the directory containing
python-3.5.pc'to the PKG_CONFIG_PATH environment variable
No package 'python-3.5' found
gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function -Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3 -march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5
-Ibullet_local_install/include -Ibullet_local_install/include/bullet -I/usr/local/include/bullet -c random-world-tools.cpp -o.build-release/random-world-tools.o -MMD -MF .build-release/random-world-tools.o.depPackage Qt5Widgets was not found in the pkg-config search path.
Perhaps you should add the directory containing
Qt5Widgets.pc' to the PKG_CONFIG_PATH environment variable No package 'Qt5Widgets' found Package Qt5OpenGL was not found in the pkg-config search path. Perhaps you should add the directory containing
Qt5OpenGL.pc'to the PKG_CONFIG_PATH environment variable
No package 'Qt5OpenGL' found
Package python-3.5 was not found in the pkg-config search path.
Perhaps you should add the directory containing
python-3.5.pc' to the PKG_CONFIG_PATH environment variable No package 'python-3.5' found gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function -Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3 -march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5-Ibullet_local_install/include -Ibullet_local_install/include/bullet -I/usr/local/include/bullet -c render-glwidget.cpp -o.build-release/render-glwidget.o -MMD -MF .build-release/render-glwidget.o.dep Package Qt5Widgets was not found in the pkg-config search path. Perhaps you should add the directory containing
Qt5Widgets.pc'to the PKG_CONFIG_PATH environment variable
No package 'Qt5Widgets' found
Package Qt5OpenGL was not found in the pkg-config search path.
Perhaps you should add the directory containing
Qt5OpenGL.pc' to the PKG_CONFIG_PATH environment variable No package 'Qt5OpenGL' found Package python-3.5 was not found in the pkg-config search path. Perhaps you should add the directory containing
python-3.5.pc'to the PKG_CONFIG_PATH environment variable
No package 'python-3.5' found
In file included from physics-bullet.cpp:1:
In file included from ./render-glwidget.h:1:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build-release/physics-bullet.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from assets-mesh.cpp:1:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from random-world-tools.cpp:3:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build-release/random-world-tools.o] Error 1
In file included from render-glwidget.cpp:2:
In file included from ./render-glwidget.h:1:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
make: *** [.build-release/render-glwidget.o] Error 1
make: *** [.build-release/assets-mesh.o] Error 1
cd /Users/eljed/packages/roboschool3/roboschool/roboschool/cpp-household && make clean && make -j4 dirs ../cpp_household.so
Command "python setup.py egg_info" failed with error code 1 in /Users/eljed/packages/roboschool3/roboschool/
Eljeds-iMac:build eljed$
The text was updated successfully, but these errors were encountered: