Muhammad Hashim Malik
2017-10-19 07:21:38 UTC
AoA
I am a newbie to TurboGears. I tried to install the example project using
20minute wiki, but I am facing following problem: I followed following
procedure: My Python version is 3.6.3 on Windows 10
1. Created a virtual environment
*D:\PWS>python -m venv VE *
2. Activate virtual enviroment VE
*D:\PWS>**CD ./VE/Scripts*
*D:\PWS**/VE/Scripts**>activate*
3. Installed TurboGears2
*(VE) D:\PWS**/VE/Scripts**> CD /PWS*
*(VE) **D:\PWS>pip install tg.devtools*
4. Created a project test1
*(VE) **D:\PWS>gearbox quickstart test1*
5. Setting up project
*(VE) **D:\PWS>CD test1 **&& run without
error*
*(VE) **D:\PWS>python setup.py develop ** && run without error*
*(VE) **D:\PWS>gearbox setup-app **&& generated error*
*Traceback (most recent call last): File
"C:\Users\malnu\AppData\Local\Programs\Python\Python36\lib\runpy.py", line
193, in _run_module_as_main "__main__", mod_spec) File
"C:\Users\malnu\AppData\Local\Programs\Python\Python36\lib\runpy.py", line
85, in _run_code exec(code, run_globals) File
"D:\PWS\VE\Scripts\gearbox.exe\__main__.py", line 5, in <module> File
"d:\pws\ve\lib\site-packages\gearbox\main.py", line 5, in <module>
import sys, os, pkg_resources, logging, warnings File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 3017, in
<module> @_call_aside File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 3003, in
_call_aside f(*args, **kwargs) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 3045, in
_initialize_master_working_set dist.activate(replace=False) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 2577, in
activate declare_namespace(pkg) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 2151, in
declare_namespace _handle_ns(packageName, path_item) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 2091, in
_handle_ns _rebuild_mod_path(path, packageName, module) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 2120, in
_rebuild_mod_path
orig_path.sort(key=position_in_sys_path)AttributeError: '_NamespacePath'
object has no attribute 'sort'*
Please guide how to resolve this issue.
I am a newbie to TurboGears. I tried to install the example project using
20minute wiki, but I am facing following problem: I followed following
procedure: My Python version is 3.6.3 on Windows 10
1. Created a virtual environment
*D:\PWS>python -m venv VE *
2. Activate virtual enviroment VE
*D:\PWS>**CD ./VE/Scripts*
*D:\PWS**/VE/Scripts**>activate*
3. Installed TurboGears2
*(VE) D:\PWS**/VE/Scripts**> CD /PWS*
*(VE) **D:\PWS>pip install tg.devtools*
4. Created a project test1
*(VE) **D:\PWS>gearbox quickstart test1*
5. Setting up project
*(VE) **D:\PWS>CD test1 **&& run without
error*
*(VE) **D:\PWS>python setup.py develop ** && run without error*
*(VE) **D:\PWS>gearbox setup-app **&& generated error*
*Traceback (most recent call last): File
"C:\Users\malnu\AppData\Local\Programs\Python\Python36\lib\runpy.py", line
193, in _run_module_as_main "__main__", mod_spec) File
"C:\Users\malnu\AppData\Local\Programs\Python\Python36\lib\runpy.py", line
85, in _run_code exec(code, run_globals) File
"D:\PWS\VE\Scripts\gearbox.exe\__main__.py", line 5, in <module> File
"d:\pws\ve\lib\site-packages\gearbox\main.py", line 5, in <module>
import sys, os, pkg_resources, logging, warnings File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 3017, in
<module> @_call_aside File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 3003, in
_call_aside f(*args, **kwargs) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 3045, in
_initialize_master_working_set dist.activate(replace=False) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 2577, in
activate declare_namespace(pkg) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 2151, in
declare_namespace _handle_ns(packageName, path_item) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 2091, in
_handle_ns _rebuild_mod_path(path, packageName, module) File
"d:\pws\ve\lib\site-packages\pkg_resources\__init__.py", line 2120, in
_rebuild_mod_path
orig_path.sort(key=position_in_sys_path)AttributeError: '_NamespacePath'
object has no attribute 'sort'*
Please guide how to resolve this issue.
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.