Comments (6)
yeah, FieldValidationInfo has been deprecated: https://docs.pydantic.dev/latest/concepts/validators/
fix on the way
from tuxemon.
I'm now getting a similar error message from the latest flatpak:
pygame 2.4.0 (SDL 2.0.16, Python 3.9.18)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/app/bin/org.tuxemon.Tuxemon.py", line 7, in <module>
from tuxemon import main, prepare
File "/app/share/Tuxemon/tuxemon/main.py", line 10, in <module>
from tuxemon.states.persistance.load_menu import LoadMenuState
File "/app/share/Tuxemon/tuxemon/states/persistance/__init__.py", line 3, in <module>
from .load_menu import LoadMenuState
File "/app/share/Tuxemon/tuxemon/states/persistance/load_menu.py", line 8, in <module>
from tuxemon import prepare, save
File "/app/share/Tuxemon/tuxemon/save.py", line 18, in <module>
from tuxemon.client import LocalPygameClient
File "/app/share/Tuxemon/tuxemon/client.py", line 14, in <module>
from tuxemon import networking, prepare, rumble
File "/app/share/Tuxemon/tuxemon/networking.py", line 16, in <module>
from tuxemon.npc import NPC
File "/app/share/Tuxemon/tuxemon/npc.py", line 14, in <module>
from tuxemon.battle import Battle, decode_battle, encode_battle
File "/app/share/Tuxemon/tuxemon/battle.py", line 9, in <module>
from tuxemon.db import OutputBattle
File "/app/share/Tuxemon/tuxemon/db.py", line 15, in <module>
from pydantic import (
ImportError: cannot import name 'ValidationInfo' from 'pydantic' (/app/lib/python3.9/site-packages/pydantic/__init__.cpython-39-x86_64-linux-gnu.so)
from tuxemon.
I've tested by uninstalling and reinstalling the flatpak: I get this warning message:
Warning: While pulling runtime/org.freedesktop.Platform.GL.default/x86_64/21.08 from remote flathub: Error reading data from TLS socket: Error decoding the received TLS packet.
Then the same import error. I note the error message refers to "python3.9" but I've confirmed that I have Python 3.10:
$ python3 --version
Python 3.10.12
from tuxemon.
Hi @Murmele , do you think this error can be triggered by some old requirement in https://github.com/flathub/org.tuxemon.Tuxemon/blob/master/python3-requirements.json?
I tried to update this part with the new packages, but I don't know how it works, if both need to be tar.gz or whl, etc., because there are two other dependency in pydantic 2.4:
dependencies:
- 'typing-extensions>=4.6.1',
- 'annotated-types>=0.4.0', ----> https://pypi.org/project/annotated-types/0.4.0/#files
- "pydantic-core==2.10.0", ---> https://pypi.org/project/pydantic-core/2.10.0/#files
I don't know if these need to be added.
{
"name": "python3-pydantic",
"buildsystem": "simple",
"build-commands": [
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pydantic>=2.4.0\" --no-build-isolation"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/82/ed/8ccf53a0ed10bf8fc8877b5833b40f5f99093cadfe6632b8892f74aead0f/typing_extensions-4.6.1-py3-none-any.whl",
"sha256": "558bc0c4145f01e6405f4a5fdbd82050bd221b119f4bf72a961a1cfd471349d6"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/4c/9b/e5d3fab077b3e1f7574fbe9b6bdd19d7b047bf2746495501f26757872763/pydantic-2.4.0.tar.gz",
"sha256": "54216ccb537a606579f53d7f6ed912e98fffce35aff93b25cd80b1c2ca806fc3"
}
]
}
pygame-ce 2.3.2 is missing: https://pypi.org/project/pygame-ce/#files
from tuxemon.
Hi @Murmele , do you think this error can be triggered by some old requirement in https://github.com/flathub/org.tuxemon.Tuxemon/blob/master/python3-requirements.json?
I tried to update this part with the new packages, but I don't know how it works, if both need to be tar.gz or whl, etc., because there are two other dependency in pydantic 2.4:
dependencies:
* 'typing-extensions>=4.6.1', * 'annotated-types>=0.4.0', ----> https://pypi.org/project/annotated-types/0.4.0/#files * "pydantic-core==2.10.0", ---> https://pypi.org/project/pydantic-core/2.10.0/#files
I don't know if these need to be added.
{ "name": "python3-pydantic", "buildsystem": "simple", "build-commands": [ "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pydantic>=2.4.0\" --no-build-isolation" ], "sources": [ { "type": "file", "url": "https://files.pythonhosted.org/packages/82/ed/8ccf53a0ed10bf8fc8877b5833b40f5f99093cadfe6632b8892f74aead0f/typing_extensions-4.6.1-py3-none-any.whl", "sha256": "558bc0c4145f01e6405f4a5fdbd82050bd221b119f4bf72a961a1cfd471349d6" }, { "type": "file", "url": "https://files.pythonhosted.org/packages/4c/9b/e5d3fab077b3e1f7574fbe9b6bdd19d7b047bf2746495501f26757872763/pydantic-2.4.0.tar.gz", "sha256": "54216ccb537a606579f53d7f6ed912e98fffce35aff93b25cd80b1c2ca806fc3" } ] }
pygame-ce 2.3.2 is missing: https://pypi.org/project/pygame-ce/#files
Hi,
did you try to update by using the updateRequirements.sh script?
from tuxemon.
@Murmele I did it, opened a PR, let's see if it works flathub/org.tuxemon.Tuxemon#3
I tried to bump pydantic to the last version as well as adding maturin among the requirements, still fails
from tuxemon.
Related Issues (20)
- teleport_faint should be a transition, not instantaneous
- Enums for sprites broken with python 3.11+
- Rename character
- Game freezes after first battle HOT 4
- Text inconsistency when playing as a female character. HOT 5
- If a Tuxemon has too many techniques, the game will crash HOT 1
- When you lose a battle, the game doesn't wait until you've exited the battle to continue events HOT 1
- how do you advance past the part with the first med centre? HOT 10
- If a player faint their only Tuxemon in the early game, the game will glitch out
- The player encountered a game crash right after the first battle against Bille.
- Allow custom music to be set for battles HOT 1
- The game crashed when entering the building. HOT 5
- White squares instead of some tiles HOT 3
- Game crashes if you sell a tuxemon + 2 dialog bugs
- Screen goes black if you're defeated on Route 3
- If two tuxemon attack, the one with the lower speed attacks first
- Add a challenge mode where you only battle HOT 5
- After battling a trainer on Route 3, the game crashes.
- The protagonist can walk through the fence in the city park. HOT 3
- Upon reaching Route 3, the protagonist is sometimes teleported to the wrong location.
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 tuxemon.