[issue43175] filecmp is not working for UTF-8 BOM file.

2021-02-08 Thread suresh


New submission from suresh :

Python base package filecmp is not working properly for 'UTF-8 BOM' css files.
I am using python version 3.6 and windows 10 OS.

while running the below code getting as False always.However the file content 
are same.

Code :

import filecmp
filecmp.clear_cache()
boolfile=filecmp.cmp(r'C:\Users\suresh.n\python\RPA\Page\Sowmiya\downloads\destination.txt',r'C:\Users\suresh.n\python\RPA\Page\Sowmiya\source\source,r'C:\Users\suresh.n\python\RPA\Page\Sowmiya\downloads.txt',shallow=False)
print(boolfile)

--
components: Windows
files: source.txt
hgrepos: 397
messages: 386692
nosy: paul.moore, steve.dower, suresh, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: filecmp is not working for UTF-8 BOM file.
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file49798/source.txt

___
Python tracker 
<https://bugs.python.org/issue43175>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43175] filecmp is not working for UTF-8 BOM file.

2021-02-11 Thread suresh


suresh  added the comment:

Please find the below Code and attached the files, expecting true as output and 
getting as false: 
 

"import filecmp

filecmp.clear_cache()

boolfile=filecmp.cmp(r'C:\destination.css',r'C:\source.css',shallow=False)

print(boolfile)"

--
hgrepos: +398
Added file: https://bugs.python.org/file49802/files.zip

___
Python tracker 
<https://bugs.python.org/issue43175>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43175] filecmp is not working for UTF-8 BOM file.

2021-02-15 Thread suresh


suresh  added the comment:

Dear Team,

  Any more details are required. Kindly let me know.

--

___
Python tracker 
<https://bugs.python.org/issue43175>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43175] filecmp is not working for UTF-8 BOM file.

2021-02-19 Thread suresh


suresh  added the comment:

I am getting same file size and are regular files (True) as below.

Could you assist on filecmp any changes required in passing the inputs. Since 
it returns false.

Code: 

>>> os.chdir(r'C:\Users\suresh.n\Files')
>>> open('source.css', 'rb').read() == open('destination.css','rb').read()
True
>>> for f in ('source.css', 'destination.css'):
... print(f, os.path.isfile(f), os.path.getsize(f))

source.css True 37465
destination.css True 37465

--

___
Python tracker 
<https://bugs.python.org/issue43175>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-24 Thread Suresh Kalkunte

Suresh Kalkunte  added the comment:

Thanks for the education (hopefully a slight detour for you 8-). I included '/' 
to convey uniform behavior across platforms.

I will take it that the difference in what os.path.split() returns on Win32 vs. 
Linux is not a bug in Python since its Win32 users have come to expect the 
response it gives ? if yes, please point me to a resource (i.e, if you are 
aware, else do not bother 8-) that identifies such other conundrums.

--

___
Python tracker 
<http://bugs.python.org/issue11252>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-19 Thread Suresh Kalkunte

New submission from Suresh Kalkunte :

Referring to URL for files used to build the Apache Portable Runtime Utilities 
library using Python 2.7.1(AMD64) or 2.6.5(Cygwin) on a Win32 system (Windows 
7), when apr/build/gen-build.py 
(http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/build/gen-build.py?revision=886996&view=markup)
 parses '\' on line 96 and 97 in apr-util/build.conf 
(http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/build.conf?revision=886996&view=markup),
 it recognizes them as separate tokens causing the script to fail on line 168 
"assert file[-2:] == '.c'". If the line continuation notation ('\') is removed 
from build.conf, gen-build.py performs without errors. 

On a Redhat Linux, I have verified Python 2.5.5 (and trust 2.7.1 to provide the 
same behavior on Linux) handles '\' without errors leading me to believe that 
if this is a bug, it is only on Win32 platform (and instances where '\' is used 
for directory path separation).

I am new to Python, from searching the python bug database, I have not been 
able to find the above condition covered. If this bug has already been 
identified, please disregard.

--
components: Interpreter Core, Windows
messages: 128890
nosy: Suresh.Kalkunte
priority: normal
severity: normal
status: open
title: Handling statement OR assignment continuation '\' on Win32 platform
type: behavior
versions: Python 2.6, Python 2.7

___
Python tracker 
<http://bugs.python.org/issue11252>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-20 Thread Suresh Kalkunte

Suresh Kalkunte  added the comment:

If the defect was with the script, the failure to bypass the '\' notation would 
have to be true on Redhat Linux. Since build.conf with '\' notation gets parsed 
without errors on Redhat Linux, I am under the impression the parsing performed 
by Python on Win32 recognizes '\' as a legitimate file token resulting in the 
script to fail.

In summary, I view semantics of '\' being different in Win32 vs. Linux as an 
inconsistency and hence thought it to be a possible defect in Python. However, 
if Python scripts do not guarantee platform independence, i.e, one's scripts 
need to be cognizant of platform idiosyncrasy, then, I believe it is not a bug 
in Python.

--
status: pending -> open

___
Python tracker 
<http://bugs.python.org/issue11252>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-21 Thread Suresh Kalkunte

Suresh Kalkunte  added the comment:

Yes, the easier fix is to change build.conf file to not use '\'. However, 

> on Linux `glob.glob('\\')` == `[]` so nothing is actually added. 
> OTOH on Windows `glob.glob('\\')` == `['\\']`

is more definite compared to

> They work on Linux by mere coincidence

--
resolution: invalid -> works for me

___
Python tracker 
<http://bugs.python.org/issue11252>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-21 Thread Suresh Kalkunte

Suresh Kalkunte  added the comment:

lukasz.langa, confirming the difference in return values for glob.glob() on 
Win32/Cygwin vs. Linux as the following results show:


F1()
ret_val1
 F2(ret_val1)
ret_val2

--
\\\
Cygwin
///
--
string.split() 
/
 glob.glob('/')
['/']

string.split()
\
 glob.glob('\')
['\\']

--
\\\
Win32
///
--
string.split()
/
 glob.glob('/')
['/']

string.split()
\
 glob.glob('\')
['\\']

--
\\\
Linux
///
--
string.split()
/
 glob.glob('/')
['/']

string.split()
\
 glob.glob('\')
[]

For my education, is there a reason why glob.glob('\') on Win32/Cygwin returns 
['\\'] instead of [] in Linux ?

--

___
Python tracker 
<http://bugs.python.org/issue11252>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38745] pygame install error using python 3.8.0

2019-11-08 Thread Suresh Murugesan


New submission from Suresh Murugesan :

I tried to install pygame, using pip install pygame, on my windows 10 running 
python 3.8.0. But it fails with the following error messages

Can you please help. I read on the internet that 3.8 is not stable yet for 
pygame. Is it true?

   ERROR: Command errored out with exit status 1:
 command: 
'c:\users\smuru02\appdata\local\programs\python\python38-32\python.exe' -c 
'import sys, setuptools, tokenize; sys.argv[0] = 
'"'"'C:\\Users\\smuru02\\AppData\\Local\\Temp\\pip-install-0yqtpy1n\\pygame\\setup.py'"'"';
 
__file__='"'"'C:\\Users\\smuru02\\AppData\\Local\\Temp\\pip-install-0yqtpy1n\\pygame\\setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info 
--egg-base 
'C:\Users\smuru02\AppData\Local\Temp\pip-install-0yqtpy1n\pygame\pip-egg-info'
 cwd: C:\Users\smuru02\AppData\Local\Temp\pip-install-0yqtpy1n\pygame\
Complete output (17 lines):


WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using WINDOWS configuration...


Download prebuilts to "prebuilt_downloads" and copy to "./prebuilt-x86"? 
[Y/n]Traceback (most recent call last):
  File "", line 1, in 
  File 
"C:\Users\smuru02\AppData\Local\Temp\pip-install-0yqtpy1n\pygame\setup.py", 
line 194, in 
buildconfig.config.main(AUTO_CONFIG)
  File 
"C:\Users\smuru02\AppData\Local\Temp\pip-install-0yqtpy1n\pygame\buildconfig\config.py",
 line 210, in main
deps = CFG.main(**kwds)
  File 
"C:\Users\smuru02\AppData\Local\Temp\pip-install-0yqtpy1n\pygame\buildconfig\config_win.py",
 line 576, in main
and download_win_prebuilt.ask(**download_kwargs):
  File 
"C:\Users\smuru02\AppData\Local\Temp\pip-install-0yqtpy1n\pygame\buildconfig\download_win_prebuilt.py",
 line 302, in ask
reply = raw_input(
EOFError: EOF when reading a line

ERROR: Command errored out with exit status 1: python setup.py egg_info Check 
the logs for full command output.

--
components: Windows
messages: 356244
nosy: paul.moore, pysuresh, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: pygame install error using python 3.8.0
type: behavior
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue38745>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24428] Import sys,getopt is having issue while taking inputs

2015-06-10 Thread venkata suresh gummadillli

New submission from venkata suresh gummadillli:

[@outsidetried ~]$ python validate_json_adj.py 
[@outsidetried ~]$ python validate_json_adj.py -h
validate_json.py -i 
[@outsidetried ~]$ python validate_json_adj.py -i hello.txt
Input JSON file provided for verification: hello.txt
[@outsidetried ~]$ python validate_json_adj.py -i firstfile
Input JSON file provided for verification: firstfile
[@outsidetried ~]$ python validate_json_adj.py -i 
-bash: syntax error near unexpected token `newline'
[sureshgv@outsidetried ~]$ python validate_json_adj.py -i ??
Input JSON file provided for verification: ci
[@outsidetried ~]$ python validate_json_adj.py -i ???
Input JSON file provided for verification: bf1
[@outsidetried ~]$ python validate_json_adj.py -i $#@%
Input JSON file provided for verification: 0@%
[@outsidetried ~]$ cat validate_json_adj.py 
#!/usr/bin/python
"""
"""

import sys,getopt


"""
 """

def main(argv):
   inputfile = ''
   try:
  opts, args = getopt.getopt(argv,"hi:",["input_file="])
   except getopt.GetoptError:
  print 'validate_json.py -i '
  sys.exit(2)
   for opt, arg in opts:
  if opt == '-h':
 print 'validate_json.py -i '
 sys.exit()
  elif opt in ("-i", "--input_file"):
 inputfile = arg
 print 'Input JSON file provided for verification:', inputfile 
if __name__ == "__main__":
   main(sys.argv[1:])

--
components: Library (Lib)
messages: 245142
nosy: venkata suresh gummadillli
priority: normal
severity: normal
status: open
title: Import sys,getopt is having issue while taking inputs
type: behavior
versions: Python 2.7

___
Python tracker 
<http://bugs.python.org/issue24428>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com