-
Notifications
You must be signed in to change notification settings - Fork 77
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
Some of the functions from the "pymks" module do not work. #582
Comments
Hi @cheongw: Of course, older versions of PyMKS are available, but reconstructing the environment would be tough. We're no longer testing the deprecated functions and classes in the CI so those most likely won't work at all now with the latest versions of the Scipy stack. I hope that helps example what's going on. Please do follow up if you need more help. |
Hi Dr. Wheeler, |
Hi Dr. Wheeler, "ImportError: cannot import name 'extension_to_fileype' from 'meshio._helpers'. The error occurs when the defined "generate_data" function is executed at the line: Would it require another module to run the examples? Also, I tried the same example in the Google CoLab, and it did not seem to work since "sfepy" could not be installed in the Google CoLab environment for some reason. |
Hi @cheongw: could you perhaps post a working code snippet (with library imports)? I'm not sure why you're getting this error. Remember that Sfepy isn't necessary to use PyMKS, but only to generate some data for the examples. |
Could you post the version of PyMKS that you're using and the version of Sfepy? |
Your problem is probably related to this. I would recommend reverting Sfepy to version 2022.1 for now. |
Here are some of the version numbers. I thought that I can only update the module with pip command. |
You could try Note that PyMKS has a |
It looks like pip doesn't have older versions. You would have to clone the sfepy repository or get the tarball from here and install it from there. Also, this might work
|
Double check that you have actually installed the correct version.
|
Sorry for the slow response. Try with version 2020.4 of Sfepy. I have a working environment with 2020.4 of Sfepy and PyMKS version 0.4.1. |
Hi,
When the script is run with the functions "PrimitiveBasis( )", "MKSHomogenizationModel( )", and etc., it keeps giving me the error messages as the following:
Warning (from warnings module):
File "C:..., line 4
prim_basis=PrimitiveBasis(n_states=2, domain=[0,1])
DeprecationWarning: Call to deprecated method wrapper. (Use pymks.fmks instead.) -- Deprecated since version 0.4.
Where do I find the user documentation for pymks.fmks? or Which modules should I import to use the functions such as PrimitiveBasis( )", "MKSHomogenizationModel( )", and etc.?
Thank you in advance,
Woo-Jae
The text was updated successfully, but these errors were encountered: