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

Installing pyqg on Windows #154

Closed
tbeucler opened this issue Jul 7, 2016 · 3 comments
Closed

Installing pyqg on Windows #154

tbeucler opened this issue Jul 7, 2016 · 3 comments

Comments

@tbeucler
Copy link

tbeucler commented Jul 7, 2016

Good afternoon,

I'm trying to install pyqg on a Windows 10 system. I followed the first instructions and can import pyfftw successfully in python. However, when attempting to run setup.py, I get the following error message:

runfile('C:/Users/Tom/pyqg/setup.py', wdir='C:/Users/Tom/pyqg')
Traceback (most recent call last):

  File "<ipython-input-1-c9214117d260>", line 1, in <module>
    runfile('C:/Users/Tom/pyqg/setup.py', wdir='C:/Users/Tom/pyqg')

  File "C:\Users\Tom\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile
    execfile(filename, namespace)

  File "C:\Users\Tom\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 74, in execfile
    exec(compile(scripttext, filename, 'exec'), glob, loc)

  File "C:/Users/Tom/pyqg/setup.py", line 115, in <module>
    if check_for_openmp() and use_openmp:

  File "C:/Users/Tom/pyqg/setup.py", line 103, in check_for_openmp
    stdout=fnull, stderr=fnull)

  File "C:\Users\Tom\Anaconda2\lib\subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()

  File "C:\Users\Tom\Anaconda2\lib\subprocess.py", line 710, in __init__
    errread, errwrite)

  File "C:\Users\Tom\Anaconda2\lib\subprocess.py", line 958, in _execute_child
    startupinfo)

WindowsError: [Error 2] The system cannot find the file specified

Do you have any thoughts on why this error message pops up?
More generally, is there anything preventing the installation of pyqg on a Windows 10 OS?

@cesar-rocha
Copy link
Member

cesar-rocha commented Jul 8, 2016

Do you have any thoughts on why this error message pops up?

No. In any event, @tbeucler managed to install pyqg on Windows via cygwin with anaconda. We should add this to the documentation.

@rabernat
Copy link
Member

Do you have any thoughts on why this error message pops up?

This message is related to a somewhat hacky compiler check to test for the presence of openmp. The setup script has to write a file to disk and then compile it. I'm not surprised it caused problems on windows. Thanks for raising the issue.

@asross
Copy link
Contributor

asross commented Mar 24, 2022

Hopefully resolved by #278.

@asross asross closed this as completed Mar 24, 2022
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