Plasmapy: unable to execute "from plasmapy.atomic import Particle"

Created on 9 Apr 2018  路  4Comments  路  Source: PlasmaPy/PlasmaPy

I would like to contribute to this project but, after installing plasmapy on my machine (pip install on Anaconda), Spyder was unable to execute the tutorial first line:
from plasmapy.atomic import Particle

throwing: _"ImportError: cannot import name 'Particle'"_

My question is: is it the first time it happens?

Availability

Most helpful comment

@StanczakDominik I just uninstaled plasmapy (the one installed through pip)...

@namurphy @lemmatum I will follow the install instructions instead

All 4 comments

Could you post a complete traceback of the ImportError?

I think this might be because the version of PlasmaPy available through pip is old enough to pre-date the Particle class. I'll create an issue that we need to do our first alpha release of 0.1.0. In the meantime, it should work if you get the repository from GitHub using the install instructions. That should handle installation of other packages (e.g., mpmath, roman, etc.). Sorry about that!

I second @namurphy 's suggestion about using the linked installation instructions.

Should we change the README in the meantime to remove mention of installation from PyPI and then make that an issue for 0.1.0?

@StanczakDominik I just uninstaled plasmapy (the one installed through pip)...

@namurphy @lemmatum I will follow the install instructions instead

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lemmatum picture lemmatum  路  6Comments

StanczakDominik picture StanczakDominik  路  5Comments

namurphy picture namurphy  路  4Comments

namurphy picture namurphy  路  5Comments

namurphy picture namurphy  路  3Comments