Adrian1428 31 Posted March 14, 2015 Share Posted March 14, 2015 I have this errors: http://pastebin.com/xXfn4G84 I use python22 on launcher and vs2008 , is needed 27 or work with 22? cpp file: http://pastebin.com/t6M9t7Gh 2 1 Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7178 Posted March 14, 2015 Author Honorable Member Share Posted March 14, 2015 (edited) I have this errors: http://pastebin.com/xXfn4G84 I use python22 on launcher and vs2008 , is needed 27 or work with 22? cpp file: http://pastebin.com/t6M9t7Gh PyMODINIT_FUNC doesn't exist in python2.2.I've added this in the python<modulename>Manager.cpp: #ifndef PyMODINIT_FUNC #define PyMODINIT_FUNC extern "C" __declspec(dllexport) void #endifSadly, Cython doesn't work on py2.2 without refactoring itself. Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Check out my GitHub Link to comment Share on other sites More sharing options...
Adrian1428 31 Posted March 14, 2015 Share Posted March 14, 2015 I think will be better use python27 on launcher. Thanks. Link to comment Share on other sites More sharing options...
aviragames 0 Posted March 14, 2015 Share Posted March 14, 2015 hello, how to fix Error: 'NoneType' object has no attribute 'split' ? Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted March 15, 2015 Share Posted March 15, 2015 I think you forgot the .close() doesnt work with cython. LoginWindow.__LoadScript.BindObject - <type 'exceptions.AttributeError'>:'pack_file' object has no attribute 'close' Example: file=open("aaa.txt","w") file.write("heyy how are u?") file.close() and how to repair: file=open("aaa.txt","w").write("hey i solve the bug") https://m2admin.net/ Link to comment Share on other sites More sharing options...
Lyrex 6 Posted March 15, 2015 Share Posted March 15, 2015 Well, open usually isn't the same as pack_open. I'm not sure if something related to this get's modified here. open = python open, which has a close method pack_open = metin2 open which doesn't Link to comment Share on other sites More sharing options...
Premium mogulul 17 Posted March 15, 2015 Premium Share Posted March 15, 2015 (edited) When i try to compile the binary i gote this error: -C1083: Cannot open include file : 'Python.h':No such file or directory EDIT 1 : I put in PythonrootlibManager.cpp : #include "../../extern/include/Python-2.2/Python.h" and in ScriptLibStdAfx.h: #include "../../extern/include/Python-2.2/Python.h" I did a little test now and i try to compile file colorinfo.py.When i try to compile the binary i recieve these errors : Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Minion 74 Posted March 16, 2015 Share Posted March 16, 2015 (edited) When i try to compile the binary i gote this error: -C1083: Cannot open include file : 'Python.h':No such file or directory EDIT 1 : I put in PythonrootlibManager.cpp : #include "../../extern/include/Python-2.2/Python.h" and in ScriptLibStdAfx.h: #include "../../extern/include/Python-2.2/Python.h" I did a little test now and i try to compile file colorinfo.py.When i try to compile the binary i recieve these errors : install python 2.7 in binary Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium mogulul 17 Posted March 16, 2015 Premium Share Posted March 16, 2015 (edited) When i try to compile the binary i gote this error: -C1083: Cannot open include file : 'Python.h':No such file or directory EDIT 1 : I put in PythonrootlibManager.cpp : #include "../../extern/include/Python-2.2/Python.h" and in ScriptLibStdAfx.h: #include "../../extern/include/Python-2.2/Python.h" I did a little test now and i try to compile file colorinfo.py.When i try to compile the binary i recieve these errors : install python 2.7 in binary And how cand i do update python 2.2 to 2.7? Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7178 Posted March 16, 2015 Author Honorable Member Share Posted March 16, 2015 On 3/15/2015 at 11:45 AM, ѕeмa™ said: I think you forgot the .close() doesnt work with cython. LoginWindow.__LoadScript.BindObject - <type 'exceptions.AttributeError'>:'pack_file' object has no attribute 'close' Example: file=open("aaa.txt","w") file.write("heyy how are u?") file.close() and how to repair: file=open("aaa.txt","w").write("hey i solve the bug") On 3/15/2015 at 3:59 PM, Lyrex said: Well, open usually isn't the same as pack_open. I'm not sure if something related to this get's modified here. open = python open, which has a close method pack_open = metin2 open which doesn't On the recent official roots, the "pack_open" is renamed as "open", and "open" as "old_open". Post your old system.py (push it on pastebin/pastie). Probably, your lib folder contains .pyc files compiled with py2.2. You should use the ones for 2.7. This is the hidden content, please Sign In or Sign Up 15 1 4 Check out my GitHub Link to comment Share on other sites More sharing options...
Minion 74 Posted March 16, 2015 Share Posted March 16, 2015 On 3/16/2015 at 10:41 AM, martysama0134 said: I think you forgot the .close() doesnt work with cython. LoginWindow.__LoadScript.BindObject - <type 'exceptions.AttributeError'>:'pack_file' object has no attribute 'close' Example: file=open("aaa.txt","w") file.write("heyy how are u?") file.close() and how to repair: file=open("aaa.txt","w").write("hey i solve the bug") On 3/15/2015 at 3:59 PM, Lyrex said: Well, open usually isn't the same as pack_open. I'm not sure if something related to this get's modified here. open = python open, which has a close method pack_open = metin2 open which doesn't On the recent official roots, the "pack_open" is renamed as "open", and "open" as "old_open". Post your old system.py (push it on pastebin/pastie). Probably, your lib folder contains .pyc files compiled with py2.2. You should use the ones for 2.7. This is the hidden content, please Sign In or Sign Up no work... 3 1 Link to comment Share on other sites More sharing options...
aviragames 0 Posted March 16, 2015 Share Posted March 16, 2015 Hi, how to fix error? 0316 11:29:30189 :: Traceback (most recent call last): 0316 11:29:30189 :: File "networkModule.py", line 251, in networkModule.MainStream.SetGamePhase (networkModule.c:4681) 0316 11:29:30189 :: File "networkModule.py", line 247, in networkModule.MainStream.SetGamePhase (networkModule.c:4592) 0316 11:29:30189 :: File "system.py", line 139, in system.__hybrid_import (system.c:3409) 0316 11:29:30190 :: File "game.py", line 55, in init game (game.c:61609) 0316 11:29:30190 :: File "system.py", line 139, in system.__hybrid_import (system.c:3409) 0316 11:29:30190 :: File "switchbot.py", line 13, in init switchbot (switchbot.c:40180) 0316 11:29:30190 :: File "system.py", line 161, in system.__hybrid_import (system.c:3747) 0316 11:29:30190 :: ImportError 0316 11:29:30190 :: : 0316 11:29:30190 :: No module named uitooltip 0316 11:29:30190 :: Link to comment Share on other sites More sharing options...
Minion 74 Posted March 16, 2015 Share Posted March 16, 2015 Hi, how to fix error? 0316 11:29:30189 :: Traceback (most recent call last): 0316 11:29:30189 :: File "networkModule.py", line 251, in networkModule.MainStream.SetGamePhase (networkModule.c:4681) 0316 11:29:30189 :: File "networkModule.py", line 247, in networkModule.MainStream.SetGamePhase (networkModule.c:4592) 0316 11:29:30189 :: File "system.py", line 139, in system.__hybrid_import (system.c:3409) 0316 11:29:30190 :: File "game.py", line 55, in init game (game.c:61609) 0316 11:29:30190 :: File "system.py", line 139, in system.__hybrid_import (system.c:3409) 0316 11:29:30190 :: File "switchbot.py", line 13, in init switchbot (switchbot.c:40180) 0316 11:29:30190 :: File "system.py", line 161, in system.__hybrid_import (system.c:3747) 0316 11:29:30190 :: ImportError 0316 11:29:30190 :: : 0316 11:29:30190 :: No module named uitooltip 0316 11:29:30190 :: you no compiled uitooltip.py in c Link to comment Share on other sites More sharing options...
aviragames 0 Posted March 16, 2015 Share Posted March 16, 2015 Hi, how to fix error? 0316 11:29:30189 :: Traceback (most recent call last): 0316 11:29:30189 :: File "networkModule.py", line 251, in networkModule.MainStream.SetGamePhase (networkModule.c:4681) 0316 11:29:30189 :: File "networkModule.py", line 247, in networkModule.MainStream.SetGamePhase (networkModule.c:4592) 0316 11:29:30189 :: File "system.py", line 139, in system.__hybrid_import (system.c:3409) 0316 11:29:30190 :: File "game.py", line 55, in init game (game.c:61609) 0316 11:29:30190 :: File "system.py", line 139, in system.__hybrid_import (system.c:3409) 0316 11:29:30190 :: File "switchbot.py", line 13, in init switchbot (switchbot.c:40180) 0316 11:29:30190 :: File "system.py", line 161, in system.__hybrid_import (system.c:3747) 0316 11:29:30190 :: ImportError 0316 11:29:30190 :: : 0316 11:29:30190 :: No module named uitooltip 0316 11:29:30190 :: you no compiled uitooltip.py in c uitooltip.py compiled in c sucess Link to comment Share on other sites More sharing options...
Raizen 1 Posted March 16, 2015 Share Posted March 16, 2015 Hi, how to fix error? 0316 11:29:30189 :: Traceback (most recent call last): 0316 11:29:30189 :: File "networkModule.py", line 251, in networkModule.MainStream.SetGamePhase (networkModule.c:4681) 0316 11:29:30189 :: File "networkModule.py", line 247, in networkModule.MainStream.SetGamePhase (networkModule.c:4592) 0316 11:29:30189 :: File "system.py", line 139, in system.__hybrid_import (system.c:3409) 0316 11:29:30190 :: File "game.py", line 55, in init game (game.c:61609) 0316 11:29:30190 :: File "system.py", line 139, in system.__hybrid_import (system.c:3409) 0316 11:29:30190 :: File "switchbot.py", line 13, in init switchbot (switchbot.c:40180) 0316 11:29:30190 :: File "system.py", line 161, in system.__hybrid_import (system.c:3747) 0316 11:29:30190 :: ImportError 0316 11:29:30190 :: : 0316 11:29:30190 :: No module named uitooltip 0316 11:29:30190 :: use Brain.exe 1 Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7178 Posted March 16, 2015 Author Honorable Member Share Posted March 16, 2015 (edited) #UPDATED What's New: v2.0 The module's name check is now case-insensitive (colorInfo == colorinfo) Added a new function rootlib/uiscriptlib.getList() to retrieve a tuple of all the available cythonized modules. Now you can compile a uiscriptlib library from the uiscript*.py files! (implemented as __USE_EXTRA_CYTHON__) Added a sample ui.py containing the code to run uiscriptlib. Preview: Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal 4 Check out my GitHub Link to comment Share on other sites More sharing options...
Premium cndR_s 239 Posted March 16, 2015 Premium Share Posted March 16, 2015 Errors "No module named xxx" are of case sensitive. Change uitooltip for uiToolTip. Link to comment Share on other sites More sharing options...
jma96 1 Posted March 16, 2015 Share Posted March 16, 2015 (edited) Hi, what i did wrong? =S Sorry for image in spanish. Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Night 366 Posted March 16, 2015 Share Posted March 16, 2015 Errors "No module named xxx" are of case sensitive. Change uitooltip for uiToolTip. not always true but this can fix it , i hade a simlar problem where i had to import the module like this : def __anything(self): from something import first if self.something.first_shown == 1: self.somthing.Hide() else: self.somthing.Show() insted of importing at the begining of the file Link to comment Share on other sites More sharing options...
Premium mogulul 17 Posted March 18, 2015 Premium Share Posted March 18, 2015 I have a question: It's important to have python27? Link to comment Share on other sites More sharing options...
Adrian1428 31 Posted March 18, 2015 Share Posted March 18, 2015 I have a question: It's important to have python27? Yes. Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted March 22, 2015 Premium Share Posted March 22, 2015 (edited) Doesn't work with ZetsuGiftSystem https://metin2.download/picture/ed790c4q2XEuU5VATlO69sqy9ye0o4xJ/.png https://metin2.download/picture/Q1d9f7BIftuXEZ3yCIPDuIF95vfsw42J/.png And how to fix please ? https://metin2.download/picture/4aW2TzG3i3Bmq2G9P0RGSTV2GS96sRSA/.png https://metin2.download/picture/5oRN2gdjYP2VSU5KP8s4C396O53RLqCw/.png Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7178 Posted March 22, 2015 Author Honorable Member Share Posted March 22, 2015 (edited) Doesn't work with ZetsuGiftSystem https://metin2.download/picture/ed790c4q2XEuU5VATlO69sqy9ye0o4xJ/.png https://metin2.download/picture/Q1d9f7BIftuXEZ3yCIPDuIF95vfsw42J/.png Replace "Ouvrez la Boite!" with something else, or put it in locale_game.txt. Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal 2 2 Check out my GitHub Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted March 22, 2015 Premium Share Posted March 22, 2015 Yeah sorry, I've seen my fault with : # -*- coding: cp1256 -*- # -*- coding: utf-8 -*- Next time I'll use my brain Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted March 22, 2015 Premium Share Posted March 22, 2015 (edited) Sorry for messing around, but I have this error : https://metin2.download/picture/qA2qTJH9L8a98orBS24SoTHwMF5j1dTw/.png My uidragonsoul.py is the same as the official one :x Thanks Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal 3 Link to comment Share on other sites More sharing options...
Recommended Posts