helpful-lunch-92084
11/24/2020, 3:40 PMos.write(self.fileno, b'\x1b[?1l')
OSError: [Errno 9] Bad file descriptor
If you suspect this is an IPython bug, please report it at:
<https://github.com/ipython/ipython/issues>
or send an email to the mailing list at <mailto:ipython-dev@python.org|ipython-dev@python.org>
@jolly-midnight-72759 told me to pass --no-pantsd
to avoid this and pointed me to the ticket here: https://github.com/pantsbuild/pants/issues/9939
just thought i’d mention that this happens on a pants run and not just a pants repl. but it makes sense since it’s a general issue relating to ttys and pantsd it seemshundreds-father-404
11/24/2020, 3:49 PMhelpful-lunch-92084
11/24/2020, 3:50 PM--no-pantsd
workaround workshundreds-father-404
11/24/2020, 3:52 PM./pants run
if it’s a Django shellhelpful-lunch-92084
11/24/2020, 3:52 PMhundreds-father-404
11/24/2020, 3:53 PMhappy-kitchen-89482
11/24/2020, 4:46 PMmanage.py runserver
to work, afaict you have to use --noreload
(which is OK since autoreloading won't work anyway right now, since the code pants run
actually runs is a copy of the code from your repo, so it won't see your edits until you rerun pants). We're looking into using Pants's own autoreload ability (pantsd watches the filesystem) for this.helpful-lunch-92084
11/24/2020, 6:24 PM430 pex_binary(
431 name="django-admin",
432 entry_point="django.core.management:execute_from_command_line",
433 dependencies=[
and then we have a wrapper script that does this to be able to run ./bin/djangofly-manage shell
# TODO: Enable pantsd after bug is squashed: <https://github.com/pantsbuild/pants/issues/9939>
(cd $BUILDROOT && ./pants --no-pantsd run //:django-admin -- $cmd --pythonpath=$BUILDROOT $@)