RTC5 git integration in Windows : importError: bad magic number in 'rtcprocess':
Hello All,
I am doing simple RTC and GIT integration as POC on my laptop. I install the
scm manager as I am getting huge difficulty in setting up the gitweb\sysgit\apache in windows.
okey all fine with the SCM Manager too, I am able to get the hook triggered, but then I get the issue with the .pyc files. The error I found is due to the files are compiled in the Unix environment. there should be complete solution for windows too. I anyhow make the pre-recieve and post-recieve work with the help of cygwin. but this one is blocker for me.
Let me know if anyone can assist me by providing the .pyc files for the windows version. hookslib and rtcprocess
files packaged.
rtcprocess.pyc
hookslib.pyc
ImportError: bad magic
number in 'rtcprocess':
b'\x9e\x0c\r\n'
|
Accepted answer
Are you using the right version of Python as mentioned in the requirements? The Python version required is 3.3.5.
If you have the right version of Python it should run with pyc files (like class files they are platform independent, but Python itself seems to be fragile across different versions of Python).
And, regarding setting up GitWeb on Windows, here's a link that might help: https://git.wiki.kernel.org/index.php/MSysGit:GitWeb (assuming that you are using msysgit)
praveen patidar selected this answer as the correct answer
|
2 other answers
Hello Kiran, Let me provide you the Details. =========What I have Software Installed. RTC 5, SCM Manager for GIT ,https://bitbucket.org/sdorra/scm-manager/wiki/Home both are working fine individually means I am able to checkin the code in GIT with the Eclipse. and RTC as usual. =====What I am trying to achieve I am trying to achieve the GIT -RTC Integration that has capability to link the work items with the git commits. =====What are my pain points. 1. Earlier as in the Quetion it was the Python version issue now this got resolved. 2. I got some index issue in the program written in the ValidatePush.py, as it was checking the index as 7 or less but in the pre-recieve it is passing only 6. so I made the change as checking from 7 to 6. before that I am continuously redirected to help contain in the below if condition.
if(argv == None or len(argv) < 6 ):
3. right now I am able to push the changes but there is no validation for the work items. Just now I realized that I made the below parameter as argv[6] that makes some changes in the exclude refs. So I just changed it to arg[7].
excludeRefs = argv[7]
Let me know if I am not doing it in right way. In point 2 I was just amazed that if the 7th parameter is optional then why the condition is checking 7 parameter as <7 condition. thats why I updated and it got worked. I haven't tested the solution after I changed to excludeRefs = argv[7], so provide me some time to check with it. Thanks Praveen
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
It may be complicated to provide the pyc version for all OS, or may be this is again dependent on the version of OS as well.