Giter Site home page Giter Site logo

pypokergui's Introduction

PyPokerGUI

Build Status PyPI MIT License

GUI application for PyPokerEngine.
You can play poker with your AI bia browser.

app_demo

This library assumes that your AI is implemented in PyPokerEngine format.
If you have not checked our PyPokerEngine, we recommend you to check it first.

Tutorial

In this tutorial, we will play poker with simple AI "FishPlayer".
("FishPlayer" is an AI always declares CALL action. )

The outline of this tutorial is following.

  1. Create script to setup our AI
  2. Setup config file which defines rule of the game
  3. Start the server with config file and play the game

Installation

Please install this library with pip.

pip install pypokergui

Create script to setup our AI

First, we will create a script which defines how to setup our AI.
What you need to do is implementing setup_ai method.
PyPokerGUI uses this method to setup your AI.

from pypokerengine.players import BasePokerPlayer

class FishPlayer(BasePokerPlayer):  # Do not forget to make parent class as "BasePokerPlayer"

    #  we define the logic to make an action through this method. (so this method would be the core of your AI)
    def declare_action(self, valid_actions, hole_card, round_state):
        # valid_actions format => [raise_action_info, call_action_info, fold_action_info]
        call_action_info = valid_actions[1]
        action, amount = call_action_info["action"], call_action_info["amount"]
        return action, amount   # action returned here is sent to the poker engine

    def receive_game_start_message(self, game_info):
        pass

    def receive_round_start_message(self, round_count, hole_card, seats):
        pass

    def receive_street_start_message(self, street, round_state):
        pass

    def receive_game_update_message(self, action, round_state):
        pass

    def receive_round_result_message(self, winners, hand_info, round_state):
        pass


def setup_ai():
    return FishPlayer()

We assume that you put this script on /Users/ishikota/poker/fish_player_setup.py in following section.

Setup config file which defines rule of the game

Next we will define the rule of the game.
We need to define following settings in yaml format.

  • max_round : how many round we will play
  • initial stack : start stack size of each player
  • small blind : the amount of small blind
  • ante : the amount of ante
  • ai_players : path to your AI-setup script

You can generate template of config file like this.

pypokergui build_config --maxround 10 --stack 100 --small_blind 10 --ante 0 >> poker_conf.yaml

Then your poker_conf.yaml would be ...

ante: 0
blind_structure: null
initial_stack: 100
max_round: 10
small_blind: 10
ai_players:
- name: FIXME:your-ai-name
  path: FIXME:your-setup-script-path

We replace ai_players items like this.

ante: 0
blind_structure: null
initial_stack: 100
max_round: 10
small_blind: 10
ai_players:
- name: fish_player_1
  path: /Users/ishikota/poker/fish_player_setup.py
- name: fish_player_2
  path: /Users/ishikota/poker/fish_player_setup.py

We assume that you put this file on /Users/ishikota/poker/poker_conf.yaml in following section.

Start the server with config file and play the game

Ok, everything is ready. We start the local server with our config file.

pypokergui serve /Users/ishikota/poker/poker_conf.yaml --port 8000 --speed moderate

Then browser will be opened and you would see registration page.
Please register yourself in the page and start the game. Enjoy poker!!

How to registrate yourself

How to declare action in the game

pypokergui's People

Contributors

ishikota avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pypokergui's Issues

PyPokerGUI not work with Python 3

First error is:

  File "round_state_html.generated.py", line 53, in _tt_execute
    for idx, player in zip(range(len(round_state['seats']))[:len(round_state['seats'])/2], round_state['seats']):  # round_state.html:22

But all code not prepared to work with Python 3

5 best Cards win ??

I got issues with the win system. Because if two players got same 5 best cards but one has better hand cards, this player wins.... but that is not right ??? how can i ajust this...

unable to run pypokergui

class HTTPHeaders(collections.MutableMapping):
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: module 'collections' has no attribute 'MutableMapping'

when I try to run pypokergui

Small fixes

TODO

  • use "speed", "port" option in tutorial

TypeError: slice indices must be integers or None or have an __index__ method

File "c:\users\caocao\anaconda3\lib\site-packages\pypokergui\server\message_manager.py", line 82, in broadcast_update_game
message = _gen_game_update_message(handler, update)
File "c:\users\caocao\anaconda3\lib\site-packages\pypokergui\server\message_manager.py", line 114, in _gen_game_update_message
table_html_str = handler.render_string("round_state.html", round_state=round_state)
File "c:\users\caocao\anaconda3\lib\site-packages\tornado\web.py", line 826, in render_string
return t.generate(**namespace)
File "c:\users\caocao\anaconda3\lib\site-packages\tornado\template.py", line 348, in generate
return execute()
File "round_state_html.generated.py", line 53, in _tt_execute
for idx, player in zip(range(len(round_state['seats']))[:len(round_state['seats'])/2], round_state['seats']): # round_state.html:22
TypeError: slice indices must be integers or None or have an index method

how to restart

when i use pypokergui to play cards,i dont now how to restart the game when a game is ended

can't install

Collecting PyYAML==3.12
Using cached PyYAML-3.12.zip (375 kB)
Using legacy 'setup.py install' for PyYAML, since package 'wheel' is not installed.
Installing collected packages: PyYAML, click
Attempting uninstall: PyYAML
Found existing installation: PyYAML 5.4.1
Uninstalling PyYAML-5.4.1:
Successfully uninstalled PyYAML-5.4.1
Running setup.py install for PyYAML ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4fhjn6pm/pyyaml_2706c4c80ba940198e907ab55878fb7e/setup.py'"'"'; file='"'"'/tmp/pip-install-4fhjn6pm/pyyaml_2706c4c80ba940198e907ab55878fb7e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-tlzxtp/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/salova/.local/include/python3.9/PyYAML
cwd: /tmp/pip-install-4fhjn6pm/pyyaml_2706c4c80ba940198e907ab55878fb7e/
Complete output (704 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/tokens.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/composer.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/nodes.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/loader.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/parser.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/reader.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/cyaml.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/constructor.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/representer.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/serializer.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/emitter.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/events.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/scanner.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/resolver.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/dumper.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/init.py -> build/lib.linux-x86_64-3.9/yaml
copying lib3/yaml/error.py -> build/lib.linux-x86_64-3.9/yaml
running build_ext
creating build/temp.linux-x86_64-3.9
checking if libyaml is compilable
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/include/python3.9 -c build/temp.linux-x86_64-3.9/check_libyaml.c -o build/temp.linux-x86_64-3.9/check_libyaml.o
checking if libyaml is linkable
gcc -pthread build/temp.linux-x86_64-3.9/check_libyaml.o -L/usr/lib -lyaml -o build/temp.linux-x86_64-3.9/check_libyaml
building '_yaml' extension
creating build/temp.linux-x86_64-3.9/ext
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/include/python3.9 -c ext/_yaml.c -o build/temp.linux-x86_64-3.9/ext/_yaml.o
In file included from ext/_yaml.c:271:
ext/_yaml.h:10: warning: "PyString_CheckExact" redefined
10 | #define PyString_CheckExact PyBytes_CheckExact
|
ext/_yaml.c:139: note: this is the location of the previous definition
139 | #define PyString_CheckExact PyUnicode_CheckExact
|
ext/_yaml.c: In function ‘__pyx_pf_5_yaml_get_version_string’:
ext/_yaml.c:1410:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1410 | __pyx_v_value = yaml_get_version_string();
| ^
ext/_yaml.c: In function ‘pyx_pf_5_yaml_7CParser___init’:
ext/_yaml.c:2577:52: warning: passing argument 2 of ‘yaml_parser_set_input’ from incompatible pointer type [-Wincompatible-pointer-types]
2577 | yaml_parser_set_input((&__pyx_v_self->parser), __pyx_f_5_yaml_input_handler, ((void )__pyx_v_self));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (
)(void *, char *, size_t, size_t ) {aka int ()(void *, char *, long unsigned int, long unsigned int )}
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:1374:30: note: expected ‘int (
)(void *, unsigned char *, size_t, size_t )’ {aka ‘int ()(void *, unsigned char *, long unsigned int, long unsigned int )’} but argument is of type ‘int ()(void *, char *, size_t, size_t )’ {aka ‘int ()(void *, char *, long unsigned int, long unsigned int *)’}
1374 | yaml_read_handler_t *handler, void *data);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/python3.9/bytesobject.h:75,
from /usr/include/python3.9/Python.h:105,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/bytesobject.h:32:57: warning: pointer targets in passing argument 2 of ‘yaml_parser_set_input_string’ differ in signedness [-Wpointer-sign]
32 | #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
| |
| char *
33 | (((PyBytesObject *)(op))->ob_sval))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ext/_yaml.h:11:29: note: in expansion of macro ‘PyBytes_AS_STRING’
11 | #define PyString_AS_STRING PyBytes_AS_STRING
| ^~~~~~~~~~~~~~~~~
ext/_yaml.c:2818:59: note: in expansion of macro ‘PyString_AS_STRING’
2818 | yaml_parser_set_input_string((&__pyx_v_self->parser), PyString_AS_STRING(__pyx_v_stream), PyString_GET_SIZE(__pyx_v_stream));
| ^~~~~~~~~~~~~~~~~~
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:1348:30: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
1348 | const unsigned char *input, size_t size);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~
ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__token_to_object’:
ext/_yaml.c:4572:71: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
4572 | __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 417, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:4584:71: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
4584 | __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 418, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:5444:63: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
5444 | __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.alias.value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 448, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:5518:64: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
5518 | __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.anchor.value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 451, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:5592:61: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
5592 | __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag.handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 454, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:5604:61: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
5604 | __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag.suffix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 455, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:5716:64: warning: pointer targets in passing argument 1 of ‘PyUnicode_DecodeUTF8’ differ in signedness [-Wpointer-sign]
5716 | __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_token->data.scalar.value, __pyx_v_token->data.scalar.length, ((char *)"strict")); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 460, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:452:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
452 | const char string, / UTF-8 encoded string */
| ~~~~~~~~~~~~^~~~~~
ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__event_to_object’:
ext/_yaml.c:7424:63: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
7424 | __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 574, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:7436:63: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
7436 | __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->prefix); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 575, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:7655:63: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
7655 | __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.alias.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 586, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:7749:66: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
7749 | __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.scalar.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 591, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:7790:66: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
7790 | __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.scalar.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 594, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:7811:64: warning: pointer targets in passing argument 1 of ‘PyUnicode_DecodeUTF8’ differ in signedness [-Wpointer-sign]
7811 | __pyx_t_4 = PyUnicode_DecodeUTF8(__pyx_v_event->data.scalar.value, __pyx_v_event->data.scalar.length, ((char *)"strict")); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 595, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:452:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
452 | const char string, / UTF-8 encoded string */
| ~~~~~~~~~~~~^~~~~~
ext/_yaml.c:8179:74: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
8179 | __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 620, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:8220:74: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
8220 | __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 623, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:8449:73: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
8449 | __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.mapping_start.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 637, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:8490:73: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
8490 | __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.mapping_start.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 640, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__compose_node’:
ext/_yaml.c:10094:75: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
10094 | __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.alias.anchor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 734, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:10378:76: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
10378 | __pyx_t_6 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.scalar.anchor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 750, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:10434:84: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
10434 | __pyx_t_6 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.sequence_start.anchor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 753, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c:10490:83: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
10490 | __pyx_t_6 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.mapping_start.anchor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 756, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__compose_scalar_node’:
ext/_yaml.c:11109:74: warning: pointer targets in passing argument 1 of ‘PyUnicode_DecodeUTF8’ differ in signedness [-Wpointer-sign]
11109 | __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.scalar.value, __pyx_v_self->parsed_event.data.scalar.length, ((char *)"strict")); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 791, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:452:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
452 | const char string, / UTF-8 encoded string */
| ~~~~~~~~~~~~^~~~~~
ext/_yaml.c:11310:76: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
11310 | __pyx_t_2 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.scalar.tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 804, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__compose_sequence_node’:
ext/_yaml.c:11841:84: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
11841 | __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.sequence_start.tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 837, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c: In function ‘__pyx_f_5_yaml_7CParser__compose_mapping_node’:
ext/_yaml.c:12435:83: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign]
12435 | __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.mapping_start.tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 876, __pyx_L1_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
| |
| yaml_char_t * {aka unsigned char *}
In file included from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/unicodeobject.h:138:17: note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’ {aka ‘unsigned char *’}
138 | const char u / UTF-8 encoded string */
| ~~~~~~~~~~~~^
ext/_yaml.c: In function ‘__pyx_f_5_yaml_input_handler’:
ext/_yaml.c:13141:87: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
13141 | __pyx_t_3 = (((__pyx_v_parser->stream_cache_len - __pyx_v_parser->stream_cache_pos) < __pyx_v_size) != 0);
| ^
ext/_yaml.c: In function ‘pyx_pf_5_yaml_8CEmitter___init’:
ext/_yaml.c:13630:53: warning: passing argument 2 of ‘yaml_emitter_set_output’ from incompatible pointer type [-Wincompatible-pointer-types]
13630 | yaml_emitter_set_output((&__pyx_v_self->emitter), __pyx_f_5_yaml_output_handler, ((void )__pyx_v_self));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (
)(void *, char , size_t) {aka int ()(void *, char , long unsigned int)}
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:1844:31: note: expected ‘int (
)(void *, unsigned char , size_t)’ {aka ‘int ()(void *, unsigned char , long unsigned int)’} but argument is of type ‘int ()(void *, char , size_t)’ {aka ‘int ()(void *, char *, long unsigned int)’}
1844 | yaml_write_handler_t *handler, void *data);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
ext/_yaml.c: In function ‘__pyx_f_5_yaml_8CEmitter__object_to_event’:
ext/_yaml.c:15002:44: warning: pointer targets in assignment from ‘char *’ to ‘yaml_char_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign]
15002 | __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle);
| ^
ext/_yaml.c:15117:44: warning: pointer targets in assignment from ‘char *’ to ‘yaml_char_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign]
15117 | __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix);
| ^
ext/_yaml.c:15454:62: warning: pointer targets in passing argument 2 of ‘yaml_alias_event_initialize’ differ in signedness [-Wpointer-sign]
15454 | __pyx_t_2 = ((yaml_alias_event_initialize(__pyx_v_event, __pyx_v_anchor) == 0) != 0);
| ^~~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:555:69: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
555 | yaml_alias_event_initialize(yaml_event_t *event, const yaml_char_t *anchor);
| ~~~~~~~~~~~~~~~~~~~^~~~~~
ext/_yaml.c:16169:63: warning: pointer targets in passing argument 2 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
16169 | __pyx_t_2 = ((yaml_scalar_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
| ^~~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:581:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
581 | const yaml_char_t *anchor, const yaml_char_t *tag,
| ~~~~~~~~~~~~~~~~~~~^~~~~~
ext/_yaml.c:16169:79: warning: pointer targets in passing argument 3 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
16169 | __pyx_t_2 = ((yaml_scalar_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
| ^~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:581:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
581 | const yaml_char_t *anchor, const yaml_char_t *tag,
| ~~~~~~~~~~~~~~~~~~~^~~
ext/_yaml.c:16169:92: warning: pointer targets in passing argument 4 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
16169 | __pyx_t_2 = ((yaml_scalar_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
| ^~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:582:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
582 | const yaml_char_t *value, int length,
| ~~~~~~~~~~~~~~~~~~~^~~~~
ext/_yaml.c:16603:71: warning: pointer targets in passing argument 2 of ‘yaml_sequence_start_event_initialize’ differ in signedness [-Wpointer-sign]
16603 | __pyx_t_3 = ((yaml_sequence_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0) != 0);
| ^~~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:604:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
604 | const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
| ~~~~~~~~~~~~~~~~~~~^~~~~~
ext/_yaml.c:16603:87: warning: pointer targets in passing argument 3 of ‘yaml_sequence_start_event_initialize’ differ in signedness [-Wpointer-sign]
16603 | __pyx_t_3 = ((yaml_sequence_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0) != 0);
| ^~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:604:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
604 | const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
| ~~~~~~~~~~~~~~~~~~~^~~
ext/_yaml.c:17037:70: warning: pointer targets in passing argument 2 of ‘yaml_mapping_start_event_initialize’ differ in signedness [-Wpointer-sign]
17037 | __pyx_t_2 = ((yaml_mapping_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0) != 0);
| ^~~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:636:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
636 | const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
| ~~~~~~~~~~~~~~~~~~~^~~~~~
ext/_yaml.c:17037:86: warning: pointer targets in passing argument 3 of ‘yaml_mapping_start_event_initialize’ differ in signedness [-Wpointer-sign]
17037 | __pyx_t_2 = ((yaml_mapping_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0) != 0);
| ^~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:636:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
636 | const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
| ~~~~~~~~~~~~~~~~~~~^~~
ext/_yaml.c: In function ‘__pyx_pf_5_yaml_8CEmitter_12serialize’:
ext/_yaml.c:18516:42: warning: pointer targets in assignment from ‘char *’ to ‘yaml_char_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign]
18516 | __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle);
| ^
ext/_yaml.c:18631:42: warning: pointer targets in assignment from ‘char *’ to ‘yaml_char_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign]
18631 | __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix);
| ^
ext/_yaml.c: In function ‘__pyx_f_5_yaml_8CEmitter__serialize_node’:
ext/_yaml.c:19491:65: warning: pointer targets in passing argument 2 of ‘yaml_alias_event_initialize’ differ in signedness [-Wpointer-sign]
19491 | __pyx_t_2 = ((yaml_alias_event_initialize((&__pyx_v_event), __pyx_v_anchor) == 0) != 0);
| ^~~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:555:69: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
555 | yaml_alias_event_initialize(yaml_event_t *event, const yaml_char_t *anchor);
| ~~~~~~~~~~~~~~~~~~~^~~~~~
ext/_yaml.c:20240:68: warning: pointer targets in passing argument 2 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
20240 | __pyx_t_2 = ((yaml_scalar_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
| ^~~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:581:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
581 | const yaml_char_t *anchor, const yaml_char_t *tag,
| ~~~~~~~~~~~~~~~~~~~^~~~~~
ext/_yaml.c:20240:84: warning: pointer targets in passing argument 3 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
20240 | __pyx_t_2 = ((yaml_scalar_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
| ^~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:581:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
581 | const yaml_char_t *anchor, const yaml_char_t *tag,
| ~~~~~~~~~~~~~~~~~~~^~~
ext/_yaml.c:20240:97: warning: pointer targets in passing argument 4 of ‘yaml_scalar_event_initialize’ differ in signedness [-Wpointer-sign]
20240 | __pyx_t_2 = ((yaml_scalar_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0) != 0);
| ^~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:582:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
582 | const yaml_char_t *value, int length,
| ~~~~~~~~~~~~~~~~~~~^~~~~
ext/_yaml.c:20605:76: warning: pointer targets in passing argument 2 of ‘yaml_sequence_start_event_initialize’ differ in signedness [-Wpointer-sign]
20605 | __pyx_t_2 = ((yaml_sequence_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0) != 0);
| ^~~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:604:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
604 | const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
| ~~~~~~~~~~~~~~~~~~~^~~~~~
ext/_yaml.c:20605:92: warning: pointer targets in passing argument 3 of ‘yaml_sequence_start_event_initialize’ differ in signedness [-Wpointer-sign]
20605 | __pyx_t_2 = ((yaml_sequence_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0) != 0);
| ^~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:604:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
604 | const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
| ~~~~~~~~~~~~~~~~~~~^~~
ext/_yaml.c:21113:75: warning: pointer targets in passing argument 2 of ‘yaml_mapping_start_event_initialize’ differ in signedness [-Wpointer-sign]
21113 | __pyx_t_2 = ((yaml_mapping_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0) != 0);
| ^~~~~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:636:28: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
636 | const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
| ~~~~~~~~~~~~~~~~~~~^~~~~~
ext/_yaml.c:21113:91: warning: pointer targets in passing argument 3 of ‘yaml_mapping_start_event_initialize’ differ in signedness [-Wpointer-sign]
21113 | __pyx_t_2 = ((yaml_mapping_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0) != 0);
| ^~~~~~~~~~~
| |
| char *
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:636:55: note: expected ‘const yaml_char_t *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
636 | const yaml_char_t *anchor, const yaml_char_t *tag, int implicit,
| ~~~~~~~~~~~~~~~~~~~^~~
ext/_yaml.c: In function ‘PyInit__yaml’:
ext/_yaml.c:23103:25: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
23103 | __pyx_type_5_yaml_Mark.tp_print = 0;
| ^
ext/_yaml.c:23119:28: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
23119 | __pyx_type_5_yaml_CParser.tp_print = 0;
| ^
ext/_yaml.c:23129:29: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
23129 | __pyx_type_5_yaml_CEmitter.tp_print = 0;
| ^
ext/_yaml.c: In function ‘__Pyx_ParseOptionalKeywords’:
ext/_yaml.c:24087:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24087 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24087:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
24087 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24087:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24087 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24087:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24087 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24087:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
24087 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24087:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24087 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24103:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24103 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24103:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
24103 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24103:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24103 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24103:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24103 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24103:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
24103 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
ext/_yaml.c:24103:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24103 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:106,
from ext/_yaml.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ext/_yaml.c: In function ‘__Pyx__ExceptionSave’:
ext/_yaml.c:24143:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
24143 | *type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
ext/_yaml.c:24144:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
24144 | *value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
ext/_yaml.c:24145:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
24145 | *tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
ext/_yaml.c: In function ‘__Pyx__ExceptionReset’:
ext/_yaml.c:24152:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
24152 | tmp_type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
ext/_yaml.c:24153:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
24153 | tmp_value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
ext/_yaml.c:24154:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
24154 | tmp_tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
ext/_yaml.c:24155:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
24155 | tstate->exc_type = type;
| ^~~~~~~~
| curexc_type
ext/_yaml.c:24156:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
24156 | tstate->exc_value = value;
| ^~~~~~~~~
| curexc_value
ext/_yaml.c:24157:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
24157 | tstate->exc_traceback = tb;
| ^~~~~~~~~~~~~
| curexc_traceback
ext/_yaml.c: In function ‘__Pyx__GetException’:
ext/_yaml.c:24212:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
24212 | tmp_type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
ext/_yaml.c:24213:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
24213 | tmp_value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
ext/_yaml.c:24214:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
24214 | tmp_tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
ext/_yaml.c:24215:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
24215 | tstate->exc_type = local_type;
| ^~~~~~~~
| curexc_type
ext/_yaml.c:24216:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
24216 | tstate->exc_value = local_value;
| ^~~~~~~~~
| curexc_value
ext/_yaml.c:24217:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
24217 | tstate->exc_traceback = local_tb;
| ^~~~~~~~~~~~~
| curexc_traceback
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
Rolling back uninstall of PyYAML
Moving to /home/salova/.local/lib/python3.9/site-packages/PyYAML-5.4.1.dist-info/
from /home/salova/.local/lib/python3.9/site-packages/~yYAML-5.4.1.dist-info
Moving to /home/salova/.local/lib/python3.9/site-packages/_yaml/
from /home/salova/.local/lib/python3.9/site-packages/~yaml
Moving to /home/salova/.local/lib/python3.9/site-packages/yaml/
from /home/salova/.local/lib/python3.9/site-packages/~aml
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4fhjn6pm/pyyaml_2706c4c80ba940198e907ab55878fb7e/setup.py'"'"'; file='"'"'/tmp/pip-install-4fhjn6pm/pyyaml_2706c4c80ba940198e907ab55878fb7e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-tlzxtp/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/salova/.local/include/python3.9/PyYAML Check the logs for full command output.

return action, amount # action returned here is sent to the poker engine

I run the program well until it gets to here:
return action, amount # action returned here is sent to the poker engine
where I get this error message:
File "C:\Users\user10\PycharmProjects\PyPokerGUI\fish_player_setup.py", line 9, in declare_action
return action, amount # action returned here is sent to the poker engine
NameError: name 'action' is not defined

When I replaced by values it works:
return "fold", 20 # action returned here is sent to the poker engine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.