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

interesting error: #6

Closed
mattobrien415 opened this issue Nov 26, 2013 · 6 comments
Closed

interesting error: #6

mattobrien415 opened this issue Nov 26, 2013 · 6 comments

Comments

@mattobrien415
Copy link

On my attempt:
easy_install sklearn_pandas

"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."

I'm on windows 7 (at least I admit it!), using Python 2.7...

@paulgb
Copy link
Collaborator

paulgb commented Nov 26, 2013

I think this is actually this numpy issue (numpy/numpy#3160)

If you have pip installed, what's the output of pip freeze?

Otherwise, what versions of sklearn_pandas, numpy, and scikit do you have installed (if any)?

@mattobrien415
Copy link
Author

what versions of sklearn_pandas, numpy, and scikit do you have installed
(if any)?

numpy: 1.7.0
scikit: 0.14.1

hummmm...

Matt O'Brien

On Mon, Nov 25, 2013 at 7:57 PM, Paul Butler notifications@github.comwrote:

I think this is actually this numpy issue (numpy/numpy#3160numpy/numpy#3160
)

If you have pip installed, what's the output of pip freeze?

Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-29265837
.

@paulgb
Copy link
Collaborator

paulgb commented Nov 27, 2013

Hmm, it shouldn't be installing numpy or scikit-learn then. Try installing with --no-deps option on easy_install.

@ghost
Copy link

ghost commented Nov 28, 2013

Same issue here. I have the same setup - numpy 1.7.0, scikit-learn 0.14.1, Windows 7 and Python 2.7.6. The --no-deps option gave the same error.

It installed fine from the zip file using setup.py install, just failed with easy_install.

Full output is as follows:

Searching for sklearn-pandas
Reading https://pypi.python.org/simple/sklearn-pandas/
Best match: sklearn-pandas 0.0.7
Downloading https://pypi.python.org/packages/source/s/sklearn-pandas/sklearn-pan
das-0.0.7.tar.gz#md5=e5fc87bab6f989e9922faab3e8035b07
Processing sklearn-pandas-0.0.7.tar.gz
Writing c:\users\jamie\appdata\local\temp\easy_install-tutkjx\sklearn-pandas-0.0
.7\setup.cfg
Running sklearn-pandas-0.0.7\setup.py -q bdist_egg --dist-dir c:\users\jamie\app
data\local\temp\easy_install-tutkjx\sklearn-pandas-0.0.7\egg-dist-tmp-ifkege
error: SandboxViolation: os.open('C:\Users\Jamie.matplotlib\tmp42brpm', 342
42, 384) {}

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.

@paulgb paulgb closed this as completed in 7ecd25d Nov 29, 2013
@paulgb
Copy link
Collaborator

paulgb commented Nov 29, 2013

Thanks, this helps. I think I see what's going on:

  • setupy.py imports sklearn_pandas in order to get the version number
  • sklearn_pandas imports pandas
  • pandas imports matplotlib
  • matplotlib creates a temp directory upon being imported
  • easy_install sees this and calls foul because it thinks something is being installed outside of the install path.

To get around this, I have replaced the import with code to parse the version number. I think this is a messy way to do it but it's what PEP 396 suggests when imports aren't possible (http://www.python.org/dev/peps/pep-0396/#deriving)

I haven't been able to reproduce the error, so I'm not certain this fixes your problem; please let me know.

@paulgb
Copy link
Collaborator

paulgb commented Nov 29, 2013

Re-opening this until I hear back, since the commit auto-closed it.

@paulgb paulgb reopened this Nov 29, 2013
@paulgb paulgb closed this as completed Dec 4, 2013
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

2 participants