Re: simplejson install error, need help

2008-11-25 Thread Tibor Arpas
Vista and extensions for simplejson and other libraries give me headaches
all the time too.
Anyway. I think the simplejson library was included in the python 2.6
under the name json. Creating quite a mess because there is already json
in python.org/pypi, but different one. Probably the best would be
conditional installation of simplejson only for python =2.5 (or is this
dependency really necessary at all?)

Tibor

On Sun, Nov 23, 2008 at 7:07 PM, Rod Morison [EMAIL PROTECTED] wrote:


 I'm starting a new project and am trying to install Pylons 0.9.7 on a
 fresh install of Windows Vista/64 with Python 2.6. Easy install quits on
 an error installing simplejson. I see a thread on the subject
 (
 http://groups.google.com/group/pylons-discuss/browse_thread/thread/48d0a48a5ccc4a6e/22f12c08cf642b63?lnk=gstq=simplejson#22f12c08cf642b63
 )
 , but I don't see a workaround I can use.

 The top and bottom of my install output, with -v, is below. Any
 suggestions or help for a workaround is appreciated, I want to get
 started with this project!

 
  python ez_setup.py -v -f http://pylonshq.com/download/0.9.7 -U Pylons
 Searching for Pylons
 Reading http://pylonshq.com/download/0.9.7
 Found link: http://pylonshq.com/download/0.9.7/Babel-0.9.3-py2.3.egg

 [cut]

 copying simplejson\tests\test_indent.py -
 build\lib.win-amd64-2.6\simplejson\tests
 copying simplejson\tests\test_pass1.py -
 build\lib.win-amd64-2.6\simplejson\tests
 copying simplejson\tests\test_pass2.py -
 build\lib.win-amd64-2.6\simplejson\tests
 copying simplejson\tests\test_pass3.py -
 build\lib.win-amd64-2.6\simplejson\tests
 copying simplejson\tests\test_recursion.py -
 build\lib.win-amd64-2.6\simplejson\tests
 copying simplejson\tests\test_scanstring.py -
 build\lib.win-amd64-2.6\simplejson\tests
 copying simplejson\tests\test_separators.py -
 build\lib.win-amd64-2.6\simplejson\tests
 copying simplejson\tests\test_unicode.py -
 build\lib.win-amd64-2.6\simplejson\tests
 copying simplejson\tests\__init__.py -
 build\lib.win-amd64-2.6\simplejson\tests
 running build_ext
 building 'simplejson._speedups' extension
 error: Setup script exited with error: None


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-25 Thread Rod Morison

Agreed on all counts. In _my_ case the problem was a setup bug when 
simplejson can't find the cl.exe compiler on windows (as posted here 
previously.)

Tibor Arpas wrote:
 Vista and extensions for simplejson and other libraries give me 
 headaches all the time too.
 Anyway. I think the simplejson library was included in the python 
 2.6 under the name json. Creating quite a mess because there is 
 already json in python.org/pypi http://python.org/pypi, but 
 different one. Probably the best would be conditional installation of 
 simplejson only for python =2.5 (or is this dependency really 
 necessary at all?)

 Tibor



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-25 Thread Bob Ippolito

If someone submits a patch to simplejson to resolve any of these
stupid Windows issues, it will be accepted. I don't personally care
for Windows so I don't test it there, the current state of Windows
support in simplejson is the way it is because that's what was
contributed to me. If someone spent the time to fix it to do better
compiler detection and submitted the patch, then this problem would go
away.

On Tue, Nov 25, 2008 at 10:21 AM, Rod Morison [EMAIL PROTECTED] wrote:

 Agreed on all counts. In _my_ case the problem was a setup bug when
 simplejson can't find the cl.exe compiler on windows (as posted here
 previously.)

 Tibor Arpas wrote:
 Vista and extensions for simplejson and other libraries give me
 headaches all the time too.
 Anyway. I think the simplejson library was included in the python
 2.6 under the name json. Creating quite a mess because there is
 already json in python.org/pypi http://python.org/pypi, but
 different one. Probably the best would be conditional installation of
 simplejson only for python =2.5 (or is this dependency really
 necessary at all?)

 Tibor



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-25 Thread Rod Morison

I might try to tackle this once I get through some higher order 
business. No promises, though.

Bob Ippolito wrote:
 If someone submits a patch to simplejson to resolve any of these
 stupid Windows issues, it will be accepted. I don't personally care
 for Windows so I don't test it there, the current state of Windows
 support in simplejson is the way it is because that's what was
 contributed to me. If someone spent the time to fix it to do better
 compiler detection and submitted the patch, then this problem would go
 away.


   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-25 Thread Mike Orr

On Tue, Nov 25, 2008 at 6:38 AM, Tibor Arpas [EMAIL PROTECTED] wrote:
 Vista and extensions for simplejson and other libraries give me headaches
 all the time too.
 Anyway. I think the simplejson library was included in the python 2.6
 under the name json. Creating quite a mess because there is already json
 in python.org/pypi, but different one. Probably the best would be
 conditional installation of simplejson only for python =2.5 (or is this
 dependency really necessary at all?)

Is it possible to limit a dependency to certain versions of Python?

-- 
Mike Orr [EMAIL PROTECTED]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-25 Thread Ben Bangert

On Nov 25, 2008, at 12:43 PM, Mike Orr wrote:


Is it possible to limit a dependency to certain versions of Python?


It should be. Setup.py is just a Python file, I don't see why I can't  
test the Python version and toggle the dependencies. Any code in  
Pylons using simplejson will need a toggle to try to import the Python  
2.6 one first of course. Also, I believe simplejson 2.0.4 has fixes  
and such that didn't make it for Python 2.6, which means one should be  
running the latest simplejson even in 2.6. What version made it into  
Python 2.6?


Cheers,
Ben

smime.p7s
Description: S/MIME cryptographic signature


Re: simplejson install error, need help

2008-11-25 Thread Bob Ippolito

On Tue, Nov 25, 2008 at 2:35 PM, Ben Bangert [EMAIL PROTECTED] wrote:
 On Nov 25, 2008, at 12:43 PM, Mike Orr wrote:

 Is it possible to limit a dependency to certain versions of Python?

 It should be. Setup.py is just a Python file, I don't see why I can't test
 the Python version and toggle the dependencies. Any code in Pylons using
 simplejson will need a toggle to try to import the Python 2.6 one first of
 course. Also, I believe simplejson 2.0.4 has fixes and such that didn't make
 it for Python 2.6, which means one should be running the latest simplejson
 even in 2.6. What version made it into Python 2.6?

simplejson 1.9.x made it into python 2.6, with a few fixes.

simplejson 2.x is a couple times faster for encoding and decoding, so
it's not worth using the version that ships with 2.6 unless you have
to. There is/was a patch in the queue for 2.6.1 but I think it's still
waiting for review and probably won't make it (patch was submitted at
least a month or two ago though, but it's out of my hands).

-bob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-25 Thread Bob Ippolito

On Tue, Nov 25, 2008 at 2:42 PM, Bob Ippolito [EMAIL PROTECTED] wrote:
 On Tue, Nov 25, 2008 at 2:35 PM, Ben Bangert [EMAIL PROTECTED] wrote:
 On Nov 25, 2008, at 12:43 PM, Mike Orr wrote:

 Is it possible to limit a dependency to certain versions of Python?

 It should be. Setup.py is just a Python file, I don't see why I can't test
 the Python version and toggle the dependencies. Any code in Pylons using
 simplejson will need a toggle to try to import the Python 2.6 one first of
 course. Also, I believe simplejson 2.0.4 has fixes and such that didn't make
 it for Python 2.6, which means one should be running the latest simplejson
 even in 2.6. What version made it into Python 2.6?

 simplejson 1.9.x made it into python 2.6, with a few fixes.

 simplejson 2.x is a couple times faster for encoding and decoding, so
 it's not worth using the version that ships with 2.6 unless you have
 to. There is/was a patch in the queue for 2.6.1 but I think it's still
 waiting for review and probably won't make it (patch was submitted at
 least a month or two ago though, but it's out of my hands).

Also note that the optimizations to the pure python version simplejson
2.x are often faster than 1.9.x with the speedups, so even if you
can't build the extension it's probably better to use simplejson 2.x.
simplejson 2.x with the speedups is on par or better than any of the
other JSON encoders and decoders, and is even faster than cPickle on
occasion.

-bob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-25 Thread Mike Orr

On Tue, Nov 25, 2008 at 2:35 PM, Ben Bangert [EMAIL PROTECTED] wrote:
 On Nov 25, 2008, at 12:43 PM, Mike Orr wrote:

 Is it possible to limit a dependency to certain versions of Python?

 It should be. Setup.py is just a Python file, I don't see why I can't test
 the Python version and toggle the dependencies.

Aren't the dependencies stored in the egg_info files and reparsed when
you call pkg_resources.require()?  Otherwise I don't see how it could
do its cascade of dependency checking when you load the application
egg, because setup.py isn't available at that point.

-- 
Mike Orr [EMAIL PROTECTED]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-25 Thread Wichert Akkerman

Previously Mike Orr wrote:
 
 On Tue, Nov 25, 2008 at 2:35 PM, Ben Bangert [EMAIL PROTECTED] wrote:
  On Nov 25, 2008, at 12:43 PM, Mike Orr wrote:
 
  Is it possible to limit a dependency to certain versions of Python?
 
  It should be. Setup.py is just a Python file, I don't see why I can't test
  the Python version and toggle the dependencies.
 
 Aren't the dependencies stored in the egg_info files and reparsed when
 you call pkg_resources.require()?  Otherwise I don't see how it could
 do its cascade of dependency checking when you load the application
 egg, because setup.py isn't available at that point.

It works with source eggs since that python is run during dependency
determination, and for binary eggs since those are python
version-specific.

Wichert.

-- 
Wichert Akkerman [EMAIL PROTECTED]It is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-24 Thread Philip Jenvey


On Nov 23, 2008, at 10:07 AM, Rod Morison wrote:


 I'm starting a new project and am trying to install Pylons 0.9.7 on a
 fresh install of Windows Vista/64 with Python 2.6. Easy install  
 quits on
 an error installing simplejson.

snip

 building 'simplejson._speedups' extension
 error: Setup script exited with error: None

What version of setuptools/ez_setup was in use here?

--
Philip Jenvey



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-24 Thread Rod Morison

setuptools-0.6c9-py2.6.egg

Philip Jenvey wrote:
 On Nov 23, 2008, at 10:07 AM, Rod Morison wrote:

   
 I'm starting a new project and am trying to install Pylons 0.9.7 on a
 fresh install of Windows Vista/64 with Python 2.6. Easy install  
 quits on
 an error installing simplejson.
 

 snip

   
 building 'simplejson._speedups' extension
 error: Setup script exited with error: None
 

 What version of setuptools/ez_setup was in use here?

 --
 Philip Jenvey



 
   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



simplejson install error, need help

2008-11-23 Thread Rod Morison

I'm starting a new project and am trying to install Pylons 0.9.7 on a 
fresh install of Windows Vista/64 with Python 2.6. Easy install quits on 
an error installing simplejson. I see a thread on the subject
(http://groups.google.com/group/pylons-discuss/browse_thread/thread/48d0a48a5ccc4a6e/22f12c08cf642b63?lnk=gstq=simplejson#22f12c08cf642b63)
, but I don't see a workaround I can use.

The top and bottom of my install output, with -v, is below. Any 
suggestions or help for a workaround is appreciated, I want to get 
started with this project!


 python ez_setup.py -v -f http://pylonshq.com/download/0.9.7 -U Pylons
Searching for Pylons
Reading http://pylonshq.com/download/0.9.7
Found link: http://pylonshq.com/download/0.9.7/Babel-0.9.3-py2.3.egg

[cut]

copying simplejson\tests\test_indent.py - 
build\lib.win-amd64-2.6\simplejson\tests
copying simplejson\tests\test_pass1.py - 
build\lib.win-amd64-2.6\simplejson\tests
copying simplejson\tests\test_pass2.py - 
build\lib.win-amd64-2.6\simplejson\tests
copying simplejson\tests\test_pass3.py - 
build\lib.win-amd64-2.6\simplejson\tests
copying simplejson\tests\test_recursion.py - 
build\lib.win-amd64-2.6\simplejson\tests
copying simplejson\tests\test_scanstring.py - 
build\lib.win-amd64-2.6\simplejson\tests
copying simplejson\tests\test_separators.py - 
build\lib.win-amd64-2.6\simplejson\tests
copying simplejson\tests\test_unicode.py - 
build\lib.win-amd64-2.6\simplejson\tests
copying simplejson\tests\__init__.py - 
build\lib.win-amd64-2.6\simplejson\tests
running build_ext
building 'simplejson._speedups' extension
error: Setup script exited with error: None


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-23 Thread Dalius Dobravolskas

Hi,

 building 'simplejson._speedups' extension
 error: Setup script exited with error: None
It failed to build speedups. The main point is that speedups are not
required and you can avoid them. Try to follow this advice:
http://www.gossamer-threads.com/lists/python/python/635113#635113

I don't have Windows now so can't help you more.

-- 
Dalius
http://blog.sandbox.lt

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: simplejson install error, need help

2008-11-23 Thread Rod Morison

Solved! (though with a wrinkle)

I went ahead and installed Visual Studio 2008 and ran the easy install 
from a vs2008 shell (i.e., ran C:\Program Files (x86)\Microsoft Visual 
Studio 9.0\Common7\Tools\vsvars32.bat in the shell before the easy 
install).

simplejson _was_ able to install, I assume because it's setup could find 
the msft cl.exe compiler.

The wrinkle is the compile actually failed because of a 32/64 bit 
conflict. Apparently, the simplejson setup dies if there is no compiler, 
but will correctly substitute the non-speedup, Plain-Python install if 
there is a compiler, and that compiler fails.

Here's the top of my successful Pylons install (restarting where it left 
off with simplejson):

C:\Program Files (x86)\Microsoft Visual Studio 
9.0\Common7\Tools\vsvars32.bat
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
C:\Users\rodcd \
C:\python ez_setup.py -f http://pylonshq.com/download/0.9.7 -U Pylons
Searching for Pylons
Reading http://pylonshq.com/download/0.9.7
Reading http://pypi.python.org/simple/Pylons/
Reading http://www.pylonshq.com/
Reading http://pylons.groovie.org/
Best match: pylons 0.9.7rc3
Processing pylons-0.9.7rc3-py2.6.egg
pylons 0.9.7rc3 is already the active version in easy-install.pth

Using c:\python26\lib\site-packages\pylons-0.9.7rc3-py2.6.egg
Reading http://www.pylonshq.com/download/0.9.7
Processing dependencies for Pylons
Searching for simplejson=2.0.3
Reading http://pypi.python.org/simple/simplejson/
Reading http://undefined.org/python/#simplejson
Best match: simplejson 2.0.5
Downloading 
http://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.5
.tar.gz#md5=11e65b91e7fd08eda931e683c5f98543
Processing simplejson-2.0.5.tar.gz
Running simplejson-2.0.5\setup.py -q bdist_egg --dist-dir 
c:\users\rod\appdata\l
ocal\temp\easy_install-mgvah0\simplejson-2.0.5\egg-dist-tmp-vb_j4r
_speedups.c
simplejson/_speedups.c(1652) : warning C4028: formal parameter 1 
different from
declaration
python26.lib(python26.dll) : fatal error LNK1112: module machine type 
'x64' conf
licts with target machine type 'X86'
***
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
I'm retrying the build without the C extension now.
***
***
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
***
Adding simplejson 2.0.5 to easy-install.pth file

Installed c:\python26\lib\site-packages\simplejson-2.0.5-py2.6.egg




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---