Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the py cannot run on windows 10 #5

Open
yonghuming opened this issue Aug 9, 2017 · 1 comment
Open

the py cannot run on windows 10 #5

yonghuming opened this issue Aug 9, 2017 · 1 comment

Comments

@yonghuming
Copy link

i run mcpi-scratch.py on my windows 10 computer,and got this error
if message = '\r\n'.join(message_parts)
if add str to
message = '\r\n'.join(str(message_parts))
i could not get it work either, i love you project and your work and want to help, i do not know how soon you could see my question
`D:\MinecraftServer>py -2 mcpi-scratch.py
INFO:main:Namespace(host=None)
INFO:main:Starting server, use to stop
DEBUG:main:poll: 1
DEBUG:main:call mc
DEBUG:main:Vec3(13,4,1)
DEBUG:main:pollResp: 13

Exception happened during processing of request from ('127.0.0.1', 58809)
Traceback (most recent call last):
File "C:\Python27\lib\SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python27\lib\SocketServer.py", line 655, in init
self.handle()
File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
method()
File "mcpi-scratch.py", line 296, in do_GET
message = '\r\n'.join(message_parts)
TypeError: sequence item 1: expected string, int found

DEBUG:main:poll: 2
DEBUG:main:call mc
DEBUG:main:Vec3(13,4,1)
DEBUG:main:pollResp: 13

Exception happened during processing of request from ('127.0.0.1', 58811)
Traceback (most recent call last):
File "C:\Python27\lib\SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python27\lib\SocketServer.py", line 655, in init
self.handle()
File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
method()
File "mcpi-scratch.py", line 296, in do_GET
message = '\r\n'.join(message_parts)
TypeError: sequence item 1: expected string, int found

DEBUG:main:poll: 3
DEBUG:main:call mc
DEBUG:main:Vec3(13,4,1)
DEBUG:main:pollResp: 13`

@jbaragry
Copy link
Owner

jbaragry commented Aug 9, 2017

Hi,
mcpi-scratch is created with python3. I haven't tested on python2.x
Is it possible for you to upgrade your version of python?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants