Please: help Compiling python modules [fofix 4 alpha 2]

Discussion particular to FoFiX, its development, and themes
Forum rules
This topic is 12 years and 5 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
Classic Rock Fretter
User avatar
oscarj08
Member
Posts: 339
Joined: January 29th, 2010
Reputation: 5

Please: help Compiling python modules [fofix 4 alpha 2]

Postby oscarj08 » Sun Oct 30, 2011 6:35 pm

when i try to open fofix.py it gives me an error that says: mising cmgl module, so i read the guide: https://github.com/stump/fofix/blob/master/doc/RunningFromSource.mkd
i read the section of compilig but i dont understand what i have to do with cmd with this code:

Code: Select all

python setup.py build_ext --inplace --force


i installed cython compiler and all the python adds necesary % c++ 2008 express:

Spoiler:•PyWin32 (direct link to build 216)
•numpy (direct link to 1.5.0)
•pygame (direct link to 1.9.1)
•PyOpenGL (direct link to 3.0.1)
•Python Imaging Library (direct link to 1.1.7+)
•pyogg (direct link to 1.3)
•pyvorbis (direct link to 1.5a)
•Cython (link to 0.14.1)
* c++ 2008 express



plz help me, i want to play the beta of the rock band 3 theme :biggrin:
User avatar
blazingamer
Member
Posts: 2018
Joined: November 17th, 2007
Location: Pennsylvania
Reputation: 0
Contact:

Re: Please: help Compiling python modules [fofix 4 alpha 2]

Postby blazingamer » Sun Oct 30, 2011 6:51 pm

Are you running Windows? If you are, unless you want to help with writing code for the game it is recommended you just download the precompiled binary on the github page for alpha 2.
Classic Rock Fretter
User avatar
oscarj08
Member
Posts: 339
Joined: January 29th, 2010
Reputation: 5

Re: Please: help Compiling python modules [fofix 4 alpha 2]

Postby oscarj08 » Sun Oct 30, 2011 6:56 pm

blazingamer wrote:Are you running Windows? If you are, unless you want to help with writing code for the game it is recommended you just download the precompiled binary on the github page for alpha 2.


yes im running windows, i went to cmd and wrote: cd D:\Fofix 4 Aplha2\src (my directory)
then i supossed to type the code but it doesnt work

but i dont know programming, so the alpha 2 is only for coders?
User avatar
blatz89
Member
Posts: 154
Joined: July 7th, 2011
Reputation: 0

Re: Please: help Compiling python modules [fofix 4 alpha 2]

Postby blatz89 » Sun Oct 30, 2011 7:38 pm

If I remember correctly, on github they hosted a .7z.. all you have to do is extract it and run the executable like any other compiled edition of FOFix, if im not mistaken.
Classic Rock Fretter
User avatar
oscarj08
Member
Posts: 339
Joined: January 29th, 2010
Reputation: 5

Re: Please: help Compiling python modules [fofix 4 alpha 2]

Postby oscarj08 » Sun Oct 30, 2011 7:54 pm

blatz89 wrote:If I remember correctly, on github they hosted a .7z.. all you have to do is extract it and run the executable like any other compiled edition of FOFix, if im not mistaken.


yes i've downloaded that 7z. but when i run the fofix.exe it opens but then when im going to play it crashes, so that guide says that if you want to play without crashes yo need to download the programs that i installed and run fofix.py. but when i run fofix.py, it says an error that is missing the cmgl module, in fact there is the file cmgl.c, but it is in the idiom c++ not python. so you have to compile all the c files that are in the src folder but i dont now ho to do that because the comand in cmd seems to be wrong or wothout effect.

other thing that i did was to open the cython (c compiler to python) with cmd and throught that cmd i wrote the code but it only opened the cmgl.c with c++ 2008 and there is a line that says that there was an error with cython because i need to install a development version of python (i suppose that is the source , apparently i've downloaded it but i dont know to install it)
User avatar
blazingamer
Member
Posts: 2018
Joined: November 17th, 2007
Location: Pennsylvania
Reputation: 0
Contact:

Re: Please: help Compiling python modules [fofix 4 alpha 2]

Postby blazingamer » Sun Oct 30, 2011 8:31 pm

Could you please post your log file when running from the exe? And then another when running from the src
Classic Rock Fretter
User avatar
oscarj08
Member
Posts: 339
Joined: January 29th, 2010
Reputation: 5

Re: Please: help Compiling python modules [fofix 4 alpha 2]

Postby oscarj08 » Sun Oct 30, 2011 8:55 pm

blazingamer wrote:Could you please post your log file when running from the exe? And then another when running from the src


log:

Spoiler:

Code: Select all

[    0.000000] (D) Logging initialized: Sun Oct 30 19:49:01 2011
[    0.613000] (W) Pitch bending is not supported; install john.stumpo's pitchbend module (r7 or higher) if you want it.
[    0.613000] (W) OggStreamer not found.  Falling back to legacy pyogg/pyvorbis based ogg streamer.
[    0.741000] (W) Missing pyaudio or pypitch - microphone support will not be possible
[    0.830000] (D) GameEngine class init (GameEngine.py)...
[    0.830000] (D) FoFiX v4.0.0 alpha 2 starting up...
[    0.830000] (D) Python version: 2.6.6
[    0.830000] (D) Pygame version: 1.9.1release-svn2575
[    0.830000] (D) PyOpenGL version: 3.0.1
[    0.830000] (D) Numpy version: 1.5.0
[    0.830000] (D) PIL version: 1.1.7+
[    0.830000] (D) sys.argv: ['D:\\Oscar\\FOFIX 4.0 Alpha 2\\FoFiX.exe']
[    0.830000] (D) os.name: nt
[    0.830000] (D) sys.platform: win32
[    0.830000] (D) win32api.GetVersionEx(1): (5, 1, 2600, 2, 'Service Pack 3', 3, 0, 768, 1, 0)
[    0.842000] (D) Disabling screensaver.
[    0.843000] (D) Initializing audio.
[    1.249000] (D) Audio configuration: (44100, -16, 2)
[    1.442000] (D) Initializing pygame.mixer & audio system at 44100 Hz.
[    1.443000] (D) Initializing video.
[    3.245000] (D) OpenGL version: 4.1.11079 Compatibility Profile Context
[    3.246000] (D) OpenGL vendor: ATI Technologies Inc.
[    3.246000] (D) OpenGL renderer: ATI Radeon HD 5670
[    3.246000] (D) OpenGL extensions: GL_AMDX_debug_output GL_AMDX_vertex_shader_tessellator GL_AMD_conservative_depth GL_AMD_debug_output GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_multi_draw_indirect GL_AMD_name_gen_delete GL_AMD_performance_monitor GL_AMD_pinned_memory GL_AMD_sample_positions GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trace GL_AMD_texture_cube_map_array GL_AMD_texture_texture4 GL_AMD_transform_feedback3_lines_triangles GL_AMD_vertex_shader_tessellator GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_color_buffer_float GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_subroutine GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_snorm GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_buffer GL_EXT_copy_texture GL_EXT_direct_state_access GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_histogram GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shader_image_load_store GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_bptc GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_storage GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_conditional_render GL_NV_copy_depth_to_color GL_NV_explicit_multisample GL_NV_float_buffer GL_NV_half_float GL_NV_primitive_restart GL_NV_texgen_reflection GL_NV_texture_barrier GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays GL_WIN_swap_hint WGL_EXT_swap_control
[    3.264000] (D) Compiling shader "stage" from D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\lightning.vert and D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\lightning.frag.
[    3.638000] (D) Compiling shader "sololight" from D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\lightning.vert and D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\lightning.frag.
[    3.680000] (D) Compiling shader "tail" from D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\lightning.vert and D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\lightning.frag.
[    3.722000] (D) Compiling shader "tail2" from D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\rockbandtail.vert and D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\rockbandtail.frag.
[    3.758000] (D) Compiling shader "notes" from D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\metal.vert and D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\metal.frag.
[    3.792000] (D) Compiling shader "neck" from D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\neck.vert and D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\neck.frag.
[    3.822000] (D) Compiling shader "cd" from D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\cd.vert and D:\Oscar\FOFIX 4.0 Alpha 2\data\shaders\cd.frag.
[    3.828000] (D) Enabling high priority timer.
[    3.874000] (D) 0 joysticks found.
[    4.164000] (E) Image not found: themes\Rock Band 3\common\rhythm.png
[    4.967000] (D) Theme font not found: title.ttf
[    4.969000] (D) Theme font not found: pause.ttf
[    4.972000] (D) Theme font not found: streak.ttf
[    4.974000] (D) Theme font not found: loading.ttf
[    4.976000] (D) Theme font not found: song.ttf
[    4.978000] (D) Theme font not found: songlist.ttf
[    4.979000] (D) Theme font not found: songlist.ttf
[    4.981000] (D) Theme font not found: streakphrase.ttf
[    4.988000] (D) 6 guitscw sounds found in sounds: guitscw1.ogg - guitscw6.ogg
[    5.036000] (D) 2 bassscw sounds found in sounds: bassscw1.ogg - bassscw2.ogg
[    5.048000] (D) 1 drumscw sounds found in sounds: drumscw1.ogg - drumscw1.ogg
[    5.055000] (D) 4 accept sounds found in themes\Rock Band 3\sounds: accept1.ogg - accept4.ogg
[    5.088000] (D) Theme sound not found: bassdrum.ogg
[    5.089000] (D) 4 back sounds found in themes\Rock Band 3\sounds: back1.ogg - back4.ogg
[    5.122000] (D) Theme sound not found: battleused.ogg
[    5.132000] (D) Theme sound not found: crash.ogg
[    5.135000] (D) Theme sound not found: clapsound.ogg
[    5.148000] (D) Theme sound not found: coopfail.ogg
[    5.157000] (D) Theme sound not found: failsound.ogg
[    5.160000] (D) Theme sound not found: rescue.ogg
[    5.194000] (D) Theme sound not found: rocksound.ogg
[    5.351000] (D) Theme sound not found: starlost.ogg
[    5.364000] (D) Theme sound not found: starpowerready.ogg
[    5.393000] (D) Theme sound not found: tom01.ogg
[    5.407000] (D) Theme sound not found: tom02.ogg
[    5.417000] (D) Theme sound not found: tom03.ogg
[    5.438000] (W) Rock Band 3/sounds/crowdcheers.ogg not found -- using data/sounds/crowdcheers.ogg instead.
[    5.438000] (W) No stages\ folder found, forcing None setting for Animated Stage.
[    5.448000] (W) Theme: D:\Oscar\FOFIX 4.0 Alpha 2\data\themes\Rock Band ACDC V2 does not exist!

[    5.448000] (N) Theme: Attempting fallback to default theme "Rock Band 3".
[    5.448000] (D) no theme.ini
[    5.449000] (D) Ready.
[    7.482000] (D) View: Push: MainMenu
[    7.482000] (D) View: Push: Menu
[   10.324000] (W) Your theme does not appear to properly support the training graphical submenu. Check to be sure you have the latest version of your theme.
[   10.324000] (D) View: Push: Menu
[   11.209000] (D) View: Pop all
[   11.209000] (D) View: Pop: MainMenu
[   11.209000] (D) View: Pop: Menu
[   11.209000] (D) View: Pop: Menu
[   11.209000] (D) View: Pop: MainMenu
[   11.210000] (D) View: Pop: Menu
[   11.280000] (E) Image not found: users\players\Oscar.png
[   11.281000] (E) Image not found: users\players\Oscar.png
[   11.281000] (E) Image not found: users\players\Oscar.png
[   11.281000] (E) Image not found: users\players\Oscar.png
[   11.281000] (D) View: Push: Lobby
[   11.281000] (W) No theme class for themeLobby - Loading default...
[   11.283000] (E) Image not found: users\players\Oscar.png
[   11.283000] (E) Image not found: users\players\Oscar.png
[   11.284000] (E) Image not found: users\players\Oscar.png
[   11.284000] (E) Image not found: users\players\Oscar.png
[   12.225000] (D) View: Push: LoadingSplashScreen
[   12.301000] (W) No theme class for setlist - Loading default...
[   12.303000] (W) Your theme does not appear to properly support the setlist graphical submenu. Check to be sure you have the latest version of your theme.
[   12.303000] (D) Loading libraries in C:\Users\Lyna\Desktop\FOF4\data\songs
[   12.311000] (D) Song.getAvailableLibraries function call...library = C:\Users\Lyna\Desktop\FOF4\data\songs
[   12.312000] (D) Loading songs in C:\Users\Lyna\Desktop\FOF4\data\songs
[   12.315000] (D) Song C:\Users\Lyna\Desktop\FOF4\data\songs\High Voltage (Live) 78'\song.ini was not found in the cache.
[   12.315000] (D) Retrieving parts from: C:\Users\Lyna\Desktop\FOF4\data\songs\High Voltage (Live) 78'\notes.mid
[   12.552000] (D) MIDI Type identified as GH
[   12.552000] (D) Retrieving sections from: C:\Users\Lyna\Desktop\FOF4\data\songs\High Voltage (Live) 78'\notes.mid
[   12.777000] (D) Writing out cache for song C:\Users\Lyna\Desktop\FOF4\data\songs\High Voltage (Live) 78'\song.ini.
[   12.778000] (E) Terminating due to unhandled exception:
Traceback (most recent call last):
  File "FoFiX.py", line 297, in <module>
  File "FoFiX.py", line 252, in main
  File "GameEngine.pyo", line 1122, in run
  File "GameEngine.pyo", line 1086, in main
  File "GameEngine.pyo", line 1114, in doRun
  File "GameEngine.pyo", line 1081, in _runTask
  File "Input.pyo", line 335, in run
  File "Input.pyo", line 246, in broadcastEvent
  File "Lobby.pyo", line 342, in keyPressed
  File "World.pyo", line 90, in startGame
  File "World.pyo", line 128, in createScene
  File "SceneFactory.pyo", line 38, in create
  File "SongChoosingScene.pyo", line 210, in __init__
  File "SongChoosingScene.pyo", line 284, in loadLibrary
  File "Resource.pyo", line 239, in load
  File "Resource.pyo", line 131, in finish
  File "SongChoosingScene.pyo", line 288, in loadSongs
  File "Resource.pyo", line 239, in load
  File "Resource.pyo", line 111, in load
  File "SongChoosingScene.pyo", line 288, in <lambda>
  File "Song.pyo", line 3731, in getAvailableSongsAndTitles
  File "Song.pyo", line 3555, in getAvailableSongs
  File "Song.pyo", line 288, in __init__
ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.



the src shows me the lines that the modules are found and the last line shows

Spoiler:

Code: Select all

importerror: no module named cmgl



but i guess that is because im not a developer, the 4.0 is still in beta and only two persons can play the theme so i guess is better wait
User avatar
blazingamer
Member
Posts: 2018
Joined: November 17th, 2007
Location: Pennsylvania
Reputation: 0
Contact:

Re: Please: help Compiling python modules [fofix 4 alpha 2]

Postby blazingamer » Sun Oct 30, 2011 9:40 pm

Have you tried deleting your songcache that was generated from previous versions of FoFiX? There have been changes to loading some things with Alpha 2, that's a common suggestion I give. FoFiX 4 alpha 2 works fine on a computer that has never had FoFiX on it before, but if it has then you need to clean out the app data from the previous version.
Classic Rock Fretter
User avatar
oscarj08
Member
Posts: 339
Joined: January 29th, 2010
Reputation: 5

Re: Please: help Compiling python modules [fofix 4 alpha 2]

Postby oscarj08 » Sun Oct 30, 2011 9:56 pm

blazingamer wrote:Have you tried deleting your songcache that was generated from previous versions of FoFiX? There have been changes to loading some things with Alpha 2, that's a common suggestion I give. FoFiX 4 alpha 2 works fine on a computer that has never had FoFiX on it before, but if it has then you need to clean out the app data from the previous version.

it worked, thank you for all your helping :2thumbsup:

Return to “FoFiX”

Who is online

Users browsing this forum: No registered users and 19 guests