01:28
epony has quit [Ping timeout: 272 seconds]
02:52
jcea has quit [Ping timeout: 246 seconds]
04:32
epony has joined #pypy
04:54
glyph has quit [Quit: End of line.]
04:55
glyph has joined #pypy
05:45
otisolsen70 has joined #pypy
05:47
otisolsen70 has quit [Remote host closed the connection]
05:48
otisolsen70 has joined #pypy
07:50
otisolsen70_ has joined #pypy
07:52
tazle has quit [Read error: Software caused connection abort]
07:52
otisolsen70 has quit [Ping timeout: 252 seconds]
07:57
tazle has joined #pypy
08:23
tazle has quit [Ping timeout: 252 seconds]
08:25
tazle has joined #pypy
09:51
otisolsen70__ has joined #pypy
09:53
otisolsen70_ has quit [Ping timeout: 252 seconds]
10:07
Atque has quit [*.net *.split]
10:36
<
fijal >
marmoute: it's probably the only time in recent memory where I see the world "poll" and it's actually useful ;-)
10:36
<
fijal >
well, I'll probably not come (but maybe) but even possibly useful!
10:42
<
marmoute >
Might be a good opportunity for a Fontainebleau visit
11:59
[Arfrever] has quit [Read error: Software caused connection abort]
12:17
[Arfrever] has joined #pypy
12:35
catern has quit [Remote host closed the connection]
13:08
luckydonald has quit [Read error: Software caused connection abort]
13:16
luckydonald has joined #pypy
13:28
catern has joined #pypy
13:30
leshaste has joined #pypy
13:30
<
leshaste >
hi mattip
13:31
derpydoo has joined #pypy
13:35
<
mattip >
leshaste: hi
13:45
<
leshaste >
mattip, if you have a few moments I can walk through the matplotlib problem
13:45
Atque has joined #pypy
13:46
<
leshaste >
I have a virtual environment and can see python --version
13:46
<
leshaste >
[PyPy 7.3.9 with GCC 11.2.0]
13:46
<
leshaste >
Python 3.8.13 (7.3.9+dfsg-1, Apr 01 2022, 21:41:47)
13:47
<
leshaste >
pip install matplotlib now runs without error
13:48
<
leshaste >
I make a script
13:48
<
leshaste >
import matplotlib.pyplot as plt
13:48
<
leshaste >
plt.plot([2,3])
13:48
<
leshaste >
plt.show()
13:49
<
leshaste >
run it with python plt.py and get
13:49
<
leshaste >
plt.py:3: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
13:49
<
leshaste >
plt.show()
13:50
<
leshaste >
if I try to fix this by adding
13:50
<
leshaste >
import matplotlib
13:50
<
leshaste >
matplotlib.use('tkagg')
13:51
<
leshaste >
I get ModuleNotFoundError: No module named '_tkinter'
13:51
<
leshaste >
with a lot of errors below that
13:51
<
leshaste >
mattip, do you know how to fix this?
13:52
<
tumbleweed >
leshaste: that looks like a debian pypy3, so apt install pypy3-tk
13:53
<
tumbleweed >
(if you'd tried to import it yourself, you'd have got a more useful error pointing you to that)
13:54
<
leshaste >
this is on ubuntu 22.04
13:54
<
leshaste >
my point is really that it would be great if the web page had a work through for how to get matplotlib working
13:54
<
tumbleweed >
OK, that looks like our issue then
13:54
<
leshaste >
as this must be a common thing people want to d
13:54
<
leshaste >
tumbleweed, ok thanks
13:55
<
leshaste >
I mean a walk through
13:56
<
leshaste >
mattip, looks like you know all about this already :)
13:59
<
leshaste >
am I right that there isn't a section of the pypy website where you can look up common modules and see if they are currently supported?
14:00
<
tumbleweed >
a wiki could make more sense for that (if you don't want to be on the hook for maintaining it)
14:00
jcea has joined #pypy
14:01
<
leshaste >
tumbleweed, yes
14:01
<
leshaste >
the pypy website isn't really up to the standard of the code itself. I mean pypy is very important and widely used
14:02
<
leshaste >
but the website really doesn't look like it is
14:23
otisolsen70__ has quit [Quit: Leaving]
14:23
otisolsen70 has joined #pypy
14:36
<
mattip >
sorry, had to go do something. I guess the problem is there is dissonance between using the debian pypy3 and using "pip install"
14:37
<
mattip >
I assume the same thing would happen if you create a system python3 venv, and do pip install matplotlib, this is not pypy-specific
14:38
<
mattip >
debian would probably say "use apt to manage packages", so you could do "apt install python3-matplotlib"
14:38
<
mattip >
but there is no pypy3-matplotlib package as far as I know
14:39
<
mattip >
most of my efforts now go to supporting conda forge as a distribution platfrom for pypy, maybe the web site should stress that more
14:40
<
mattip >
there now are over 1000 packages available there, all built with a consistent set of options and installation experience
14:48
<
leshaste >
mattip, I downloaded pypy3 directly from the pypy website.
14:49
<
mattip >
then something is off. You started with the version strin
14:49
<
mattip >
Python 3.8.13 (7.3.9+dfsg-1, Apr 01 2022, 21:41:47)
14:50
<
leshaste >
mattip, let me do this again to check
14:50
<
mattip >
which I am pretty sure comes from debian
14:50
<
leshaste >
downloading...
14:53
<
leshaste >
python --version
14:53
<
leshaste >
Python 3.8.13 (4b1398fe9d76ad762155d03684c2a153d230b2ef, Mar 29 2022, 07:08:24)
14:53
<
leshaste >
[PyPy 7.3.9 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
14:53
<
leshaste >
I get the same threading error
14:53
<
mattip >
yes, try this fix
14:54
<
mattip >
or avoid the 3.6 versions until the fix comes out in 3.6.2
14:54
<
leshaste >
could you walk me through how to apply the patch please. I have never done it before
14:56
<
leshaste >
I am trying matplotlib 3.5.3
14:57
<
leshaste >
now I get "This probably means that Tcl wasn't installed properly."
14:57
<
leshaste >
I'll paste the full error
14:58
<
tumbleweed >
mattip: there is no pypy3-matplotlib, but there could be
14:58
<
tumbleweed >
mattip: but no, debian doesn't say go use apt. We say it's your system, we're just trying to help you. We'd probably recommend that you install matplotlib in a pypy virtualenv
15:00
<
leshaste >
mattip, would it be better if I opened a bug report?
15:00
<
mattip >
tumbleweed: sorry, I am a bit on edge today: too many frustrating bugs. How could we get a better error message when matplotlib fails to find _tk, and how can we get a pypy3-matplotlib?
15:01
<
mattip >
leshaste: yes please
15:02
<
leshaste >
mattip, ok will do. Thanks for looking at this
15:03
<
tumbleweed >
mattip: FWIW 7.3.9+dfsg-1 sounds like Ubuntu 22.04 main archive, not the PyPy PPA. But
*I think* that we didn't have a version published for 22.04 in the PPA, because the main archive version was new enough
15:03
<
tumbleweed >
anyway enough hair splitting :)
15:05
<
tumbleweed >
back to your question. I've not put any effort into bringing up any pypy3-$foo packages yet. We'd probably start by filing a bug against the matplotlib source package, asking for it. Let me do that right now...
15:06
<
mattip >
cool, thanks
15:06
<
mattip >
please link me in somehow so I can learn to do this too
15:06
<
tumbleweed >
I'm not sure exactly what swallowed the error in your scenario there, but if you try to import tkinter you
*should* get a helpful error
15:09
<
tumbleweed >
yeah, published this morning
15:09
<
tumbleweed >
(for the sha3 security issue)
15:10
<
tumbleweed >
still waiting for canonical security people to publish the update to the main archive
15:10
<
tumbleweed >
mattip: further thought... we need numpy first
15:11
<
tumbleweed >
same maintainer
15:16
<
tumbleweed >
(the debian bug tracking system is just driven by speciallly formatted emails. Rather arcane, but simple enough to interact with)
15:19
<
leshaste >
why do you want separate numpy packaging? I mean pip install numpy works well. What am I missing?
15:20
<
tumbleweed >
pip install works well in your virtualenv
15:20
<
tumbleweed >
but system packages can only depend on system packages
15:20
<
leshaste >
ah the problem is conflicting
15:20
<
mattip >
thanks for the bug
15:20
<
mattip >
report to get numpy
15:21
<
tumbleweed >
as to more practical things ways to deal with the tkinter import failure, I'd suggest that matplotlib carry a patch to handle that better
15:21
<
tumbleweed >
I haven't tried to reproduce it here, but splitting out tk is a common thing that distros do in python
15:21
<
tumbleweed >
so handling it is probably good for the user-experience
15:55
mgorny has quit [Read error: Software caused connection abort]
15:56
luckydonald has quit [Ping timeout: 252 seconds]
15:57
luckydonald has joined #pypy
15:58
mgorny has joined #pypy
17:20
derpydoo has quit [Ping timeout: 255 seconds]
18:00
luckydonald has quit [Ping timeout: 252 seconds]
18:00
luckydonald has joined #pypy
18:33
leshaste has quit [Ping timeout: 248 seconds]
18:38
derpydoo has joined #pypy
19:12
Dejan has joined #pypy
20:30
<
mattip >
lesshaste: still around?
20:40
jinsun__ has joined #pypy
20:40
jinsun has quit [Killed (osmium.libera.chat (Nickname regained by services))]
20:40
jinsun__ is now known as jinsun
20:41
<
mattip >
lesshaste: when I create a virtualenv on linux, I see a symlink from <venv>/lib/tk8.5 -> <download>/lib/tk8.5
20:42
<
mattip >
if you don't, then maybe update your virtualenv, or use "pypy/bin/pypy -m venv " to create it
21:12
ellemoeiselleva has joined #pypy
21:21
_whitelogger has joined #pypy
21:28
derpydoo has quit [Quit: derpydoo]
21:30
ellemoeiselleva has quit [Quit: Leaving]
21:33
derpydoo has joined #pypy
22:22
lazka has quit [Read error: Software caused connection abort]
22:25
lazka has joined #pypy
22:30
sam_ has quit [Read error: Software caused connection abort]
22:38
otisolsen70 has quit [Quit: Leaving]
22:41
sam_ has joined #pypy
23:05
MiguelX413 has quit [Read error: Software caused connection abort]
23:08
MiguelX413 has joined #pypy