question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'ansys.dpf'

See original GitHub issue

Hello, i try the code example from ansys page but i have this error

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.multishells_rst)
>>> stress = solution.stress()
>>> stress.xx.plot_contour(show_edges=False)
    from ansys.dpf import post
ModuleNotFoundError: No module named 'ansys.dpf'; 'ansys' is not a package

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
akaszynskicommented, Oct 17, 2021

ModuleNotFoundError: No module named ‘ansys.dpf’; ‘ansys’ is not a package

I’ve seen this problem before. Please make sure that you don’t have a ansys.py or ansys directory in your python path as Python will prioritize that over libraries in the site directory.

0reactions
jgd10commented, Oct 21, 2021

Attempted to move issue. Unfortunately I don’t have write permission to dpf-post so I can’t transfer the issue within GitHub’s framework, however, the two threads seem to overlap significantly in content so it is probably not necessary to recreate all the comments as is on the other thread. For now I have opted to include screenshots of what was said here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'ansys.dpf' · Issue #40 · pyansys/pydpf-post
I use python 3.7 and i install all modules but this error appears from ansys.dpf import post from ansys.dpf.post import examples solution ...
Read more >
ansys-dpf-post - PyPI
The DPF-Post module is based on DPF Framework that been developed with a data framework that localizes the loading and post-processing within the...
Read more >
PyDPF-Core — PyDPF-Core
dpf.core package provides a Python interface to DPF, enabling rapid postprocessing of a variety of Ansys file formats and physics solutions without ever...
Read more >
Installing PyAnsys modules in a Virtual Environment - LinkedIn
Installing PyAnsys modules in a Virtual Environment ... If not, please visit the Ansys Customer Portal to download them:.
Read more >
Introduction to Ansys Data Processing Framework
Module 03 covers DPF as a stand-alone tool. Module 01 to Module 03 do not require any knowledge about Ansys Mechanical. This learning...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found