bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.43k stars 2.86k forks source link

pip install pybullet fails on mac high sierra #1593

Closed gobears closed 6 years ago

gobears commented 6 years ago

(disclaimer: my system is particularly messed up so...

(plstensor) Daniels-MacBook-Pro:sensenet Daniel$ uname -a Darwin Daniels-MacBook-Pro.local 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64)

terminal>

mples/OpenGLWindow/MacOpenGLWindowObjC.m:326:6: error: ‘NSApp’ undeclared (first use in this function) [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; ^ examples/OpenGLWindow/MacOpenGLWindowObjC.m:326:6: note: each undeclared identifier is reported only once for each function it appears in examples/OpenGLWindow/MacOpenGLWindowObjC.m:334:5: warning: ‘NSProcessInfo’ may not respond to ‘+processInfo’ [enabled by default] id appName = [[NSProcessInfo processInfo] processName]; ^ examples/OpenGLWindow/MacOpenGLWindowObjC.m:337:51: warning: passing argument 2 of ‘initWithTitle:action:keyEquivalent:’ from incompatible pointer type [enabled by default] action:@selector(terminate:) keyEquivalent:@"q"] autorelease]; ^ examples/OpenGLWindow/MacOpenGLWindowObjC.m:337:51: note: expected ‘id’ but argument is of type ‘struct objc_selector ’ examples/OpenGLWindow/MacOpenGLWindowObjC.m:361:5: warning: passing argument 2 of ‘initWithTitle:action:keyEquivalent:’ from incompatible pointer type [enabled by default] NSMenuItem copyItem = [[NSMenuItem alloc]initWithTitle:@"Copy" action:@selector(copy:) keyEquivalent:@"c"]; ^ examples/OpenGLWindow/MacOpenGLWindowObjC.m:361:5: note: expected ‘id’ but argument is of type ‘struct objc_selector ’ examples/OpenGLWindow/MacOpenGLWindowObjC.m:432:5: warning: ‘NSWindow’ may not respond to ‘-setContentView:’ [enabled by default] [m_internalData->m_window setContentView: m_internalData->m_myview]; ^ examples/OpenGLWindow/MacOpenGLWindowObjC.m: In function ‘Mac_updateWindow’: examples/OpenGLWindow/MacOpenGLWindowObjC.m:786:10: warning: ‘NSDate’ may not respond to ‘+distantPast’ [enabled by default] untilDate:[NSDate distantPast] ^ examples/OpenGLWindow/MacOpenGLWindowObjC.m:773:8: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] GLint err = glGetError(); ^ examples/OpenGLWindow/MacOpenGLWindowObjC.m: In function ‘Mac_fileOpenDialog’: examples/OpenGLWindow/MacOpenGLWindowObjC.m:1167:5: warning: ‘NSOpenGLContext’ may not respond to ‘+currentContext’ [enabled by default] NSOpenGLContext foo = [NSOpenGLContext currentContext]; ^ examples/OpenGLWindow/MacOpenGLWindowObjC.m:1170:2: warning: ‘NSArray’ may not respond to ‘+arrayWithObjects:’ [enabled by default] NSArray * zAryOfExtensions = [NSArray arrayWithObjects:@"urdf",@"bullet",@"obj",@"sdf",@"stl",nil]; ^ examples/OpenGLWindow/MacOpenGLWindowObjC.m:1171:5: warning: ‘NSOpenPanel’ may not respond to ‘-setAllowedFileTypes:’ [enabled by default] [zOpenPanel setAllowedFileTypes:zAryOfExtensions]; ^ error: command 'gcc' failed with exit status 1


Failed building wheel for pybullet Running setup.py clean for pybullet Failed to build pybullet Installing collected packages: pybullet Running setup.py install for pybullet ... error Complete output from command /Users/Daniel/anaconda/envs/plstensor/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/lj/1lm16rkx41x6yskn6cwx0mzm0000gn/T/pip-build-irm4414l/pybullet/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/lj/1lm16rkx41x6yskn6cwx0mzm0000gn/T/pip-ggya5h1w-record/install-record.txt --single-version-externally-managed --compile: macosx-10.7-x86_64 numpy is enabled. numpy_include_dirs = /Users/Daniel/anaconda/envs/plstensor/lib/python3.6/site-packages/numpy/core/include darwin! found resource files: 3217 -- duckCM.png -- textured_sphere_smooth.obj -- cube.png -- cartpole.urdf -- pr2_gripper.urdf -- stadium.sdf -- checker_blue.png -- cube_small.urdf -- l_finger.stl -- samurai_monastry.obj -- sphere2.urdf -- plane.obj -- duck_vhacd.urdf -- teddy2_VHACD_CHs.obj -- duck_vhacd.obj -- plane100.urdf -- duck.obj -- sphere_smooth.mtl -- l_finger_collision.stl -- sphere2red.urdf -- cube.obj -- plane100.obj -- r2d2.urdf -- checker_huge.gif -- plane.mtl -- samurai_monastry.mtl -- duck.dae -- sphere2red_nocol.urdf -- sphere_smooth.obj -- duck.mtl -- sphere_small.urdf -- l_finger_tip.stl -- block.urdf -- plane.urdf -- textured_sphere_smooth.mtl -- stadium_no_collision.sdf -- samurai.urdf -- teddy_vhacd.urdf -- mjcf/hello_mjcf.xml -- mjcf/cylinder_fromtoZ.xml -- mjcf/cylinder_fromtoX.xml -- mjcf/striker.xml -- mjcf/cylinder_fromtoY.xml -- mjcf/reacher.xml -- mjcf/inverted_pendulum.xml -- mjcf/swimmer.xml -- mjcf/inverted_double_pendulum.xml -- mjcf/half_cheetah.xml -- mjcf/capsule_fromtoZ.xml -- mjcf/ant.xml -- mjcf/humanoid_symmetric_no_ground.xml -- mjcf/capsule_fromtoY.xml -- mjcf/capsule.xml -- mjcf/capsule_fromtoX.xml -- mjcf/humanoid_fixed.xml -- mjcf/pusher.xml -- mjcf/hopper.xml -- mjcf/humanoid_symmetric.xml -- mjcf/walker2d.xml -- mjcf/ground.xml -- mjcf/cylinder.xml -- mjcf/ground_plane.xml -- mjcf/humanoid.xml -- mjcf/thrower.xml -- differential/diff_leftshaft.stl -- differential/diff_arm.stl -- differential/diff_spider.stl -- differential/diff_spider_shaft.stl -- differential/diff_rightshaft.stl -- differential/diff_side.stl -- differential/diff_motor_cover.stl -- differential/diff_ring.stl -- differential/diff_carrier_cover.stl -- differential/diff_ring.urdf -- differential/diff_stand.stl -- differential/diff_pinion.stl -- differential/diff_carrier.stl -- kuka_iiwa/model.sdf -- kuka_iiwa/model_vr_limits.urdf -- kuka_iiwa/model_free_base.urdf -- kuka_iiwa/model2.sdf -- kuka_iiwa/kuka_world.sdf -- kuka_iiwa/kuka_with_gripper.sdf -- kuka_iiwa/kuka_with_gripper2.sdf -- kuka_iiwa/model.urdf -- kuka_iiwa/model_for_sdf.urdf -- kuka_iiwa/meshes/link_2.mtl -- kuka_iiwa/meshes/link_3.mtl -- kuka_iiwa/meshes/link_1.mtl -- kuka_iiwa/meshes/link_0.mtl -- kuka_iiwa/meshes/link_4.mtl -- kuka_iiwa/meshes/link_5.mtl -- kuka_iiwa/meshes/link_7.mtl -- kuka_iiwa/meshes/finger_tip_left.stl -- kuka_iiwa/meshes/link_6.mtl -- kuka_iiwa/meshes/finger_base_right.stl -- kuka_iiwa/meshes/link_6.stl -- kuka_iiwa/meshes/link_7.stl -- kuka_iiwa/meshes/link_5.stl -- kuka_iiwa/meshes/finger_base_left.stl -- kuka_iiwa/meshes/link_4.stl -- kuka_iiwa/meshes/link_0.stl -- kuka_iiwa/meshes/link_1.stl -- kuka_iiwa/meshes/link_3.stl -- kuka_iiwa/meshes/link_2.stl -- kuka_iiwa/meshes/link_1.obj -- kuka_iiwa/meshes/link_0.obj -- kuka_iiwa/meshes/link_2.obj -- kuka_iiwa/meshes/link_3.obj -- kuka_iiwa/meshes/finger_tip_right.stl -- kuka_iiwa/meshes/link_7.obj -- kuka_iiwa/meshes/link_6.obj -- kuka_iiwa/meshes/link_4.obj -- kuka_iiwa/meshes/link_5.obj -- kiva_shelf/model.sdf -- kiva_shelf/meshes/pod_lowres.stl -- quadruped/quadruped.urdf -- quadruped/tmotor3.obj -- quadruped/t-motor.jpg -- quadruped/tmotor3.mtl -- quadruped/minitaur_v1.urdf -- quadruped/minitaur.urdf -- quadruped/minitaur_fixed_knees.urdf -- quadruped/minitaur_fixed_all.urdf -- racecar/racecar.urdf -- racecar/racecar_differential.urdf -- racecar/meshes/left_steering_hinge.STL -- racecar/meshes/left_front_wheel.obj -- racecar/meshes/right_rear_wheel.obj -- racecar/meshes/left_rear_wheel.obj -- racecar/meshes/checker_blue.png -- racecar/meshes/chassis.dae -- racecar/meshes/cone.obj -- racecar/meshes/right_front_wheel.mtl -- racecar/meshes/wheel.jpg -- racecar/meshes/right_steering_hinge.STL

...

...

...

oller:(NSFetchedResultsController )controller sectionIndexTitleForSectionName:(NSString )sectionName API_AVAILABLE(macosx(10.12),ios(4.0)); ^ In file included from /System/Library/Frameworks/CoreData.framework/Headers/CoreData.h:52:0, from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:14, from examples/OpenGLWindow/MacOpenGLWindowObjC.m:6: /System/Library/Frameworks/CoreData.framework/Headers/NSQueryGenerationToken.h:16:17: error: unknown property attribute before ‘,’ token @property (class, readonly, strong) NSQueryGenerationToken currentQueryGenerationToken; // Used to inform a context that it should use the current generation ^ /System/Library/Frameworks/CoreData.framework/Headers/NSQueryGenerationToken.h:16:1: note: ‘assign’ can be unsafe for Objective-C objects; please state explicitly if you need it @property (class, readonly, strong) NSQueryGenerationToken currentQueryGenerationToken; // Used to inform a context that it should use the current generation ^ In file included from /System/Library/Frameworks/CoreData.framework/Headers/CoreData.h:53:0, from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:14, from examples/OpenGLWindow/MacOpenGLWindowObjC.m:6: /System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h:31:26: error: unknown property attribute before ‘)’ token @property (copy, nullable) NSString configuration; ^ /System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h:32:26: error: unknown property attribute before ‘)’ token @property (copy, nullable) NSURL URL; ^ /System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h:33:61: error: expected ‘>’ before ‘’ token @property (nonatomic, copy, readonly) NSDictionary<NSString , NSObject > options; ^ /System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h:33:61: error: cannot find protocol declaration for ‘NSString’ /System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h:35:1: error: unknown type name ‘nullable’

milutter commented 6 years ago

This cannot be a general problem of MacOS High Sierra as I could install pybullet 1.9.2 with kernel version 17.4.0

erwincoumans commented 6 years ago

High Sierra is my main development platform, it installs flawless.

You may need to reinstall xcode, xcode command-line tools, anaconda Python or even your entire operating system.