[issue1162] Python doesn't compile on Microsoft Visual Studio 2008 "Orcas" Beta 2

2007-09-13 Thread Swaroop

New submission from Swaroop:

I followed the README build instructions for VS2005. I opened
pcbuild.sln in PCbuild8 directory and tried building, and I get the
following errors:




Warning 1   Command line warning D9035 : option 'Wp64' has been deprecated
and will be removed in a future release cl  make_buildinfo
Warning 2   Command line warning D9035 : option 'Wp64' has been deprecated
and will be removed in a future release cl  make_versioninfo
Warning 3   warning C4005: 'WRITE_RESTRICTED' : macro redefinition
c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h   7127
pythoncore
Warning 4   warning C4005: 'WRITE_RESTRICTED' : macro redefinition
c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h   7127
pythoncore
Warning 5   warning C4133: 'function' : incompatible types - from
'_typeobject *' to 'PyObject *'
c:\all\code\python-svn\modules\_collectionsmodule.c 1113pythoncore
Warning 6   warning C4005: 'WRITE_RESTRICTED' : macro redefinition
c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h   7127
pythoncore
Warning 7   warning C4018: '>' : signed/unsigned mismatch
c:\all\code\python-svn\modules\mmapmodule.c 693 pythoncore
Warning 8   warning C4018: '>' : signed/unsigned mismatch
c:\all\code\python-svn\modules\mmapmodule.c 834 pythoncore
Error   9   fatal error C1083: Cannot open include file: 'db.h': No such
file or directory   c:\all\code\python-svn\modules\_bsddb.c 90  _bsddb
Warning 10  warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification _testcapimodule.obj _testcapi
Warning 11  warning C4005: 'WRITE_RESTRICTED' : macro redefinition
c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h   7127_socket
Error   12  error C2373: 'inet_pton' : redefinition; different type
modifiers   c:\all\code\python-svn\modules\socketmodule.c   300 _socket
Error   13  error C2373: 'inet_ntop' : redefinition; different type
modifiers   c:\all\code\python-svn\modules\socketmodule.c   301 _socket
Error   14  error C2373: 'inet_pton' : redefinition; different type
modifiers   c:\all\code\python-svn\modules\socketmodule.c   5124_socket
Error   15  error C2373: 'inet_ntop' : redefinition; different type
modifiers   c:\all\code\python-svn\modules\socketmodule.c   5139_socket
Warning 16  warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification winsound.objwinsound
Warning 17  warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification unicodedata.obj unicodedata
Error   18  fatal error C1083: Cannot open include file: 'tcl.h': No such
file or directory   c:\all\code\python-svn\modules\_tkinter.c   66  
_tkinter
Error   19  fatal error C1083: Cannot open include file: 'tcl.h': No such
file or directory   c:\all\code\python-svn\modules\tkappinit.c  16  
_tkinter
Warning 20  warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification selectmodule.objselect
Error   21  fatal error C1083: Cannot open include file: 'sqlite3.h': No
such file or directory
c:\all\code\python-svn\modules\_sqlite\connection.h 33  _sqlite3
Error   22  fatal error C1083: Cannot open include file: 'sqlite3.h': No
such file or directory
c:\all\code\python-svn\modules\_sqlite\connection.h 33  _sqlite3
Error   23  fatal error C1083: Cannot open include file: 'sqlite3.h': No
such file or directory
c:\all\code\python-svn\modules\_sqlite\connection.h 33  _sqlite3
Error   24  fatal error C1083: Cannot open include file: 'sqlite3.h': No
such file or directory
c:\all\code\python-svn\modules\_sqlite\connection.h 33  _sqlite3
Error   25  fatal error C1083: Cannot open include file: 'sqlite3.h': No
such file or directory
c:\all\code\python-svn\modules\_sqlite\connection.h 33  _sqlite3
Error   26  fatal error C1083: Cannot open include file: 'sqlite3.h': No
such file or directory
c:\all\code\python-svn\modules\_sqlite\connection.h 33  _sqlite3
Error   27  fatal error C1083: Cannot open include file: 'sqlite3.h': No
such file or directory
c:\all\code\python-svn\modules\_sqlite\connection.h 33  _sqlite3
Warning 28  warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification _msi.obj_msi
Warning 29  warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification _elementtree.obj_elementtree
Warning 30  warning

[issue1162] Python doesn't compile on Microsoft Visual Studio 2008 "Orcas" Beta 2

2007-09-13 Thread Swaroop

Changes by Swaroop:


--
versions: +Python 2.6 -Python 3.0

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1162>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1162] Python doesn't compile on Microsoft Visual Studio 2008 "Orcas" Beta 2

2007-09-13 Thread Swaroop

Swaroop added the comment:

Hi Martin,

I completely agree with you.

I would like to get it working but would need some guidance on the build
system... is there someone whose brains I can pick for this? :)

Also, we can mark this issue as 'not a bug'?

--
type:  -> compile error

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1162>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3763] Python 3.0 beta 2 : json and urllib not working together?

2008-09-03 Thread Swaroop

New submission from Swaroop <[EMAIL PROTECTED]>:

Hi,

Running the attached program in Python 3.0 beta 2 gives the following error:

  File "C:\Python30\lib\json\decoder.py", line 21, in linecol
lineno = doc.count('\n', 0, pos) + 1
TypeError: expected an object with the buffer interface

I can't figure out if there's an error in the program itself, but I
suspect this isn't working as expected.

Please let me know if there's anything I can do to help (if this is a
bug indeed).

Regards,
Swaroop

--
components: None
files: yahoo_search.py
messages: 72379
nosy: swaroopch
severity: normal
status: open
title: Python 3.0 beta 2 : json and urllib not working together?
versions: Python 3.0
Added file: http://bugs.python.org/file11354/yahoo_search.py

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3763>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3763] Python 3.0 beta 2 : json and urllib not working together?

2008-09-03 Thread Swaroop

Swaroop <[EMAIL PROTECTED]> added the comment:

Adding full traceback:

$ python yahoo_search.py
Traceback (most recent call last):
  File "yahoo_search.py", line 35, in 
for result in search(query)['Result']:
  File "yahoo_search.py", line 28, in search
result = json.load(urllib.request.urlopen(url))
  File "C:\Python30\lib\json\__init__.py", line 267, in load
parse_constant=parse_constant, **kw)
  File "C:\Python30\lib\json\__init__.py", line 307, in loads
return _default_decoder.decode(s)
  File "C:\Python30\lib\json\decoder.py", line 322, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
  File "C:\Python30\lib\json\decoder.py", line 30, in errmsg
lineno, colno = linecol(doc, pos)
  File "C:\Python30\lib\json\decoder.py", line 21, in linecol
lineno = doc.count('\n', 0, pos) + 1
TypeError: expected an object with the buffer interface

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3763>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3763] Python 3.0 beta 2 : json and urllib not working together?

2008-09-03 Thread Swaroop

Swaroop <[EMAIL PROTECTED]> added the comment:

Hi Senthil,

I am not aware of what encoding is used.

An example of the content is
http://search.yahooapis.com/WebSearchService/V1/webSearch?query=byte+of+python&appid=jl22psvV34HELWhdfUJbfDQzlJ2B57KFS_qs4I8D0Wz5U5_yCI1Awv8.lBSfPhwr&results=20&start=1&output=json

( If the above link does not work properly, please use http://is.gd/2bbI )

When viewing this, Firefox says it is UTF-8.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3763>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com