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

Instalation error #91

Closed
shane17 opened this issue Aug 11, 2016 · 8 comments
Closed

Instalation error #91

shane17 opened this issue Aug 11, 2016 · 8 comments

Comments

@shane17
Copy link

shane17 commented Aug 11, 2016

$ python setup.py build
nad2bin.c
nad2bin.c(129) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
nad2bin.c(130) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
nad2bin.c(137) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
nad2bin.c(138) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
nad2bin.c(352) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
nad2bin.c(353) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
pj_malloc.c
using bundled proj4..
Traceback (most recent call last):
File "setup.py", line 84, in
cc.link_executable(objects, execname, extra_postargs = [ '/MANIFEST' ] if os.name == 'nt' else None)
File "C:\Python27\lib\distutils\ccompiler.py", line 700, in link_executable
debug, extra_preargs, extra_postargs, None, target_lang)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 669, in link
raise LinkError(msg)
distutils.errors.LinkError: command 'C:\Users\shane\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\WinSDK\Bin\x64\mt.exe' failed with exit status 31

Phyton 2.7
Visual C 2.7

@micahcochran
Copy link
Collaborator

I do not think I have enough information to help you.

I assume based your issue that "Visual C 2.7" means that you have installed Microsoft Visual C++ Compiler for Python 2.7.

You might try installing pyproj using pip, C:\...> pip install pyproj

Out of curiosity, what version of setuptools are you running? C:\...> pip list | find "setuptools", which you could try upgrading.

@shane17
Copy link
Author

shane17 commented Aug 11, 2016

Yes, i meant Microsoft Visual C++ Compiler for Python 2.7.
If you need any more kind of information, I will be happy to prove it.

Trying to install pyproj using pip gives the exact same error unfortunately :(

I am running setuptools 25.1.6,

But trying to check the version of setuptools using C:...> pip list | find "setuptools" gives the following result:

$ pip list | find "setuptools"
find: ‘setuptools’: No such file or directory
Traceback (most recent call last):
File "c:\python27\lib\logging__init__.py", line 882, in emit
stream.write(fs % msg)
File "c:\python27\lib\site-packages\pip_vendor\colorama\ansitowin32.py", line 141, in write
self.write_and_convert(text)
File "c:\python27\lib\site-packages\pip_vendor\colorama\ansitowin32.py", line 169, in write_and_convert
self.write_plain_text(text, cursor, len(text))
File "c:\python27\lib\site-packages\pip_vendor\colorama\ansitowin32.py", line 175, in write_plain_text
self.wrapped.flush()
IOError: [Errno 22] Invalid argument
Logged from file list.py, line 202

@micahcochran
Copy link
Collaborator

Another shot in the dark. What version of pip are you running? C:\...> pip --version

@shane17
Copy link
Author

shane17 commented Aug 12, 2016

$ python --version
Python 2.7.12
$ pip --version
pip 8.1.2 from /usr/local/lib/python2.7/site-packages (python 2.7)

@Br3ttl3y
Copy link

Br3ttl3y commented Aug 25, 2016

I had this exact same problem. Did you ever find an answer?

$ pip install -U pyproj
Collecting pyproj
  Using cached pyproj-1.9.5.1.tar.gz
    Complete output from command python setup.py egg_info:
    nad2bin.c
    nad2bin.c(129) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(130) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(137) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(138) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(352) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(353) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    pj_malloc.c
    using bundled proj4..
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\brett\appdata\local\temp\pip-build-xysdqt\pyproj\setup.py", line 74, in <module>
        cc.link_executable(objects, execname, extra_postargs = [ '/MANIFEST' ] if os.name == 'nt' else  None)
      File "c:\python27\lib\distutils\ccompiler.py", line 700, in link_executable
        debug, extra_preargs, extra_postargs, None, target_lang)
      File "c:\python27\lib\distutils\msvc9compiler.py", line 669, in link
        raise LinkError(msg)
    distutils.errors.LinkError: command 'C:\\Users\\brett\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\WinSDK\\Bin\\mt.exe' failed with exit status -1073741819

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\brett\appdata\local\temp\pip-build-xysdqt\pyproj\

I have the same versions as mentioned above.

I was not able to get the command: pip list | find "setuptools" to work, but I was able to get pip list to work and it showed setuptools (20.10.1)

I reinstalled setuptools and now it shows setuptools (26.0.0) still same error.

@micahcochran
Copy link
Collaborator

What shell are you using under Windows with a $ prompt? Is it bash?

@Br3ttl3y
Copy link

I was able to get it working. The problem that I faced is that I was following a stupid tutorial. The tutorial told me to remove the slash from the end of the Python PATH Environment variable. Once I added it back on, everything was gravy.

@heitorPB heitorPB mentioned this issue Dec 29, 2018
@snowman2
Copy link
Member

Refer to #216

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

No branches or pull requests

4 participants