Hi, I am getting this error:
Python resources say this is normal, and one should code it this way:
But this is exactly how it is coded, and I get the error nevertheless!
Context: I am trying to compile www/uwsgi with added support for PHP.
I added it to the port makefile:
This has worked all the time. But with newest quarterly it leads into beforementioned error.
Obvious changes are:
Code:
Traceback (most recent call last):
File "uwsgiconfig.py", line 467, in build_uwsgi
execfile('%s/uwsgiplugin.py' % path, up)
NameError: name 'execfile' is not defined
Python resources say this is normal, and one should code it this way:
Code:
>>> try:
... execfile('1.py')
... except:
... print("Error")
...
But this is exactly how it is coded, and I get the error nevertheless!
Context: I am trying to compile www/uwsgi with added support for PHP.
I added it to the port makefile:
Code:
OPTIONS_GROUP_PLG+= PHP
PHP_DESC= PHP embedded plugin
PHP_USES= php:build
PHP_VARS= USE_PHP+=session
post-patch-PHP-on:
@${REINPLACE_CMD} -e 's/%(main_plugin)s,/%(main_plugin)s, php,/' ${WRKSRC}/buildconf/base.ini
This has worked all the time. But with newest quarterly it leads into beforementioned error.
Obvious changes are:
- uwsgi was upgraded from 2.0.21 to 2.0.26
- python was upraded from 3.9 to 3.11