Re: py2app: Can successfully create app with alias mode but version built for deployment returns an error message

Christopher Barker <[email protected]> Thu, 17 Jun 2021 12:35:12 -0700
Newsgroups gmane.comp.python.apple
Message-ID <CALn7ch-hgvhQjBuGXE9yWdmHE7qLUnLKQm2P1mQNy4Bx0SSoZg@mail.gmail.com>
--===============6839294002927555708==
Content-Type: multipart/alternative; boundary="000000000000ea021705c4fb4ee8"

--000000000000ea021705c4fb4ee8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 17, 2021 at 9:24 AM <[email protected]> wrote:

> I think `.pyx` files are Cython sources,
>

Yes, they are. But Cython is designed to show the source line number when
there are errors. So this has been compiled.

That error is vaguely familiar to me, I got it recently=E2=80=94 I think th=
e fix
was to clean out and recompile the Cython files.

However, if Pandas is working outside py2app, then it did get built
properly.

I=E2=80=99d look at the app bundle and see what=E2=80=99s different from th=
e regular
install.

Ideally, it would copy only the complied modules.

-CHB


and I think these need to be compiled on installation (which should have
> happend during py2app?).
>
> When you google for =E2=80=9Cpandas py2app=E2=80=9D you=E2=80=99ll find p=
eople reporting similar
> (but not identical) problems to what you report.
>
> But note that some of the stuff google finds is very old, so use your
> common sense, the world may have changed a lot since the link was written=
.
>
>
>
> On 15 Jun 2021, at 23:37, Paul Fishback <[email protected]> wrote:
>
> I'm using Python 3.9 on a Mac running Big Sur and am trying to create an
> app, MyApplication.app, from a script using py2app. I'm following the
> process outlined at https://py2app.readthedocs.io/en/latest/tutorial.html=
 .
> The app itself uses tkinter for creating a GUI. My setup file looks like
> the following, where 'background.png' is an image that appears on the
> screen at program startup, and 'pandas' and 'cmath' are included due to
> previous error messages:
>
> from setuptools import setup
>
> APP =3D ['MyApplication_6_14.py']
> DATA_FILES =3D []
> OPTIONS =3D {'resources':['background.png'],'packages': ['pandas','cmath'=
]}
>
> setup(
>     app=3DAPP,
>     data_files=3DDATA_FILES,
>     options=3D{'py2app': OPTIONS},
>     setup_requires=3D['py2app'],
> )
>
> I can create and run the application in alias mode, and no error messages
> arise when I build for deployment. However, when I attempt to run the
> deployed version from the command line via,
>
> ./dist/MyApplication.app/Contents/MacOS/MyApplication
>
> I receive a fairly lengthy error message below, where Python_May_2021 is
> the file location:
>
> fishbacp@fishbacpK0ML85 Python_May_2021 %
> ./dist/MyApplication_6_15.app/Contents/MacOS/MyApplication_6_15
> Traceback (most recent call last):
>   File
> "/Users/fishbacp/Desktop/Python_May_2021/dist/MyApplication_6_15.app/Cont=
ents/Resources/__boot__.py",
> line 115, in <module>
>     _run()
>   File
> "/Users/fishbacp/Desktop/Python_May_2021/dist/MyApplication_6_15.app/Cont=
ents/Resources/__boot__.py",
> line 84, in _run
>     exec(compile(source, path, "exec"), globals(), globals())
>   File
> "/Users/fishbacp/Desktop/Python_May_2021/dist/MyApplication_6_15.app/Cont=
ents/Resources/MyApplication_6_15.py",
> line 6, in <module>
>     import pandas as pd
>   File
> "/Users/fishbacp/Desktop/Python_May_2021/dist/MyApplication_6_15.app/Cont=
ents/Resources/lib/python3.9/pandas/__init__.py",
> line 179, in <module>
>     import pandas.testing
>   File
> "/Users/fishbacp/Desktop/Python_May_2021/dist/MyApplication_6_15.app/Cont=
ents/Resources/lib/python3.9/pandas/testing.py",
> line 5, in <module>
>     from pandas._testing import (
>   File
> "/Users/fishbacp/Desktop/Python_May_2021/dist/MyApplication_6_15.app/Cont=
ents/Resources/lib/python3.9/pandas/_testing.py",
> line 29, in <module>
>     import pandas._libs.testing as _testing
>   File "pandas/_libs/testing.pyx", line 1, in init pandas._libs.testing
> ValueError: source code string cannot contain null bytes
>
> I'm curious to know if anyone has insights regarding the last line in the
> above message.
>
> Thanks
>
> PaulF
> --
> Professor of Mathematics, Grand Valley State University
> Past-President, Pi Mu Epsilon National Honorary Mathematics Society, Inc.
>
> Department of Mathematics (MAK C-2-408)
> Grand Valley State University
> 1 Campus Dr.
> <https://www.google.com/maps/search/1+Campus+Dr.+Allendale,+MI+49401?entr=
y=3Dgmail&source=3Dg>
> Allendale, MI 49401
> <https://www.google.com/maps/search/1+Campus+Dr.+Allendale,+MI+49401?entr=
y=3Dgmail&source=3Dg>
> [email protected]
> 616.331.2040
> 616.331.3120 (fax)
> _______________________________________________
> Pythonmac-SIG maillist  -  [email protected]
> https://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
>
>
> _______________________________________________
> Pythonmac-SIG maillist  -  [email protected]
> https://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
>
--=20
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython

--000000000000ea021705c4fb4ee8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><br></div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Thu, Jun 17, 2021 at 9:24 AM &lt;<a href=3D"mailto:jack.=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;bo=
rder-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">=
<div style=3D"word-wrap:break-word;line-break:after-white-space" dir=3D"aut=
o">I think `.pyx` files are Cython sources, </div></blockquote><div dir=3D"=
auto"><br></div><div dir=3D"auto">Yes, they are. But Cython is designed to =
show the source line number when there are errors. So this has been compile=
d.</div><div dir=3D"auto"><br></div><div dir=3D"auto">That error is vaguely=
 familiar to me, I got it recently=E2=80=94 I think the fix was to clean ou=
t and recompile the Cython files.</div><div dir=3D"auto"><br></div><div dir=
=3D"auto">However, if Pandas is working outside py2app, then it did get bui=
lt properly.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">I=E2=
=80=99d look at the app bundle and see what=E2=80=99s different from the re=
gular install.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Ideally, =
it would copy only the complied modules.</div><div dir=3D"auto"><br></div><=
div dir=3D"auto">-CHB</div><div dir=3D"auto"><br></div><div dir=3D"auto"><b=
r></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left=
-color:rgb(204,204,204)"><div style=3D"word-wrap:break-word;line-break:afte=
r-white-space" dir=3D"auto">and I think these need to be compiled on instal=
lation (which should have happend during py2app?).<div><br></div><div>When =
you google for =E2=80=9Cpandas py2app=E2=80=9D you=E2=80=99ll find people r=
eporting similar (but not identical) problems to what you report.</div><div=
><br></div><div>But note that some of the stuff google finds is very old, s=
o use your common sense, the world may have changed a lot since the link wa=
s written.</div></div><div style=3D"word-wrap:break-word;line-break:after-w=
hite-space"><div><br></div><div><br><div><br><blockquote type=3D"cite"><div=
>On 15 Jun 2021, at 23:37, Paul Fishback &lt;<a href=3D"mailto:fishbacp@mai=
l.gvsu.edu" target=3D"_blank">[email protected]</a>&gt; wrote:</div><b=
r><div><div dir=3D"ltr"><span style=3D"font-family:-apple-system,system-ui,=
&quot;Segoe UI&quot;,&quot;Liberation Sans&quot;,sans-serif;font-size:15px;=
color:rgb(36,39,41)">I&#39;m using Python 3.9 on a Mac running Big Sur and =
am trying to create an app, MyApplication.app, from a script using py2app. =
I&#39;m following the process outlined at=C2=A0</span><a href=3D"https://py=
2app.readthedocs.io/en/latest/tutorial.html" rel=3D"nofollow noreferrer" st=
yle=3D"margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-=
variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-fa=
mily:-apple-system,system-ui,&quot;Segoe UI&quot;,&quot;Liberation Sans&quo=
t;,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit" ta=
rget=3D"_blank">https://py2app.readthedocs.io/en/latest/tutorial.html</a><s=
pan style=3D"font-family:-apple-system,system-ui,&quot;Segoe UI&quot;,&quot=
;Liberation Sans&quot;,sans-serif;font-size:15px;color:rgb(36,39,41)">=C2=
=A0. The app itself uses tkinter for creating a GUI. My setup file looks li=
ke the following, where &#39;background.png&#39; is an image that appears o=
n the screen at program startup, and &#39;pandas&#39; and &#39;cmath&#39; a=
re included due to previous error messages:</span><div><font face=3D"-apple=
-system, system-ui, Segoe UI, Liberation Sans, sans-serif" style=3D"font-fa=
mily:-apple-system,system-ui,&quot;Segoe UI&quot;,&quot;Liberation Sans&quo=
t;,sans-serif;color:rgb(36,39,41)"><span style=3D"font-size:15px;font-famil=
y:-apple-system,system-ui,&quot;Segoe UI&quot;,&quot;Liberation Sans&quot;,=
sans-serif"><br></span></font></div><div><pre style=3D"margin-top:0px;margi=
n-bottom:0px;padding:12px;border:0px;font-variant-numeric:inherit;font-vari=
ant-east-asian:inherit;font-stretch:inherit;line-height:1.30769;font-size:1=
3px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;=
overflow:auto;border-top-left-radius:5px;border-top-right-radius:5px;border=
-bottom-right-radius:5px;border-bottom-left-radius:5px;font-family:monospac=
e"><code style=3D"margin:0px;padding:0px;border:0px;font-style:inherit;font=
-variant-ligatures:inherit;font-variant-caps:inherit;font-variant-numeric:i=
nherit;font-variant-alternates:inherit;font-variant-east-asian:inherit;font=
-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:monosp=
ace;vertical-align:baseline;box-sizing:inherit;white-space:inherit;backgrou=
nd-color:transparent"><span style=3D"margin:0px;padding:0px;border:0px;font=
-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;fon=
t-variant-numeric:inherit;font-variant-alternates:inherit;font-variant-east=
-asian:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit=
;font-family:monospace;vertical-align:baseline;box-sizing:inherit">from</sp=
an> setuptools <span style=3D"margin:0px;padding:0px;border:0px;font-style:=
inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-varia=
nt-numeric:inherit;font-variant-alternates:inherit;font-variant-east-asian:=
inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-f=
amily:monospace;vertical-align:baseline;box-sizing:inherit">import</span> s=
etup

APP =3D [<span style=3D"margin:0px;padding:0px;border:0px;font-style:inheri=
t;font-variant-ligatures:inherit;font-variant-caps:inherit;font-variant-num=
eric:inherit;font-variant-alternates:inherit;font-variant-east-asian:inheri=
t;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:=
monospace;vertical-align:baseline;box-sizing:inherit">&#39;MyApplication_6_=
14.py&#39;</span>]
DATA_FILES =3D []
OPTIONS =3D {<span style=3D"margin:0px;padding:0px;border:0px;font-style:in=
herit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-variant=
-numeric:inherit;font-variant-alternates:inherit;font-variant-east-asian:in=
herit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-fam=
ily:monospace;vertical-align:baseline;box-sizing:inherit">&#39;resources&#3=
9;</span>:[<span style=3D"margin:0px;padding:0px;border:0px;font-style:inhe=
rit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-variant-n=
umeric:inherit;font-variant-alternates:inherit;font-variant-east-asian:inhe=
rit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-famil=
y:monospace;vertical-align:baseline;box-sizing:inherit">&#39;background.png=
&#39;</span>],<span style=3D"margin:0px;padding:0px;border:0px;font-style:i=
nherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-varian=
t-numeric:inherit;font-variant-alternates:inherit;font-variant-east-asian:i=
nherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-fa=
mily:monospace;vertical-align:baseline;box-sizing:inherit">&#39;packages&#3=
9;</span>: [<span style=3D"margin:0px;padding:0px;border:0px;font-style:inh=
erit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-variant-=
numeric:inherit;font-variant-alternates:inherit;font-variant-east-asian:inh=
erit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-fami=
ly:monospace;vertical-align:baseline;box-sizing:inherit">&#39;pandas&#39;</=
span>,<span style=3D"margin:0px;padding:0px;border:0px;font-style:inherit;f=
ont-variant-ligatures:inherit;font-variant-caps:inherit;font-variant-numeri=
c:inherit;font-variant-alternates:inherit;font-variant-east-asian:inherit;f=
ont-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:mon=
ospace;vertical-align:baseline;box-sizing:inherit">&#39;cmath&#39;</span>]}

setup(
    app=3DAPP,
    data_files=3DDATA_FILES,
    options=3D{<span style=3D"margin:0px;padding:0px;border:0px;font-style:=
inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-varia=
nt-numeric:inherit;font-variant-alternates:inherit;font-variant-east-asian:=
inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-f=
amily:monospace;vertical-align:baseline;box-sizing:inherit">&#39;py2app&#39=
;</span>: OPTIONS},
    setup_requires=3D[<span style=3D"margin:0px;padding:0px;border:0px;font=
-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;fon=
t-variant-numeric:inherit;font-variant-alternates:inherit;font-variant-east=
-asian:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit=
;font-family:monospace;vertical-align:baseline;box-sizing:inherit">&#39;py2=
app&#39;</span>],
)</code></pre><div><font face=3D"-apple-system, system-ui, Segoe UI, Libera=
tion Sans, sans-serif" style=3D"font-family:-apple-system,system-ui,&quot;S=
egoe UI&quot;,&quot;Liberation Sans&quot;,sans-serif;color:rgb(36,39,41)"><=
span style=3D"font-size:15px;font-family:-apple-system,system-ui,&quot;Sego=
e UI&quot;,&quot;Liberation Sans&quot;,sans-serif">I can create and run the=
 application in alias mode, and no error messages arise when I build for de=
ployment. However, when I attempt to run the deployed version from the comm=
and line via,</span></font></div><div><font face=3D"-apple-system, system-u=
i, Segoe UI, Liberation Sans, sans-serif" style=3D"font-family:-apple-syste=
m,system-ui,&quot;Segoe UI&quot;,&quot;Liberation Sans&quot;,sans-serif;col=
or:rgb(36,39,41)"><span style=3D"font-size:15px;font-family:-apple-system,s=
ystem-ui,&quot;Segoe UI&quot;,&quot;Liberation Sans&quot;,sans-serif"><br><=
/span></font></div><div><div>./dist/MyApplication.app/Contents/MacOS/MyAppl=
ication</div></div><div><br></div><div>I receive a fairly lengthy error mes=
sage below, where Python_May_2021 is the file location:</div><div><br></div=
><div><div style=3D"margin:0px;font-variant-numeric:normal;font-variant-eas=
t-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-f=
amily:Menlo"><span style=3D"font-variant-ligatures:no-common-ligatures;font=
-family:Menlo"><font style=3D"font-family:Menlo;color:rgb(255,0,0)">fishbac=
p@fishbacpK0ML85 Python_May_2021 % ./dist/MyApplication_6_15.app/Contents/M=
acOS/MyApplication_6_15</font></span></div><div style=3D"margin:0px;font-va=
riant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;fon=
t-size:11px;line-height:normal;font-family:Menlo"><span style=3D"font-varia=
nt-ligatures:no-common-ligatures;font-family:Menlo"><font style=3D"font-fam=
ily:Menlo;color:rgb(255,0,0)">Traceback (most recent call last):</font></sp=
an></div><div style=3D"margin:0px;font-variant-numeric:normal;font-variant-=
east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;fon=
t-family:Menlo"><span style=3D"font-variant-ligatures:no-common-ligatures;f=
ont-family:Menlo"><font style=3D"font-family:Menlo;color:rgb(255,0,0)"><spa=
n style=3D"font-family:Menlo">=C2=A0 </span>File &quot;/Users/fishbacp/Desk=
top/Python_May_2021/dist/MyApplication_6_15.app/Contents/Resources/__boot__=
.py&quot;, line 115, in &lt;module&gt;</font></span></div><div style=3D"mar=
gin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-str=
etch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span styl=
e=3D"font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font st=
yle=3D"font-family:Menlo;color:rgb(255,0,0)"><span style=3D"font-family:Men=
lo">=C2=A0 =C2=A0 </span>_run()</font></span></div><div style=3D"margin:0px=
;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:no=
rmal;font-size:11px;line-height:normal;font-family:Menlo"><span style=3D"fo=
nt-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style=3D"=
font-family:Menlo;color:rgb(255,0,0)"><span style=3D"font-family:Menlo">=C2=
=A0 </span>File &quot;/Users/fishbacp/Desktop/Python_May_2021/dist/MyApplic=
ation_6_15.app/Contents/Resources/__boot__.py&quot;, line 84, in _run</font=
></span></div><div style=3D"margin:0px;font-variant-numeric:normal;font-var=
iant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:norma=
l;font-family:Menlo"><span style=3D"font-variant-ligatures:no-common-ligatu=
res;font-family:Menlo"><font style=3D"font-family:Menlo;color:rgb(255,0,0)"=
><span style=3D"font-family:Menlo">=C2=A0 =C2=A0 </span>exec(compile(source=
, path, &quot;exec&quot;), globals(), globals())</font></span></div><div st=
yle=3D"margin:0px;font-variant-numeric:normal;font-variant-east-asian:norma=
l;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">=
<span style=3D"font-variant-ligatures:no-common-ligatures;font-family:Menlo=
"><font style=3D"font-family:Menlo;color:rgb(255,0,0)"><span style=3D"font-=
family:Menlo">=C2=A0 </span>File &quot;/Users/fishbacp/Desktop/Python_May_2=
021/dist/MyApplication_6_15.app/Contents/Resources/MyApplication_6_15.py&qu=
ot;, line 6, in &lt;module&gt;</font></span></div><div style=3D"margin:0px;=
font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:nor=
mal;font-size:11px;line-height:normal;font-family:Menlo"><span style=3D"fon=
t-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style=3D"f=
ont-family:Menlo;color:rgb(255,0,0)"><span style=3D"font-family:Menlo">=C2=
=A0 =C2=A0 </span>import pandas as pd</font></span></div><div style=3D"marg=
in:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre=
tch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style=
=3D"font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font sty=
le=3D"font-family:Menlo;color:rgb(255,0,0)"><span style=3D"font-family:Menl=
o">=C2=A0 </span>File &quot;/Users/fishbacp/Desktop/Python_May_2021/dist/My=
Application_6_15.app/Contents/Resources/lib/python3.9/pandas/__init__.py&qu=
ot;, line 179, in &lt;module&gt;</font></span></div><div style=3D"margin:0p=
x;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:n=
ormal;font-size:11px;line-height:normal;font-family:Menlo"><span style=3D"f=
ont-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style=3D=
"font-family:Menlo;color:rgb(255,0,0)"><span style=3D"font-family:Menlo">=
=C2=A0 =C2=A0 </span>import pandas.testing</font></span></div><div style=3D=
"margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font=
-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span =
style=3D"font-variant-ligatures:no-common-ligatures;font-family:Menlo"><fon=
t style=3D"font-family:Menlo;color:rgb(255,0,0)"><span style=3D"font-family=
:Menlo">=C2=A0 </span>File &quot;/Users/fishbacp/Desktop/Python_May_2021/di=
st/MyApplication_6_15.app/Contents/Resources/lib/python3.9/pandas/testing.p=
y&quot;, line 5, in &lt;module&gt;</font></span></div><div style=3D"margin:=
0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch=
:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style=3D=
"font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style=
=3D"font-family:Menlo;color:rgb(255,0,0)"><span style=3D"font-family:Menlo"=
>=C2=A0 =C2=A0 </span>from pandas._testing import (</font></span></div><div=
 style=3D"margin:0px;font-variant-numeric:normal;font-variant-east-asian:no=
rmal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menl=
o"><span style=3D"font-variant-ligatures:no-common-ligatures;font-family:Me=
nlo"><font style=3D"font-family:Menlo;color:rgb(255,0,0)"><span style=3D"fo=
nt-family:Menlo">=C2=A0 </span>File &quot;/Users/fishbacp/Desktop/Python_Ma=
y_2021/dist/MyApplication_6_15.app/Contents/Resources/lib/python3.9/pandas/=
_testing.py&quot;, line 29, in &lt;module&gt;</font></span></div><div style=
=3D"margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;f=
ont-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><sp=
an style=3D"font-variant-ligatures:no-common-ligatures;font-family:Menlo"><=
font style=3D"font-family:Menlo;color:rgb(255,0,0)"><span style=3D"font-fam=
ily:Menlo">=C2=A0 =C2=A0 </span>import pandas._libs.testing as _testing</fo=
nt></span></div><div style=3D"margin:0px;font-variant-numeric:normal;font-v=
ariant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:nor=
mal;font-family:Menlo"><span style=3D"font-variant-ligatures:no-common-liga=
tures;font-family:Menlo"><font style=3D"font-family:Menlo;color:rgb(255,0,0=
)"><span style=3D"font-family:Menlo">=C2=A0 </span>File &quot;pandas/_libs/=
testing.pyx&quot;, line 1, in init pandas._libs.testing</font></span></div>=
<div style=3D"margin:0px;font-variant-numeric:normal;font-variant-east-asia=
n:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:=
Menlo"><span style=3D"font-variant-ligatures:no-common-ligatures;font-famil=
y:Menlo"><font style=3D"font-family:Menlo;color:rgb(255,0,0)">ValueError: s=
ource code string cannot contain null bytes</font></span></div></div><div><=
font face=3D"-apple-system, system-ui, Segoe UI, Liberation Sans, sans-seri=
f" style=3D"font-family:-apple-system,system-ui,&quot;Segoe UI&quot;,&quot;=
Liberation Sans&quot;,sans-serif;color:rgb(36,39,41)"><span style=3D"font-s=
ize:15px;font-family:-apple-system,system-ui,&quot;Segoe UI&quot;,&quot;Lib=
eration Sans&quot;,sans-serif"><br clear=3D"all"></span></font><div>I&#39;m=
 curious to know if anyone has insights regarding the last line in the abov=
e message.</div><div><br></div><div>Thanks</div><div><br></div><div>PaulF</=
div>-- <br><div dir=3D"ltr" data-smartmail=3D"gmail_signature"><div dir=3D"=
ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div=
><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><font face=3D=
"arial, sans-serif" style=3D"font-family:arial,sans-serif;color:rgb(0,0,0)"=
>Professor of Mathematics, Grand Valley State University=C2=A0</font></div>=
<div dir=3D"ltr"><font style=3D"color:rgb(0,0,0)"><font face=3D"arial, sans=
-serif" style=3D"font-family:arial,sans-serif;color:rgb(0,0,0)">Past-Presid=
ent, Pi Mu Epsilon National Honorary Mathematics Society, Inc.</font><br></=
font><br><div style=3D"font-family:arial">Department of Mathematics (MAK C-=
2-408)</div><div style=3D"font-family:arial">Grand Valley State University<=
/div><div style=3D"font-family:arial"><a href=3D"https://www.google.com/map=
s/search/1+Campus+Dr.+Allendale,+MI+49401?entry=3Dgmail&amp;source=3Dg" sty=
le=3D"font-family:arial">1 Campus Dr.</a><br><a href=3D"https://www.google.=
com/maps/search/1+Campus+Dr.+Allendale,+MI+49401?entry=3Dgmail&amp;source=
=3Dg" style=3D"font-family:arial">Allendale, MI 49401</a><br><font style=3D=
"font-family:arial;color:rgb(0,0,255)"><a href=3D"mailto:[email protected]=
.edu" target=3D"_blank" style=3D"font-family:arial">[email protected]<=
/a></font></div><div><font style=3D"color:rgb(0,0,255)"><span style=3D"font=
-family:arial"><span title=3D"Call with Google Voice" style=3D"font-family:=
arial"><span title=3D"Call with Google Voice" style=3D"font-family:arial"><=
span title=3D"Call with Google Voice" style=3D"font-family:arial">616.331.2=
040</span></span></span></span><br></font><span style=3D"font-family:arial"=
><font style=3D"font-family:arial;color:rgb(0,0,255)"><span title=3D"Call w=
ith Google Voice" style=3D"font-family:arial"><span title=3D"Call with Goog=
le Voice" style=3D"font-family:arial"><span title=3D"Call with Google Voice=
" style=3D"font-family:arial">616.331.3120</span></span></span> </font>(fax=
)</span><br></div></div></div></div></div></div></div></div></div></div></d=
iv></div></div></div></div></div></div></div>
_______________________________________________<br>Pythonmac-SIG maillist =
=C2=A0- =C2=A0<a href=3D"mailto:[email protected]" target=3D"_blank"=
>[email protected]</a><br><a href=3D"https://mail.python.org/mailman=
/listinfo/pythonmac-sig" target=3D"_blank">https://mail.python.org/mailman/=
listinfo/pythonmac-sig</a><br>unsubscribe: <a href=3D"https://mail.python.o=
rg/mailman/options/Pythonmac-SIG" target=3D"_blank">https://mail.python.org=
/mailman/options/Pythonmac-SIG</a><br></div></blockquote></div><br></div></=
div>_______________________________________________<br>
Pythonmac-SIG maillist=C2=A0 -=C2=A0 <a href=3D"mailto:Pythonmac-SIG@python=
.org" target=3D"_blank">[email protected]</a><br>
<a href=3D"https://mail.python.org/mailman/listinfo/pythonmac-sig" rel=3D"n=
oreferrer" target=3D"_blank">https://mail.python.org/mailman/listinfo/pytho=
nmac-sig</a><br>
unsubscribe: <a href=3D"https://mail.python.org/mailman/options/Pythonmac-S=
IG" rel=3D"noreferrer" target=3D"_blank">https://mail.python.org/mailman/op=
tions/Pythonmac-SIG</a><br>
</blockquote></div></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature" =
data-smartmail=3D"gmail_signature"><div dir=3D"ltr">Christopher Barker, PhD=
 (Chris)<br><br> Python Language Consulting<br>=C2=A0 - Teaching<br>=C2=A0 =
- Scientific Software Development<br>=C2=A0 - Desktop GUI and Web Developme=
nt<br>=C2=A0 - wxPython, numpy, scipy, Cython<br></div></div>

--000000000000ea021705c4fb4ee8--

--===============6839294002927555708==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

--===============6839294002927555708==--