Git Product home page Git Product logo

Comments (12)

pastewka avatar pastewka commented on July 30, 2024 1

The C++ parts are very bare bones, C++11 should be sufficient.

from matscipy.

jameskermode avatar jameskermode commented on July 30, 2024 1

There do seem to be some portability problems with our C++ code to Visual C++. Working on it in the windows-wheels branch, but iteration is a bit slow testing only via CI.

from matscipy.

jameskermode avatar jameskermode commented on July 30, 2024

@pastewka Is C++11 sufficient for everything we use? If not there are tricks to enable C++14 compliant compilers: https://cibuildwheel.readthedocs.io/en/stable/cpp_standards/

from matscipy.

jameskermode avatar jameskermode commented on July 30, 2024

Done for MacOS and Linux in #107. Will leave this open until tested and as a reminder to add Windows support.

from matscipy.

ilyes319 avatar ilyes319 commented on July 30, 2024

Hey @jameskermode,

Putting a comment here for the windows wheels. I am trying to install matscipy on windows. I think I am using MSVC compiler. When doing pip install matscipy I get the following error:
matscipy_error_pip.txt

Not sure I understand correctly the error. Maybe the wheels does not work with MSVC and I should use GCC.

from matscipy.

jameskermode avatar jameskermode commented on July 30, 2024

OK thanks. This is the same error I get in GitHub Actions so at least it's consistent.

from matscipy.

ilyes319 avatar ilyes319 commented on July 30, 2024

The new windows wheel works great, but when I import matscipy.neighbours I get the following error:

  File "<stdin>", line 1, in <module>
  File "C:\Users\Lilyes\anaconda3\envs\torch_nightly\lib\site-packages\matscipy\neighbours.py", line 35, in <module>
    from . import ffi
  File "C:\Users\Lilyes\anaconda3\envs\torch_nightly\lib\site-packages\matscipy\ffi.py", line 38, in <module>
    from _matscipy import *  # noqa
ModuleNotFoundError: No module named '_matscipy'

from matscipy.

pastewka avatar pastewka commented on July 30, 2024

I think this could be related to moving the location of the extension module @prs513rosewood

from matscipy.

jameskermode avatar jameskermode commented on July 30, 2024

Agreed, it looks related to that change. Can we fix or revert please?

from matscipy.

prs513rosewood avatar prs513rosewood commented on July 30, 2024

@ilyes319 Could you list your site-packages\ and site-packages\matscipy directories? The changes I've made should pick up _matscipy.* installed in either of these locations.

from matscipy.

prs513rosewood avatar prs513rosewood commented on July 30, 2024

I investigated a bit more and the true error message is the following:

Traceback (most recent call last):
  File "C:\Users\lucas\AppData\Roaming\Python\Python311\site-packages\matscipy\ffi.py", line 36, in <module>
    from ._matscipy import *  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing _matscipy: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "C:\Users\lucas\AppData\Roaming\Python\Python311\site-packages\matscipy\ffi.py", line 38, in <module>
    from _matscipy import *  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_matscipy'

I looked into the DLL load failed error and the source could be either:

  1. Missing C++ runtime components
  2. The compiled extension dynamically links to GCC libs that are missing, which can happen with Meson

After looking at the dependencies of the compiled extension, it seems the second option is more likely, since it links to libgcc_s_seh-1.dll and libstdc++-6.dll, so the error is unrelated to the location of the _matscipy module.

from matscipy.

prs513rosewood avatar prs513rosewood commented on July 30, 2024

@ilyes319 The latest wheels should now work for windows.

from matscipy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.