Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23247

(Error) OSError: (WinError 6) The handle is invalid, when running python manage.py shell, I do not understand what is happening?

$
0
0

models.py file

# Create your models here.class Flight(models.Model):    origin = models.CharField(max_length=64)    destination = models.CharField(max_length=64)    duration = models.IntegerField(null=False)

Then I run python manage.py shell in terminal

python manage.py shellPython 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)]Type 'copyright', 'credits' or 'license' for more informationIPython 8.12.3 -- An enhanced Interactive Python. Type '?' for help.  In [1]: from flights.models import FlightCancelling an overlapped future failedfuture: <_OverlappedFuture pending overlapped=<pending, 0x1af989b8430> cb=[BaseProactorEventLoop._loop_self_reading()]>Traceback (most recent call last):  File "C:\Users\jaina\AppData\Local\Programs\Python\Python38\lib\asyncio\windows_events.py", line 66, in _cancel_overlapped    self._ov.cancel()OSError: [WinError 6] The handle is invalid

Above error happens, How can I resolve this, please help.


Viewing all articles
Browse latest Browse all 23247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>