Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 668
    • Issues 668
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Mercurial Paris conference scheduled ! Main event : 2022-09-22. Call for papers deadline: 2022-06-17.

  • PyPy
  • pypypypy
  • Issues
  • #3663

Closed
Open
Created Feb 05, 2022 by stonebig@stonebig

strange binary compatibility message on plotnine test on PyPy-3.8 nightly (0360402c9455)

Trying

Python 3.8.12 (0360402c9455129a4a246fc9faede8e212ee7226, Feb 04 2022, 00:30:51)
[PyPy 7.3.9-alpha0 with MSC v.1929 64 bit (AMD64)] on win32

on this code

# plotnine: giving a taste of ggplot of R langage (formerly we were using ggpy)
from plotnine import ggplot, aes, geom_blank, geom_point, stat_smooth, facet_wrap, theme_bw
from plotnine.data import mtcars
ggplot(mtcars, aes(x='hp', y='wt', color='mpg')) + geom_point() +\
facet_wrap("~cyl") + theme_bw()

I get that failure:

ValueError: array.array size changed, may indicate binary incompatibility. Expected 72 from C header, got 24 from PyObject

any idea on the root cause, or where I should digg further on the root cause ?

pyproj wheel is pyproj-3.3.0-pp38-pypy38_pp73-win_amd64.whl from january 1st of cgohlke

details of failure report:

```` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Input In [21], in 1 # plotnine: giving a taste of ggplot of R langage (formerly we were using ggpy) ----> 2 from plotnine import ggplot, aes, geom_blank, geom_point, stat_smooth, facet_wrap, theme_bw 3 from plotnine.data import mtcars 4 ggplot(mtcars, aes(x='hp', y='wt', color='mpg')) + geom_point() +\ 5 facet_wrap("~cyl") + theme_bw()

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine_init_.py:1, in ----> 1 from .qplot import qplot # noqa: F401 2 from .ggplot import ggplot, ggsave # noqa: F401 3 from .ggplot import save_as_pdf_pages # noqa: F401

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine\qplot.py:9, in 6 import numpy as np 7 from patsy.eval import EvalEnvironment ----> 9 from .ggplot import ggplot 10 from .mapping.aes import aes, all_aesthetics, scaled_aesthetics 11 from .labels import labs

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine\ggplot.py:20, in 18 from .mapping.aes import aes, make_labels 19 from .layer import Layers ---> 20 from .facets import facet_null 21 from .facets.layout import Layout 22 from .options import get_option

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine\facets_init_.py:1, in ----> 1 from .facet_grid import facet_grid 2 from .facet_null import facet_null 3 from .facet_wrap import facet_wrap

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine\facets\facet_grid.py:6, in 4 from ..utils import match, join_keys 5 from ..exceptions import PlotnineError ----> 6 from .facet import facet, layout_null, combine_vars, add_missing_facets 7 from .facet import eval_facet_vars 8 from .strips import strip

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine\facets\facet.py:13, in 11 from ..utils import cross_join, match 12 from ..exceptions import PlotnineError, PlotnineWarning ---> 13 from ..scales.scales import Scales 15 # For default matplotlib backend 16 with suppress(ImportError):

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine\scales_init_.py:83, in 81 from .scale_xy import scale_y_timedelta 82 # limits ---> 83 from .limits import xlim, ylim, lims, expand_limits 86 all = [ 87 # color 88 'scale_color_brewer', 'scale_colour_brewer', (...) 151 'xlim', 'ylim', 'lims', 'expand_limits' 152 ]

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine\scales\limits.py:8, in 5 import pandas as pd 7 from ..mapping.aes import aes, all_aesthetics ----> 8 from ..geoms import geom_blank 9 from ..scales.scales import make_scale 10 from ..exceptions import PlotnineError

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine\geoms_init_.py:27, in 25 from .geom_line import geom_line 26 from .geom_linerange import geom_linerange ---> 27 from .geom_map import geom_map 28 from .geom_path import geom_path 29 from .geom_point import geom_point

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\plotnine\geoms\geom_map.py:7, in 4 from descartes.patch import PolygonPatch 6 try: ----> 7 import geopandas # noqa: F401 8 except ImportError: 9 HAS_GEOPANDAS = False

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\geopandas_init_.py:1, in ----> 1 from geopandas._config import options # noqa 3 from geopandas.geoseries import GeoSeries # noqa 4 from geopandas.geodataframe import GeoDataFrame # noqa

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\geopandas_config.py:109, in 102 import geopandas._compat as compat 104 compat.set_use_pygeos(value) 107 use_pygeos = Option( 108 key="use_pygeos", --> 109 default_value=_default_use_pygeos(), 110 doc=( 111 "Whether to use PyGEOS to speed up spatial operations. The default is True " 112 "if PyGEOS is installed, and follows the USE_PYGEOS environment variable " 113 "if set." 114 ), 115 validator=_validate_bool, 116 callback=_callback_use_pygeos, 117 ) 120 options = Options({"display_precision": display_precision, "use_pygeos": use_pygeos})

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\geopandas_config.py:95, in _default_use_pygeos() 94 def _default_use_pygeos(): ---> 95 import geopandas._compat as compat 97 return compat.USE_PYGEOS

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\geopandas_compat.py:9, in 7 import numpy as np 8 import pandas as pd ----> 9 import pyproj 10 import shapely 11 import shapely.geos

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\pyproj_init_.py:49, in 32 all = [ 33 "Proj", 34 "Geod", (...) 45 "show_versions", 46 ] 47 import warnings ---> 49 import pyproj.network 50 from pyproj._datadir import ( # noqa: F401 pylint: disable=unused-import 51 _pyproj_global_context_initialize, 52 set_use_global_context, 53 ) 54 from pyproj._show_versions import ( # noqa: F401 pylint: disable=unused-import 55 show_versions, 56 )

File C:\WinP\bd38\buPyPy\WPy64-38121b6\pypy3.8-v7.3.8rc2-win64\lib\site-packages\pyproj\network.py:10, in 6 from typing import Union 8 import certifi ---> 10 from pyproj._network import ( # noqa: F401 pylint: disable=unused-import 11 _set_ca_bundle_path, 12 is_network_enabled, 13 set_network_enabled, 14 ) 17 def set_ca_bundle_path(ca_bundle_path: Union[Path, str, bool, None] = None) -> None: 18 """ 19 .. versionadded:: 3.0.0 20 (...) 38 variables. 39 """

File pyproj_network.pyx:1, in init pyproj._network()

ValueError: array.array size changed, may indicate binary incompatibility. Expected 72 from C header, got 24 from PyObject


</details>
Edited Feb 05, 2022 by stonebig
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking