Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ujson 1.6 breaking installer #32

Closed
mattwilliamson opened this issue Aug 16, 2011 · 6 comments
Closed

ujson 1.6 breaking installer #32

mattwilliamson opened this issue Aug 16, 2011 · 6 comments
Assignees

Comments

@mattwilliamson
Copy link
Contributor

On ubuntu, the installer is crashing when it tries to easy_install ujson. The fix is to change the plivo setup.py file from ujson to ujson==1.4

Here's the error:

  Running setup.py egg_info for package ujson
    /usr/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'headers'
      warnings.warn(msg)
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/usr/local/plivo/build/ujson/setup.py", line 31, in <module>
        version = get_version(),
      File "/usr/local/plivo/build/ujson/setup.py", line 21, in get_version
        file = open(filename)
    IOError: [Errno 2] No such file or directory: '/usr/local/plivo/build/ujson/version.h'
    Complete output from command python setup.py egg_info:
    /usr/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'headers'

  warnings.warn(msg)

Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/usr/local/plivo/build/ujson/setup.py", line 31, in <module>

    version = get_version(),

  File "/usr/local/plivo/build/ujson/setup.py", line 21, in get_version

    file = open(filename)

IOError: [Errno 2] No such file or directory: '/usr/local/plivo/build/ujson/version.h'
@mattwilliamson
Copy link
Contributor Author

I hacked around this by putting a pip install ujson==1.4 just before pip install -e git+${PLIVO_GIT_REPO}#egg=plivo in plivo_install_beta.sh

@mike-plivo
Copy link
Member

ok fixed in setup.py.

Thanks !

@mike-plivo
Copy link
Member

Seems fixed in last ujson source code but not again in pypi repository.

So set for now to 1.4 and will set to 1.6 when pypi ujson package will be updated.

@ghost ghost assigned mike-plivo Aug 16, 2011
@mattwilliamson
Copy link
Contributor Author

That worked. Thanks!

@whitebook
Copy link

Alternatively you can get ujson from GIT and that works too.

@mike-plivo
Copy link
Member

ok working now, ujson 1.6 fixed in pypi .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants