python/module system error

正在查看此主题的用户

octoburn

Grandmaster Knight
yes, I searched :razz:

I got rid of the "python not recognized" error (which was simple) but now when I try to build the module, I get this error:
插入代码块:
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_init.py", line 2, in ?
    import os
zipimport.ZipImportError: can't find module 'os'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_global_variables.py", line 8, in ?
    from module_presentations import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\mo
dule_presentations.py", line 8, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_strings.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_skills.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_music.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_animations.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_meshes.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Exporting sounds...
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_skins.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_map_icons.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_factions.py", line 4, in ?
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_items.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_scenes.py", line 4, in ?
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_troops.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_particle_sys.py", line 3, in ?
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_scene_props.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_tableau_materials.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_presentations.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_party_tmps.py", line 5, in ?
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_parties.py", line 1, in ?
    import types
zipimport.ZipImportError: can't find module 'types'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_quests.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_scripts.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_mission_tmps.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_game_menus.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_simple_triggers.py", line 4, in ?
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_dialogs.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 2, in ?
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in ?
    import string
zipimport.ZipImportError: can't find module 'string'

______________________________

Script processing has ended.
Press any key to exit. . .

the funny thing is, I haven't changed anything in the module files (other than the directory) but I still get these errors...

anyone have an idea? :???:
 
try a different version of python par chance? I had problems with errors occring that made no sense as my syntax was fine, and they were absolved by downloading the newest python, other than that I woudl have no clue... since when does python touch zipped files... at all? or does simpimport mean something else?
 
downloaded Python 2.6    it's changed, but not fixed :sad:

插入代码块:
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    import os
zipimport.ZipImportError: can't find module 'os'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_global_variables.py", line 8, in <module>
    from module_presentations import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\mo
dule_presentations.py", line 8, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_strings.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_skills.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_music.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_animations.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_meshes.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Exporting sounds...
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_skins.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_map_icons.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_factions.py", line 4, in <module>
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_items.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_scenes.py", line 4, in <module>
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_troops.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_particle_sys.py", line 3, in <module>
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_scene_props.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_tableau_materials.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_presentations.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_party_tmps.py", line 5, in <module>
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_parties.py", line 1, in <module>
    import types
zipimport.ZipImportError: can't find module 'types'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_quests.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_scripts.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_mission_tmps.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_game_menus.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_simple_triggers.py", line 4, in <module>
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_dialogs.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 2, in <module>
    from process_common import *
  File "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\pr
ocess_common.py", line 1, in <module>
    import string
zipimport.ZipImportError: can't find module 'string'

______________________________

Script processing has ended.
Press any key to exit. . .
 
it looks like python isn't installed correctly or something?  can you give us a little background?  are you trying to setup python/module system for the first time?  The errors mentions "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\" is this where you have M&B and the module system installed?  The path says M&B 952, but this module system may only be compatible with M&B 1.x, etc.  What operating system are you using, some people have had problems using the module system with Windows Vista is that what you are using?
 
HokieBT 说:
it looks like python isn't installed correctly or something?  can you give us a little background?  are you trying to setup python/module system for the first time? 
no, I've been using python and the module system since .751 which is why this is irritating me so much, I've never had a problem like this.

HokieBT 说:
The errors mentions "C:\Program Files\Mount&Blade\Mount&Blade952\Modules\2132\ModuleSystem\" is this where you have M&B and the module system installed?  The path says M&B 952, but this module system may only be compatible with M&B 1.x, etc.
yeah, for some reason when I installed 1.010 I forgot to change the path from then I installed .952 I reinstalled it just into the Mount&Blade folder and still getting the same error.

HokieBT 说:
What operating system are you using, some people have had problems using the module system with Windows Vista is that what you are using?
Windows XP.

EDIT: I have  my Module System folder in the module folder, would that cause a problem? it's how I always did it, but I don't know.

also, I changed the text in the build_module.bat, as I used to, to this:

@echo off
set OLDPATH=%PATH%
set PATH=C:\Python24;%PATH%

python process_strings.py
python process_sounds.py
python process_particle_sys.py
python process_skins.py
python process_items.py
python process_map_icons.py
python process_factions.py
python process_scene_props.py
python process_scenes.py
python process_troops.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_simple_triggers.py
python process_dialogs.py

set PATH=%OLDPATH%
del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul

does this still work, or is it something different now?
 
octoburn 说:
EDIT: I have  my Module System folder in the module folder, would that cause a problem? it's how I always did it, but I don't know.

also, I changed the text in the build_module.bat, as I used to, to this:
@echo off
set OLDPATH=%PATH%
set PATH=C:\Python24;%PATH%

python process_strings.py
python process_sounds.py
python process_particle_sys.py
python process_skins.py
python process_items.py
python process_map_icons.py
python process_factions.py
python process_scene_props.py
python process_scenes.py
python process_troops.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_simple_triggers.py
python process_dialogs.py

set PATH=%OLDPATH%
del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul

does this still work, or is it something different now?

ok, this is your problem, the latest release of the module system added a lot more process_*.py files that you are missing in your old build_module.bat.  Here's mine, you could add your OLDPATH commands to this if you wanted.

@echo off
python process_init.py
python process_global_variables.py
python process_strings.py
python process_skills.py
python process_music.py
python process_animations.py
python process_meshes.py
python process_sounds.py
python process_skins.py
python process_map_icons.py
python process_factions.py
python process_items.py
python process_scenes.py
python process_troops.py
python process_particle_sys.py
python process_scene_props.py
python process_tableau_materials.py
python process_presentations.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_simple_triggers.py
python process_dialogs.py
python process_global_variables_unused.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul
 
octoburn 说:
still getting the same exact errors.

these errors don't really make sense...  The error message you pasted has "process_init.py" in it but the build_module.bat you pasted doesn't list this file while it is in mine.  So how is it generating an error if it's not trying to run it....  Are you trying to build an existing mod or just the native module system, there must be something messed up about your build_module, process files, etc...  I'd probably re-download the module system and unzip it to C:\Temp\ or something, modify the export folder in module_info.py, and then see if it works, etc.
 
well, those things are still in the build_module_check_tags.bat. I'm not sure what that does, as it wasn't in the previous versions I used.
 
后退
顶部 底部