Comments (6)
Hi @gilesknap - I'm finally getting around to trying this out with my kids. I get a similar (same?) error when trying world.player.pos
- in fact I get the same or similar error every time I hit enter or tab to autocomplete...
(.venv) mini:python-minecraft ulrik$ mciwb shell --player AlbaDancer
INFO: Connected to localhost on 20100
INFO: Monitoring player AlbaDancer enabled for sign commands
INFO: ######### Starting Interactive Session ##########
Python 3.10.9 (main, Dec 15 2022, 10:44:50) [Clang 14.0.0 (clang-1400.0.29.202)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.11.0 -- An enhanced Interactive Python. Type '?' for help.
Unhandled exception in event loop:
File "/opt/homebrew/Cellar/[email protected]/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/Users/ulrik/code/python-minecraft/.venv/lib/python3.10/site-packages/prompt_toolkit/input/vt100.py", line 173, in callback_wrapper
callback()
File "/Users/ulrik/code/python-minecraft/.venv/lib/python3.10/site-packages/prompt_toolkit/application/application.py", line 698, in read_from_input
self.key_processor.process_keys()
File "/Users/ulrik/code/python-minecraft/.venv/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py", line 272, in process_keys
self._process_coroutine.send(key_press)
File "/Users/ulrik/code/python-minecraft/.venv/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py", line 187, in _process
self._call_handler(matches[-1], key_sequence=buffer[:])
File "/Users/ulrik/code/python-minecraft/.venv/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py", line 322, in _call_handler
handler.call(event)
File "/Users/ulrik/code/python-minecraft/.venv/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 126, in call
result = self.handler(event)
File "/Users/ulrik/code/python-minecraft/.venv/lib/python3.10/site-packages/IPython/terminal/shortcuts/__init__.py", line 374, in handle_return_or_newline_or_execute
return newline_or_execute_outer(shell)(event)
File "/Users/ulrik/code/python-minecraft/.venv/lib/python3.10/site-packages/IPython/terminal/shortcuts/__init__.py", line 397, in newline_or_execute
status, indent = shell.check_complete(check_text)
Exception 'NoneType' object has no attribute 'check_complete'
Press ENTER to continue...
from mciwb.
@compX44 @ulrikpedersen thanks for the interest!
The issue was related to the latest version of ipython and is now fixed in main. Unfortunately something is broken with publishing to pypi so if you are happy to clone the main branch and use 'pip install .' then go ahead and give it a go.
I'll try to get the pypi release done soon, but really want to adopt the latest skeleton project which changes the details of this part of the CI quite a bit. That is a bit of a bigger job so might not be done this weekend.
from mciwb.
That was easier than expected.
The new release is 0.8.4.
https://pypi.org/project/mciwb/
@compX44 @ulrikpedersen Please report back to let me know if this fixes the issue for you.
from mciwb.
Thanks Giles! I stopped the server and updated the venv with pip install --upgrade mciwb
restart server and shell and voila it works! That's pro support 👍 😄
from mciwb.
Thanks Ulrik. Closing.
I'm looking forward to some suggestions for the learning python tutorials from you!
from mciwb.
Hello. I apologize for the late response. After updating the mciwb package, I too got the code to work. Thank you so much for taking the time to look into this issue. I'm excited to learn more about python with this project.
from mciwb.
Related Issues (20)
- When I build doors, only half of then is created HOT 8
- Would you be interested in a chapter about drawing image? HOT 1
- Connecting without a player logged in fails HOT 3
- Handling of player not in world HOT 1
- TODO
- monitor kills thread on exception HOT 1
- break up the Iwb class HOT 5
- provide save and load HOT 1
- reconnecting a player fails HOT 1
- "if blocks" sub type of execute HOT 1
- Need to enable the windows subsystem for linux optional component for ubuntu WSL HOT 10
- Having trouble installing Docker Desktop HOT 4
- Older version of rcon package causes `pip install mciwb` to fail HOT 5
- Action signs blank by default? HOT 22
- Question about Backup and Restore HOT 6
- For Loops Nether Portal HOT 7
- One-line docstring should fit on one line with quotes (found 3) (D200)
- Undo buffer
- Document Java ediition
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mciwb.