Closed sdc50 closed 2 months ago
This is my temporary workaround:
cp ${CONDA_PREFIX}/lib/python3.1/site-packages/daphne/twisted/plugins/fd_endpoint.py ${CONDA_PREFIX}/lib/python3.1/site-packages/twisted/plugins/
Hi @sdc50 — thanks for the report.
https://github.com/django/daphne/blob/63790936d1f5728ff358ff9c5d519454c36f4e33/setup.cfg#L26-L29
That should be right. Ref https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#using-a-src-layout — but apparently isn't 🤔
Fancy experimenting a bit there?
It seems like switching find:
to find_namespace:
may do the trick.
[options]
package_dir=
twisted=daphne/twisted
packages= find_namespace:
It seems like switching
find:
tofind_namespace:
may do the trick.
Never mind. It must have cached something. I think the only way I've been able to get it to work is by explicitly listed the packages:
[options]
package_dir=
twisted=daphne/twisted
packages=
daphne
twisted.plugins
OK, reviewing the docs here I think manually specifying the packages
is fine.
This can get tiresome really quickly.
Meh. I don't think it's really a problem here. 🙂
I'm sure if we read more, we could get it working again, but not sure it's worth the bandwidth.
Would you like to make a PR?
Thanks @sdc50. I'll get a release out with this tomorrow morning.
Or today even 😉
Starting with v4.1 the
fd_endpoint.py
file is not copied/installed into thetwisted/plugins
directory.Please also try and include, if you can:
pip freeze
output showing your package versionsWith Daphne 4.0 (working):
With Daphne 4.1 (not working)
When Daphne is installed I expect the
fd_enpoint.py
file to be copied into thesite-packaged/twisted/plugins
directory so it can be discovered and loaded by twisted.After installing Daphne 4.1, the
fd_endpoint.py
is not found in thesite-packaged/twisted/plugins
dir.I'm running Channels using Supervisord with Apache in front.