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

Can't install using viraualenv #83

Closed
GabLeRoux opened this issue Oct 29, 2013 · 9 comments
Closed

Can't install using viraualenv #83

GabLeRoux opened this issue Oct 29, 2013 · 9 comments

Comments

@GabLeRoux
Copy link

It's not a big deal, but I couldn't pip install ggplot in a virtualenv. Tested on osx with zsh.

pip install ggplot                                                                        gableroux@MacBook-Pro-de-Gabriel
Downloading/unpacking ggplot
  Downloading ggplot-0.3.0.tar.gz (972kB): 972kB downloaded
  Running setup.py egg_info for package ggplot

Downloading/unpacking pandas (from ggplot)
  Downloading pandas-0.12.0.tar.gz (3.2MB): 3.2MB downloaded
  Running setup.py egg_info for package pandas
    Running from numpy source directory.
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/Users/gableroux/.virtualenvs/customEnv/build/pandas/setup.py", line 548, in <module>
        **setuptools_kwargs)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "build/bdist.linux-i686/egg/setuptools/dist.py", line 260, in __init__
      File "build/bdist.linux-i686/egg/setuptools/dist.py", line 284, in fetch_build_eggs
      File "build/bdist.linux-i686/egg/pkg_resources.py", line 563, in resolve
      File "build/bdist.linux-i686/egg/pkg_resources.py", line 799, in best_match
      File "build/bdist.linux-i686/egg/pkg_resources.py", line 811, in obtain
      File "build/bdist.linux-i686/egg/setuptools/dist.py", line 327, in fetch_build_egg
      File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 446, in easy_install
      File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 476, in install_item
      File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 655, in install_eggs
      File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 930, in build_and_install
      File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 919, in run_setup
      File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 62, in run_setup
      File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 105, in run
      File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 64, in <lambda>
      File "setup.py", line 214, in <module>
        FULLVERSION += "-%s" % rev
      File "setup.py", line 191, in setup_package
        MICRO = 0
      File "/var/folders/l2/2p5p24q16g13qxlt5smfgtfr0000gn/T/easy_install-sXT_mQ/numpy-1.7.1/numpy/distutils/core.py", line 25, in <module>
      File "/var/folders/l2/2p5p24q16g13qxlt5smfgtfr0000gn/T/easy_install-sXT_mQ/numpy-1.7.1/numpy/distutils/command/build_ext.py", line 16, in <module>
      File "/var/folders/l2/2p5p24q16g13qxlt5smfgtfr0000gn/T/easy_install-sXT_mQ/numpy-1.7.1/numpy/distutils/system_info.py", line 220, in <module>
      File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 203, in _open
      File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 199, in _violation
    setuptools.sandbox.SandboxViolation: SandboxViolation: open('/dev/null', 'w') {}

    The package setup script has attempted to modify files on your system
    that are not within the EasyInstall build area, and has been aborted.

    This package cannot be safely installed by EasyInstall, and may not
    support alternate installation locations even if you run its setup
    script by hand.  Please inform the package's author and the EasyInstall
    maintainers to find out if a fix or workaround is available.
    Complete output from command python setup.py egg_info:
    Running from numpy source directory.

Traceback (most recent call last):

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

  File "/Users/gableroux/.virtualenvs/customEnv/build/pandas/setup.py", line 548, in <module>

    **setuptools_kwargs)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup

    _setup_distribution = dist = klass(attrs)

  File "build/bdist.linux-i686/egg/setuptools/dist.py", line 260, in __init__

  File "build/bdist.linux-i686/egg/setuptools/dist.py", line 284, in fetch_build_eggs

  File "build/bdist.linux-i686/egg/pkg_resources.py", line 563, in resolve

  File "build/bdist.linux-i686/egg/pkg_resources.py", line 799, in best_match

  File "build/bdist.linux-i686/egg/pkg_resources.py", line 811, in obtain

  File "build/bdist.linux-i686/egg/setuptools/dist.py", line 327, in fetch_build_egg

  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 446, in easy_install

  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 476, in install_item

  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 655, in install_eggs

  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 930, in build_and_install

  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 919, in run_setup

  File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 62, in run_setup

  File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 105, in run

  File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 64, in <lambda>

  File "setup.py", line 214, in <module>

    FULLVERSION += "-%s" % rev

  File "setup.py", line 191, in setup_package

    MICRO = 0

  File "/var/folders/l2/2p5p24q16g13qxlt5smfgtfr0000gn/T/easy_install-sXT_mQ/numpy-1.7.1/numpy/distutils/core.py", line 25, in <module>

  File "/var/folders/l2/2p5p24q16g13qxlt5smfgtfr0000gn/T/easy_install-sXT_mQ/numpy-1.7.1/numpy/distutils/command/build_ext.py", line 16, in <module>

  File "/var/folders/l2/2p5p24q16g13qxlt5smfgtfr0000gn/T/easy_install-sXT_mQ/numpy-1.7.1/numpy/distutils/system_info.py", line 220, in <module>

  File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 203, in _open

  File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 199, in _violation

setuptools.sandbox.SandboxViolation: SandboxViolation: open('/dev/null', 'w') {}



The package setup script has attempted to modify files on your system

that are not within the EasyInstall build area, and has been aborted.



This package cannot be safely installed by EasyInstall, and may not

support alternate installation locations even if you run its setup

script by hand.  Please inform the package's author and the EasyInstall

maintainers to find out if a fix or workaround is available.

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/gableroux/.virtualenvs/customEnv/build/pandas
@glamp
Copy link
Contributor

glamp commented Oct 30, 2013

is this a pandas issue or a ggplot issue?

@hsharrison
Copy link

It's a ggplot issue - I'm having it too. When I run pip install ggplot, pip attempts to install into /usr/local/lib rather than ~/.virtualenvs where it should. I then tried python setup.py build && python setup.py install which seems to work but I get the error No module named 'components' when I try to import it. Probably a symptom of the same issue with the setup script.

(Note: I already have pandas installed, and it installs fine into a virtualenv using either pip or python setup.py install)

@jankatins
Copy link
Contributor

@hsharrison if you are on PY3, then the "components" error is probably because of the missing dot in the import statement in ggplot/__init__.py. For the rest: no idea...

@hsharrison
Copy link

Ah, you're right. That fixes it, thanks.

As for the rest... I might have been mistaken there too, I seem to be having some new issues with python3-pip. I'll check back in once I figure out whether there's any issue with ggplot or not.

@hsharrison
Copy link

I can't proceed with troubleshooting because of an issue with internal_utils.py which is fixed in the source but not yet reflected on PyPi. Not a big deal, manual installation works fine with the fix to the components import.

@GabLeRoux
Copy link
Author

Did you manage to make it work using virtualenv?

@hsharrison
Copy link

Not with pip, but manual install into a virtualenv works fine.

@GabLeRoux
Copy link
Author

Ok thanks, I'll give it a try but will probably only use it on my project when it's fixed with pip install so it doesn't bug my teammates :P.

@hsharrison
Copy link

Let me know. There's something weird with my python3-pip package, and it's hard to tell from your error if the problem is with pip or ggplot (since the error pops up when trying to install pandas, not ggplot). You might have done something wrong. But I don't have the first clue about setting up virtualenvs on a mac, so I can't be of much help.

... though until the fix in #127 is reflected on PyPi testing with pip isn't really possible.

@glamp glamp closed this as completed May 31, 2016
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

4 participants