Skip to content
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

Unable to run "import pmagpy" from notebook using Example_PmagPy_Notebook #11

Open
FrankHubeny opened this issue Jan 22, 2024 · 0 comments

Comments

@FrankHubeny
Copy link

FrankHubeny commented Jan 22, 2024

I used "pip install pmagpy" in my test environment (Windows 10 64-bit).

Installation

PS D:\Writing> pip install pmagpy
Could not find platform independent libraries
Requirement already satisfied: pmagpy in d:\writing\lib\site-packages (4.2.115)

Notebook Code

import pmagpy.ipmag as ipmag
import pmagpy.pmag as pmag

Error Received


ModuleNotFoundError Traceback (most recent call last)
Cell In[6], line 1
----> 1 import pmagpy.ipmag as ipmag
2 import pmagpy.pmag as pmag

File D:\Writing\Lib\site-packages\pmagpy_init_.py:24
5 if sys.version_info <= (3,):
6 raise Exception("""
7 You are running Python {}.
8 This version of pmagpy is only compatible with Python 3.
(...)
22
23 """.format(sys.version))
---> 24 from . import pmag
25 from . import ipmag
26 from . import pmagplotlib

File D:\Writing\Lib\site-packages\pmagpy\pmag.py:13
11 from numpy import linalg
12 import pandas as pd
---> 13 from .mapping import map_magic
14 from pmagpy import contribution_builder as cb
15 from . import find_pmag_dir

File D:\Writing\Lib\site-packages\pmagpy\mapping_init_.py:12
6 from future import absolute_import
7 #!/usr/bin/env python
8 # init.py: -- Python -- DESCRIPTIVE TEXT.
9 #
10 # Copyright (c) 2014 Lori Jonestrask
11 # Author: Lori Jonestrask ([email protected]) .
---> 12 from . import map_magic
14 all = [map_magic]

File D:\Writing\Lib\site-packages\pmagpy\mapping\map_magic.py:9
1 #!/usr/bin/env python
2
3 # map_MagIC.py: -- Python -- DESCRIPTIVE TEXT.
4 #
5 # Copyright (c) 2014 Lori Jonestrask
6 # Author: Lori Jonestrask ([email protected]) .
8 import json
----> 9 from pmagpy.data_model3 import DataModel
10 from . import maps
13 def mapping(dictionary, mapping):

File D:\Writing\Lib\site-packages\pmagpy\data_model3.py:10
8 requests = None
9 import pandas as pd
---> 10 from pmagpy import find_pmag_dir
11 from pmag_env import set_env
13 DM = []

File D:\Writing\Lib\site-packages\pmagpy\find_pmag_dir.py:4
1 from future import print_function
2 from future import absolute_import
----> 4 from imp import reload
5 import os
6 import sys

ModuleNotFoundError: No module named 'imp'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant