Skip to content
New issue

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

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

Already on GitHub? # to your account

Python #4

Open
StolkArjen opened this issue Aug 12, 2016 · 2 comments
Open

Python #4

StolkArjen opened this issue Aug 12, 2016 · 2 comments

Comments

@StolkArjen
Copy link

Hi,

This package looks to be very promising, thanks for sharing. I'm encountering an issue with installation, however, and wonder whether this is specific to Python 3 (searching for the error code suggests it), and if so, whether it can be resolved. The error code:
TypeError: chown() missing 1 required positional argument: 'numeric_owner'

Best,
Arjen
OSX :: Python 3.5.2 :: Anaconda 4.1.1 (x86_64)

@amit4111989
Copy link

Hello,
I replicated your issue and was able to install pycasp on OSX El Capitan with a few hacks

  • First, please use this patch for setup.py when installing with python 3.5
    https://github.com/amit4111989/pycasp/blob/master/setup.patch.
    I have commented out the distribute_setup.py line and the subsequent distribute_setup.use_setuptools() line because this is the main source of the chown() issue and is quite unnecessary.
    It tries to store and use the /tmp folder which requires root level permissions. I tried changing the permissions on /tmp but that did not help, so the best option was to just comment it out
  • Numpy 1.11 is perfectly fine , and is recommended because Numpy 1.6.1 is not supported by python3.5 (yet).
    When trying to install pycasp on ubuntu , I was unable to proceed with the installation because the setup wanted numpy 1.6.1 On mac however, I was able to proceed with numpy 1.11
    Here is a requirements.txt file for your reference
    https://github.com/amit4111989/pycasp/blob/master/requirements.txt
  • If you have numpy, scipy and the patch I recommended, you will still get the chown() error at one point because of the asp dependency.
    pycasp requires asp-1.2.0+ which calls distribute_setup.py and causes the chown() error again.
    Here's how to avoid it
  1. [git clone https://github.com/shoaibkamil/asp](git clone https://github.com/shoaibkamil/asp)
  2. edit the setup.py file and comment out the lines I mentioned in point 1
  3. run python3.5 setup.py install manually
  4. run install again for pycasp

I notice that you are using anaconda. I am not sure if you are installing scipy and numpy via conda or not. I think it is unecessary. I just did abrew install python3and used pip3.5 and python3.5 for all my installations

here's my fork for your reference

https://github.com/amit4111989/pycasp

Note : I tried to install pycasp on ubuntu with python3.5 and failed miserably. Just wanted to share this info for anyone trying and failing w/ Ubuntu 14.04

@leonardltk
Copy link

hi, i tried following the above method installing in windows, but i encountered the following problem

Installed c:\users\ltiangku\appdata\local\continuum\anaconda3\lib\site-packages\
pycasp-0.1-py3.5.egg
Processing dependencies for pycasp==0.1
Searching for asp
Reading https://pypi.python.org/simple/asp/
Downloading https://pypi.python.org/packages/a5/cf/5ea8de46052271346bac7ac789c09
ca8ee1303421a4d5db9a2f106e1e1a7/asp-0.1.2.4.tar.gz#md5=21569a267f4f99558b5a9dc72
ee1d4c6
Best match: asp 0.1.2.4
Processing asp-0.1.2.4.tar.gz
Writing C:\Users\ltiangku\AppData\Local\Temp\easy_install-cd5klju2\asp-0.1.2.4\s
etup.cfg
Running asp-0.1.2.4\setup.py -q bdist_egg --dist-dir C:\Users\ltiangku\AppData\L
ocal\Temp\easy_install-cd5klju2\asp-0.1.2.4\egg-dist-tmp-od174e4j
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.1
6.tar.gz
Extracting in C:\Users\ltiangku\AppData\Local\Temp\easy_install-cd5klju2\asp-0.1
.2.4\temp\tmpmvwidtvi
error: [WinError 32] The process cannot access the file because it is being used
 by another process: 'C:\\Users\\ltiangku\\AppData\\Local\\Temp\\easy_install-cd
5klju2\\asp-0.1.2.4\\distribute-0.6.16.tar.gz'

May i know your suggestion?

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

No branches or pull requests

3 participants