romerogroup / pyprocar

A Python library for electronic structure pre/post-processing
GNU General Public License v3.0
165 stars 72 forks source link

Error occurred after importing pyprocar #116

Closed PolyuWeldingSpock closed 10 months ago

PolyuWeldingSpock commented 11 months ago

Hi, here is my error. I installed pyprocar with pip install pyprocar

>> import pyprocar
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `NORMALS` is now imported as: `from pyvista.core.utilities import NORMALS`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `generate_plane` is now imported as: `from pyvista.core.utilities import generate_plane`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `get_array` is now imported as: `from pyvista.core.utilities import get_array`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `try_callback` is now imported as: `from pyvista.core.utilities import try_callback`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `assert_empty_kwargs` is now imported as: `from pyvista.core.utilities import assert_empty_kwargs`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `get_array_association` is now imported as: `from pyvista.core.utilities import get_array_association`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `add_ids_algorithm` is now imported as: `from pyvista.plotting.utilities import add_ids_algorithm`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `algorithm_to_mesh_handler` is now imported as: `from pyvista.plotting.utilities import algorithm_to_mesh_handler`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `crinkle_algorithm` is now imported as: `from pyvista.plotting.utilities import crinkle_algorithm`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `outline_algorithm` is now imported as: `from pyvista.plotting.utilities import outline_algorithm`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `pointset_to_polydata_algorithm` is now imported as: `from pyvista.plotting.utilities import pointset_to_polydata_algorithm`.
  warnings.warn(
/home/polyucmp/.local/lib/python3.10/site-packages/pyvista/utilities/__init__.py:69: PyVistaDeprecationWarning: The `pyvista.utilities` module has been deprecated. `set_algorithm_input` is now imported as: `from pyvista.plotting.utilities import set_algorithm_input`.
  warnings.warn(

Can someone help me with this issue? Thanks!

lllangWV commented 11 months ago

Hello! These should just be warnings. They were caused by pyvista making changes to their directory tree. The code should still execute. Can you check?

I am uploading the updated version to the dev branch, such that these warnings should not appear with the most updated version of pyvista. By the end of the week, I will update pip and conda with these changes.

Logan Lang

PolyuWeldingSpock commented 11 months ago

Hello! These should just be warnings. They were caused by pyvista making changes to their directory tree. The code should still execute. Can you check?

I am uploading the updated version to the dev branch, such that these warnings should not appear with the most updated version of pyvista. By the end of the week, I will update pip and conda with these changes.

Logan Lang

Thanks for your reply! I will try the dev branch.

PolyuWeldingSpock commented 11 months ago

Hello! These should just be warnings. They were caused by pyvista making changes to their directory tree. The code should still execute. Can you check?

I am uploading the updated version to the dev branch, such that these warnings should not appear with the most updated version of pyvista. By the end of the week, I will update pip and conda with these changes.

Logan Lang

Yes, the code still executed.

PyFiSciFi commented 11 months ago

I am getting a similar error from pyvista, but my code doesn't run and won't let me import pyprocar. I'm getting an error from the line "from pyvista.utilities.algorithms import (" and the error is "ModuleNotFoundError: No module named 'pyvista.utilities.algorithms'". I installed pyprocar 6.0.0 today with conda install -c conda-forge pyprocar. I had previously been working with version 5.6.6 without issue. I am using Spyder IDE on Windows 10.

lllangWV commented 11 months ago

Hey,

so the reason why this no longer works is probably because pyvista fully removed the warning so it cannot find the module. I have yet to push the new version to conda or pypi. There are some changes I am working that I would like to finish before updating. In the meantime, could you use the dev branch on github.

PolyuWeldingSpock commented 11 months ago

Hey,

so the reason why this no longer works is probably because pyvista fully removed the warning so it cannot find the module. I have yet to push the new version to conda or pypi. There are some changes I am working that I would like to finish before updating. In the meantime, could you use the dev branch on github.

Hi,

Dev branch showed no warinings. Thanks for your reply.