py39-game (pygame) problem

Hi all,
I have py39-game-2.1.3 installed, but when I have import pygame as the only line in my .py file I'm getting the following error:

Code:
$ python3.9 test.sh
Traceback (most recent call last):
  File "/usr/home/username/test.sh", line 1, in <module>
    import pygame
  File "/usr/local/lib/python3.9/site-packages/pygame/__init__.py", line 96, in <module>
    from pygame.rwobject import encode_string, encode_file_path
ImportError: /usr/local/lib/python3.9/site-packages/pygame/rwobject.cpython-39.so: Undefined symbol "lseek64"

Any idea what the fix is? I searched, but came up empty as to the solution.

Thanks!
 
All I can tell you is that lseek64() does not exist on FreeBSD. There's no need as lseek(2) on FreeBSD handles any file size.

So, this is very likely to be a bug, therefore you should probably open a PR.

But before doing this: There's already a newer version of that package, so please test that first. Also, in case you're building the port yourself, please make sure to check your relevant build settings (port options, make.conf contents ...)
 
Back
Top