Discussion:
Attribute Error, attached is the views.py file
nsamba taufeeq
2018-09-18 11:45:58 UTC
Permalink
I get this attribute error but on refresh of the link it works.

The error.
AttributeError at /tasks/

'_NamespacePath' object has no attribute 'sort'

Request Method: GET
Request URL: http://compute.glassociates.engineering/tasks/?projid=1
Django Version: 2.1.1
Exception Type: AttributeError
Exception Value:

'_NamespacePath' object has no attribute 'sort'

Exception Location: /home/nsamba/projects/global/project_manager/project_manager/lib/python3.6/site-packages/pkg_resources/__init__.py
in _rebuild_mod_path, line 2066
Python Executable:
/home/nsamba/projects/global/project_manager/project_manager//bin/python
Python Version: 3.5.2
Python Path:

['/home/nsamba/projects/global/project_manager/project_manager/lib/python3.6/site-packages',
'/usr/lib/python35.zip',
'/usr/lib/python3.5',
'/usr/lib/python3.5/plat-x86_64-linux-gnu',
'/usr/lib/python3.5/lib-dynload',
'/usr/local/lib/python3.5/dist-packages',
'/usr/lib/python3/dist-packages',
'/home/nsamba/projects/global/project_manager/project_manager/manager',
'/home/nsamba/projects/global/project_manager/project_manager/manager/manager',
'/home/nsamba/projects/global/project_manager/project_manager/lib/python3.6/']

Server time: Tue, 18 Sep 2018 11:35:54 +0000
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jason
2018-09-18 13:13:32 UTC
Permalink
Googling the query *'_NamespacePath' object has no attribute 'sort'* got
me to
https://stackoverflow.com/questions/47955397/pip3-error-namespacepath-object-has-no-attribute-sort,
which was the second item on the list

for future reference, knowing how to search for help with a problem by
yourself is one of the most valuable skills you can learn
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
nsamba taufeeq
2018-09-19 07:54:27 UTC
Permalink
Yeah, i had seen this. However theirs is on pip3.My pip3 works well. The
error appears only when the server is loaded the first time, If the end
point is hit the second time, i get no error.
Post by Jason
Googling the query *'_NamespacePath' object has no attribute 'sort'* got
me to
https://stackoverflow.com/questions/47955397/pip3-error-namespacepath-object-has-no-attribute-sort,
which was the second item on the list
for future reference, knowing how to search for help with a problem by
yourself is one of the most valuable skills you can learn
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...