GNSSpy-Project / gnsspy

Python Toolkit for GNSS Data
MIT License
183 stars 74 forks source link

ModuleNotFoundError: No module named 'gnsspy.io' #10

Open Pineappple345 opened 3 years ago

Pineappple345 commented 3 years ago

Hello! I am new and this is the first module that I tried to install. I got a problem when I want to import the module. First I will tell you how I installed it:

  1. I saved the zip file in "...miniconda3\envs\informatik2\Lib\site-packages"

  2. After extracting the zip "gnsspy-master" I had to call it "gnsspyMaster" because Python doesn't like it if a module name has a "-"

  3. Changed in setup.py the 17th line to "return [str(ir.requirement) for ir in reqs]"

  4. Opened "Anaconda Powershell Prompt" changed the address to "...miniconda3\envs\informatik2\Lib\site-packages/gnsspyMaster"

  5. entered "python setup.py install"

  6. Opened Python 3.7 entered "import gnsspyMaster" and "help(gnsspyMaster)"

  7. " Help on package gnsspyMaster:

                      NAME
                          gnsspyMaster
    
                      PACKAGE CONTENTS
                          gnsspy (package)
                          setup
    
                      FILE
                          (built-in)
  8. Entered in Python "import gnsspyMaster.gnsspy"

  9. Then I got this Error: Traceback (most recent call last):

              File "C:\Users\annae\Desktop\SatPos\untitled0.py", line 9, in <module>
                import gnsspyMaster.gnsspy
    
              File "C:\Users\annae\miniconda3\envs\informatik2\lib\site-packages\gnsspyMaster\gnsspy\__init__.py", line 23, in <module>
                from gnsspy.io.readFile import (read_navFile, read_obsFile, read_sp3File,
    
            ModuleNotFoundError: No module named 'gnsspy.io'

Why do I get this Error and how can I fix it? I am using Python 3.7