kivent_cymunk installed but missing Cymunk

49 views
Skip to first unread message

Kenneth Solano

unread,
Apr 4, 2018, 11:36:52 AM4/4/18
to KivEnt
Hi,

  • I'm using Windows 10 (64 bit)
  • Installed Python 3.6.5 (64 bit) as normal.
  • I followed Kivy's installation instructions (the stable version at the top of the documentation, not the development one).
https://kivy.org/docs/installation/installation-windows.html
  • Installed KivEnt from the wheels in this link:
https://github.com/PureAsbestos/KivEnt-Wheels-Win64-Py3.6

  • Everything installed with no errors.

Testing:

  • Open CMD.
  • Write "python" to start the python console.
  • Write "import kivent_core" and there's no error.
  • Write "import kivent_cymunk" there's an error as cymunk can't be found.
  • Write "import cymunk"
>>> import cymunk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python\Python36\cymunk-master\cymunk\__init__.py", line 1, in <module>
    from .cymunk import *
ModuleNotFoundError: No module named 'cymunk.cymunk'

  • Download cymunk from github master as a zip file and uncompress in the directory containing Python36
  • Enter the cymunk-master directory (C:\Python\Python36\cymunk-master\)
  • Write "setup.py install" and get a larger log ending as follows:

cymunk.c
c:\python\python36\cymunk-master\cymunk\chipmunk/chipmunk.h(36): fatal error C1083: Cannot open include file: 'alloca.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

  •  Try to reinstall kivent_cymunk from the wheel again.
C:\Python\Python36>pip install KivEnt_Cymunk-1.0.0-cp36-cp36m-win_amd64.whl
Requirement already satisfied: KivEnt-Cymunk==1.0.0 from file:///C:/Python/Python36/KivEnt_Cymunk-1.0.0-cp36-cp36m-win_amd64.whl in c:\python\python36\lib\site-packages

How can I fix it?

Kenneth Solano

unread,
Apr 4, 2018, 11:52:08 AM4/4/18
to KivEnt
I also ran a test using the examples that come with KivEnt

Running the example 4_adding_physics_objects

C:\Python\Python36\kivent_examples\4_adding_physics_objects>main.py
[INFO   ] [Logger      ] Record log in C:\Users\Kenneth\.kivy\logs\kivy_18-04-04_11.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] [OSC         ] using <thread> for socket
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] GLEW initialization succeeded
[INFO   ] [GL          ] Backend used <glew>
[INFO   ] [GL          ] OpenGL version <b'4.6.0 NVIDIA 388.43'>
[INFO   ] [GL          ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO   ] [GL          ] OpenGL renderer <b'GeForce GTX 770M/PCIe/SSE2'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60 NVIDIA'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [AudioGstplayer] Using Gstreamer 1.10.2.0
[INFO   ] [Audio       ] Providers: audio_gstplayer, audio_sdl2 (audio_ffpyplayer ignored)
 Traceback (most recent call last):
   File "C:\Python\Python36\kivent_examples\4_adding_physics_objects\main.py", line 8, in <module>
     import kivent_cymunk
   File "C:\Python\Python36\lib\site-packages\kivent_cymunk\__init__.py", line 6, in <module>
     from kivent_cymunk import physics
   File "constraint.pxd", line 90, in init kivent_cymunk.physics
 ModuleNotFoundError: No module named 'cymunk'
Reply all
Reply to author
Forward
0 new messages