New submission from xiaojieshisilang <xiaojieshisil...@gmail.com>:

秦皇汉武
xiaojieshisil...@gmail.com
密码同
手机是1314的手机。
里面添加的有学术搜索服务。


I am so sorry for my ability of expressiong in English. I am from China and 
learns computer sciences Nine years and i am very 
sure it is a bug and very very important bug. My English is not well, sorry for 
that.
When installing 'pygraphviz' package using 'python setup.py install' and i 
configure the library_dirs as 
"C:\Program Files (x86)\Graphviz2.38\lib\release\lib". It didnot work. 
I debug "python setup.py install" in Spyder using about 2 hours to find the bug 
as below.
First,
In windows, we always give a path using '\' and python 3 can correctly dispose 
it just as we using '/' in Linux. But if you offer 
a path in windows with a '\' followed as 'r'. Everyting will goes wrong.
Just as i say, i give the library_dirs in 'extension' in the setup.py file as 
"C:\Program Files (x86)\Graphviz2.38\lib\release\lib" which contains 
'lib\release', and it is 
'\r' which makes everything wrong.
when installing some packages of python, the packages may need to compile some 
files written in C just as the 'pygraphviz' package which
needs to compile a graphviz_wrap.c file using vc14 compiler and also need 
configuring a library_dirs in the 'extension' which is edited in the file 
"setup.py".
Second,
setup.py will generate a object of class "build_ext" which inherited from 
"command" and "build_ext" is used for comile some external modules 
which is written in other languages. During the generation, it will read some 
configuration information such as the library_dirs which is edited in the 
"extension" 
in the setup.py file. 
Then the bug is that,
Every '\' will be processed as '\\' but the '\' which is followed by 'r' 
becuase it is seen as a wrapper line in windows. 
When debugging into the "get_command_obj('build_ext')" funcion, and it will run 
"cmd_obj = self.command_obj.get(command)"
to generate the object of class "build_ext". Then if you type "print 
([ext.library_dirs for ext in cmd_obj.distribution.ext_modules])",
it will output as below
"C:\\Program Files (x86)\\Graphviz2.38\\lib\release\\lib"
See? the '\' in 'lib\release' is not processed to '\\'.  And when i seen it in 
Spyder, it shows as below:
"C:\\Program Files (x86)\\Graphviz2.38\\lib
elease\\lib"
Yes, it is seen as a wrapper line.
So the bug occured in the cmd_obj = self.command_obj.get('build_ext') funcion.  
And python3 wrongly processed a path
in Library_dirs configured in "extension" in setup.py file and this kind of 
path contains '\' followed by 'r' and it results that 
the '\' cannot be processed as '\\' but seen as a wrapper line. Which will 
result the install process cannot find the .lib file in 
the path the user specified in setup.py file.
But, i cannot debug into this function. But after the funcion, the path is 
already processed wrongly.
Of course, in windows, if you give a path and no '\' in the path is followed by 
'r', then no error will happen.
My english is to low. and i feel rough to express the bug. i use the dictionary 
to complete this issue..........
This is a critical bug.
If you have question about it, please concat zyj183247...@qq.com or 
xiaojieshisil...@gmail.com
I am not often using xiaojieshisil...@gmail.com, because Google is not allowed 
to access  in China because of some reason 
Everybody know. Everyone in China needs to cross the wall to access Google, and 
it is so difficult.
Just a little while ago , i edit the issue in the web browser, and after i 
complete it, i careless press (ctrl+w).......and everthing is gone.
So shit.....So shit.......and dear friends, when you read what i write, it is 
what i write second time. And typing the above article one character
by one is very very a boring thing to a programmer who.......can not speak 
english well.......
so suffering. i would rather to programe than to express in English....
Hope this bug be repaired.
I am xiaojie. Bye

----------
messages: 3529
nosy: xiaojieshisil...@gmail.com
priority: critical
status: unread
title: Find a new bug in Python 3

_______________________________________________________
PSF Meta Tracker <metatrac...@psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue660>
_______________________________________________________
_______________________________________________
Tracker-discuss mailing list
Tracker-discuss@python.org
https://mail.python.org/mailman/listinfo/tracker-discuss
Code of Conduct: https://www.python.org/psf/codeofconduct/

Reply via email to