Comments (12)
The C++ parts are very bare bones, C++11 should be sufficient.
from matscipy.
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.
@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.
Done for MacOS and Linux in #107. Will leave this open until tested and as a reminder to add Windows support.
from matscipy.
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.
OK thanks. This is the same error I get in GitHub Actions so at least it's consistent.
from matscipy.
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.
I think this could be related to moving the location of the extension module @prs513rosewood
from matscipy.
Agreed, it looks related to that change. Can we fix or revert please?
from matscipy.
@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.
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:
- Missing C++ runtime components
- 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.
@ilyes319 The latest wheels should now work for windows.
from matscipy.
Related Issues (20)
- [JOSS Review] Paper and statement of need HOT 2
- [JOSS Review] Reproducibility and functionality HOT 1
- [JOSS Review] Tests HOT 2
- [JOSS Review] Documentation HOT 2
- JOSS Review: Examples and Tutorials HOT 1
- Editable install won't run HOT 1
- Documentation appearance HOT 3
- Generalise surface reconstruction code
- Conda-forge build not working for version 0.8.0 HOT 5
- Some fenics log messages are written to stdout instead of stderr HOT 1
- Autogenerate documentation previews on pull requests in CI
- v0.8.1 and v0.9.0 releases HOT 4
- Part of the electrochemistry module does not follow coding style HOT 2
- TST: electrochemistry CLI pipe output test fails in CI ... HOT 3
- Building documentation requires Fenics HOT 4
- Interactive visualisation of atomic structures in documentation is broken HOT 12
- Clean up extra files created by running docs + tests HOT 7
- Improve performance of unittests
- Switch arm64 from Cirrus to GHA HOT 1
- Pair potential for the real part of the Ewald sum HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matscipy.