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

Installation Error on Windows #90

Closed
cpaulik opened this issue Feb 25, 2016 · 8 comments
Closed

Installation Error on Windows #90

cpaulik opened this issue Feb 25, 2016 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@cpaulik
Copy link
Contributor

cpaulik commented Feb 25, 2016

When trying to install my pygeogrids package on Windows I get the following error:

Collecting pygeogrids
  Downloading pygeogrids-0.1.9.tar.gz
    Complete output from command python setup.py egg_info:
    no previously-included directories found matching 'documentation\_build'
    zip_safe flag not set; analyzing archive contents...
    six: module references __path__

    Installed c:\users\cpa\appdata\local\temp\easy_install-sqim5d\pyscaffold-2.5.5b1\.eggs\six-1.10.0-py2.7.egg
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\cpa\appdata\local\temp\pip-build-wbair0\pygeogrids\setup.py", line 23, in <module>
        setup_package()
      File "c:\users\cpa\appdata\local\temp\pip-build-wbair0\pygeogrids\setup.py", line 19, in setup_package
        use_pyscaffold=True)
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\distutils\core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\dist.py", line 269, in __init__
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\dist.py", line 313, in fetch_build_eggs
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\pkg_resour
ces\__init__.py", line 825, in resolve
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\pkg_resour
ces\__init__.py", line 1070, in best_match
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\pkg_resour
ces\__init__.py", line 1082, in obtain
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\dist.py", line 380, in fetch_build_egg
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\command\easy_install.py", line 640, in easy_install
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\command\easy_install.py", line 670, in install_item
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\command\easy_install.py", line 853, in install_eggs
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\command\easy_install.py", line 1081, in build_and_install
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\command\easy_install.py", line 1067, in run_setup
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 246, in run_setup
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\contextlib.py", line 35, in __exit__
        self.gen.throw(type, value, traceback)
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 195, in setup_context
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\contextlib.py", line 35, in __exit__
        self.gen.throw(type, value, traceback)
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 166, in save_modules
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 141, in resume
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 154, in save_modules
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 195, in setup_context
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 243, in run_setup
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 273, in run
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 242, in runner
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\sandbox.py", line 46, in _execfile
      File "c:\users\cpa\appdata\local\temp\easy_install-sqim5d\PyScaffold-2.5.5b1\setup.py", line 27, in <module>

      File "c:\users\cpa\appdata\local\temp\easy_install-sqim5d\PyScaffold-2.5.5b1\setup.py", line 23, in setup_package
        setup_package()
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\distutils\core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "c:\users\cpa\appdata\local\continuum\anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\dist.py", line 272, in __init__
      File "C:\Users\cpa\AppData\Local\Continuum\Anaconda3\envs\test-rsdata\lib\distutils\dist.py", line 287, in __init__
        self.finalize_options()
      File "c:\users\cpa\appdata\local\continuum\anaconda3\envs\test-rsdata\lib\site-packages\setuptools-20.1.1-py2.7.egg\setuptools
\dist.py", line 327, in finalize_options
      File "c:\users\cpa\appdata\local\temp\easy_install-sqim5d\PyScaffold-2.5.5b1\pyscaffold\integration.py", line 106, in pyscaffo
ld_keyword
      File "c:\users\cpa\appdata\local\temp\easy_install-sqim5d\PyScaffold-2.5.5b1\pyscaffold\repo.py", line 88, in get_git_root
    TypeError: 'NoneType' object is not callable

This happens when all the dependencies are already installed manually. The same package works without problems in Linux.

@cpaulik
Copy link
Contributor Author

cpaulik commented Feb 25, 2016

Oh, can this be because git is not installed on the target system?

@FlorianWilhelm
Copy link
Member

Hi @cpaulik, what exactly did you do to install it? Did you use pip? Please be more precise. If you used python setup.py sdist or python setup.py bdist_wheel the resulting package should have no dependency on PyScaffold at all. That's the idea, you only need PyScaffold (and git) during the development but not when someone wants to use your package. This is why I assume you used python setup.py install to install it?

@cpaulik
Copy link
Contributor Author

cpaulik commented Feb 25, 2016

I used pip install pygeogrids which loaded the source distribution from https://pypi.python.org/pypi/pygeogrids/0.1.9

I'll check the tar file again since I guess there is something wrong on my side.

@cpaulik
Copy link
Contributor Author

cpaulik commented Feb 25, 2016

Ok. I've run python setup.py sdist on my Ubuntu machine on the latest master of pygeogrids. This gave me pygeogrids-0.1.9.post0.dev3+g8f0858b.tar.gz.

Then I ran pip install "H:\pygeogrids-0.1.9.post0.dev3+g8f0858b.tar.gz" on my Windows machine which gave the same error as in the original post.

Do you have any ideas why this could be?.

The setup.py and setup.cfg look like the pyscaffold templates.

@cpaulik
Copy link
Contributor Author

cpaulik commented Feb 25, 2016

This is the conda environment in which I am trying all of this:

mkl                       11.3.1                        0
msvc_runtime              1.0.1                     vc9_0
netcdf4                   1.2.2               np110py27_0
numpy                     1.10.4                   py27_0
pip                       8.0.2                    py27_0
proj.4                    4.9.1                         0
pyproj                    1.9.4                    py27_1
python                    2.7.11                        2
setuptools                20.1.1                   py27_0
wheel                     0.29.0                   py27_0

@FlorianWilhelm
Copy link
Member

@cpaulik You may have found a serious bug in PyScaffold. I could reproduce it and I think I know where the problem is. Give me some more time, I'll fix it asap.

@FlorianWilhelm FlorianWilhelm added the bug Something isn't working label Feb 25, 2016
@FlorianWilhelm FlorianWilhelm self-assigned this Feb 25, 2016
@FlorianWilhelm
Copy link
Member

@cpaulik Could you check if you have the same problem with PyScaffold 2.5.5? Maybe you need to remove manually older version of PyScaffold first.

@cpaulik
Copy link
Contributor Author

cpaulik commented Feb 26, 2016

Thanks. I can now install the existing package as well as newly generated ones.

@cpaulik cpaulik closed this as completed Feb 26, 2016
FlorianWilhelm added a commit that referenced this issue Oct 11, 2016
…041864

d041864 fix issue #86 - detect dirty git workdirs even in the absence of tags
23b8d74 flake8 cleanup
929a5d7 clean up and restructure git workdir handling and status
2617712 update changelog with #86
5538f19 fix issue #86 - detect dirty git workdir without tags
9f360e6 add minimal nix shell config
4a365d2 Merge branch 'master' of github.com:pypa/setuptools_scm
0977be3 correct version in changelog
b0a9576 Merge pull request #104 from RonnyPfannschmidt/master
6e6c18e add code comments for comprehending backward compatibility code
cdda768 troughly pass all versions trough parsed versions
1cd3958 fix issue #103 - reorder version dumping
f9ca54d another changelog update
47f4b79 update changelog
58e1f22 Merge pull request #102 from anarcat/pretend-write
80565e3 properly write version file even if in pretend mode
cf19a20 Show python code in the README properly (#100)
c1fd474 Merge pull request #98 from RonnyPfannschmidt/reenable-hgrcpath
1899597 explicitly specify merge tool for hg merge test
fcde635 allow HGRCPATH env var - potentially fixes #97
4d93251 Merge pull request #99 from RonnyPfannschmidt/fix-travis
98c5c7e work up travis matrix
6384be6 update changelog
4e82375 Merge pull request #91 from te-je/master
a575570 Merge pull request #90 from pypa/issue-88
e7c768a fix #89: windows path comparison bug
b65c1d0 Merge pull request #1 from pypa/master
1b4cddc Correct typo and clarify Sphinx recommended usage. Fixes #88.

git-subtree-dir: pyscaffold/contrib/setuptools_scm
git-subtree-split: d041864fc414512a6772a90ba978826318a75a62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants