kristinemlarson / gnssrefl

GNSS Interferometric Reflectometry Software (GNSS-IR)
GNU General Public License v3.0
155 stars 76 forks source link

ModuleNotFoundError: No module named 'gnssrefl.gpssnr' #318

Closed cheesepalm closed 3 weeks ago

cheesepalm commented 3 weeks ago

I used git clone and then pip install 'pip install .'

Working on Linux

I installed the package and it said "Successfully built gnssrefl" Then I tried to open rinex2snr -h and it resulted in ModuleNotFoundError: No module named 'gnssrefl.gpssnr'

I use a virtual environment with python 3.9.20.

pip list | grep gnssrefl gnssrefl 3.10.0

Can you help me with this? I am a bit puzzled at the moment.

cheesepalm commented 3 weeks ago

Update: Okay I'm not 100% sure what I did but I think that using pip3 instead of pip did the trick for me. Now the rinex2snr program can be started normally.

kristinemlarson commented 3 weeks ago

Thank you for posting this. I will make a note in the install instructions to warn people that pip3 may be needed.

Kristine M. Larson @.*** https://www.kristinelarson.net http://www.kristinelarson.net https://gnss-reflections.org https://github.com/kristinemlarson

Have you tried reading the documentation?

On Sat, Oct 12, 2024 at 5:40 AM cheesepalm @.***> wrote:

Closed #318 https://github.com/kristinemlarson/gnssrefl/issues/318 as completed.

— Reply to this email directly, view it on GitHub https://github.com/kristinemlarson/gnssrefl/issues/318#event-14616868751, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSDAPGXBQEVBXBFSQJ5HNDZ3EKFNAVCNFSM6AAAAABP2LBYKGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGYYTMOBWHA3TKMI . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

dahmic77 commented 1 week ago

Hi, I have the same issue. I followed your instruction under "Direct Python Install" (https://gnssrefl.readthedocs.io/en/latest/pages/README_install.html): pip install . installexe linux64 (Note: The EXE environment variable has to be set via .bashrc and also the EXE directory has to be created before this command work.)

Version gnssrefl-3.10.2 was installed at my Linux PC. Then I tried to run 'rinex2snr -h' command and got the same failure: ModuleNotFoundError: No module named 'gnssrefl.gpssnr'

'gpssnr.f' is Fortran code. In a former version of gnssrefl a 'build' directory was created with Fortran binaries. But it seems to be that the installation steps above do not include a compilation of the Fortran code at the moment. Is the compilation of the Fortran code not necessary anymore?

kristinemlarson commented 1 week ago

hi are you using the docker? a linux emulator on your PC? which python are you running? i can't say much without more information and a screen shot.

On Tue, Oct 29, 2024 at 2:31 PM dahmic77 @.***> wrote:

Hi, I have the same issue. I followed your instruction under "Direct Python Install" ( https://gnssrefl.readthedocs.io/en/latest/pages/README_install.html): pip install . `installexe linux64 (Note: The EXE environment variable has to be set via .bashrc and also the EXE directory has to be created before this command work.)

Version gnssrefl-3.10.2 was installed at my Linux PC. Then I tried to run 'rinex2snr -h' command and got the same failure: ModuleNotFoundError: No module named 'gnssrefl.gpssnr'

'gpssnr.f' is Fortran code. In a former version of gnssrefl a 'build' directory was created with Fortran binaries. But it seems to be that the installation steps above do not include a compilation of the Fortran code at the moment. Is the compilation of the Fortran code not necessary anymore?

— Reply to this email directly, view it on GitHub https://github.com/kristinemlarson/gnssrefl/issues/318#issuecomment-2445368287, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSDAPFFMPV4XLRETEIO7ADZ575ETAVCNFSM6AAAAABP2LBYKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBVGM3DQMRYG4 . You are receiving this because you commented.Message ID: @.***>

-- Kristine M. Larson @.*** https://www.kristinelarson.net http://www.kristinelarson.net https://gnss-reflections.org https://github.com/kristinemlarson

Have you tried reading the documentation?

kristinemlarson commented 1 week ago

and are you using python3 and pip3 (or pip pointing to python3)

On Tue, Oct 29, 2024 at 2:46 PM Kristine Larson @.***> wrote:

hi are you using the docker? a linux emulator on your PC? which python are you running? i can't say much without more information and a screen shot.

On Tue, Oct 29, 2024 at 2:31 PM dahmic77 @.***> wrote:

Hi, I have the same issue. I followed your instruction under "Direct Python Install" ( https://gnssrefl.readthedocs.io/en/latest/pages/README_install.html): pip install . `installexe linux64 (Note: The EXE environment variable has to be set via .bashrc and also the EXE directory has to be created before this command work.)

Version gnssrefl-3.10.2 was installed at my Linux PC. Then I tried to run 'rinex2snr -h' command and got the same failure: ModuleNotFoundError: No module named 'gnssrefl.gpssnr'

'gpssnr.f' is Fortran code. In a former version of gnssrefl a 'build' directory was created with Fortran binaries. But it seems to be that the installation steps above do not include a compilation of the Fortran code at the moment. Is the compilation of the Fortran code not necessary anymore?

— Reply to this email directly, view it on GitHub https://github.com/kristinemlarson/gnssrefl/issues/318#issuecomment-2445368287, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSDAPFFMPV4XLRETEIO7ADZ575ETAVCNFSM6AAAAABP2LBYKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBVGM3DQMRYG4 . You are receiving this because you commented.Message ID: @.***>

-- Kristine M. Larson @.*** https://www.kristinelarson.net http://www.kristinelarson.net https://gnss-reflections.org https://github.com/kristinemlarson

Have you tried reading the documentation?

-- Kristine M. Larson @.*** https://www.kristinelarson.net http://www.kristinelarson.net https://gnss-reflections.org https://github.com/kristinemlarson

Have you tried reading the documentation?

dahmic77 commented 1 week ago

I solved the problem. See solution under https://github.com/kristinemlarson/gnssrefl/issues/320. The 'rinex2snr -h', 'gnssir -h' or 'subdaily -h' commands should not be used in the ./gnssrefl installation directory itself. Otherwise it works.

kristinemlarson commented 1 week ago

i can run those same commands anywhere. so i'm not sure what you are saying.

On Tue, Oct 29, 2024 at 3:06 PM dahmic77 @.***> wrote:

I solved the problem. See solution under #320 https://github.com/kristinemlarson/gnssrefl/issues/320. The 'rinex2snr -h', 'gnssir -h' or 'subdaily -h' commands should not be used in the ./gnssrefl installation directory itself. Otherwise it works.

— Reply to this email directly, view it on GitHub https://github.com/kristinemlarson/gnssrefl/issues/318#issuecomment-2445415559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSDAPEXITO2RNPJNM7WAV3Z6ABFNAVCNFSM6AAAAABP2LBYKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBVGQYTKNJVHE . You are receiving this because you commented.Message ID: @.***>

-- Kristine M. Larson @.*** https://www.kristinelarson.net http://www.kristinelarson.net https://gnss-reflections.org https://github.com/kristinemlarson

Have you tried reading the documentation?

dahmic77 commented 1 week ago

I can also run the command anywhere except under the main ./gnssrefl directory. I do not know, what is the reason for that. Selection_182

kristinemlarson commented 1 week ago

can you get the code to do anything useful? (translate a file, run quickLook)

On Tue, Oct 29, 2024 at 3:20 PM dahmic77 @.***> wrote:

I can also run the command anywhere except the under the main ./gnssrefl directory. I do not know, what is the reason for that. Selection_182.png (view on web) https://github.com/user-attachments/assets/ccd7685c-cba2-4489-8f43-b5a1f3e1eada

— Reply to this email directly, view it on GitHub https://github.com/kristinemlarson/gnssrefl/issues/318#issuecomment-2445433503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSDAPAKZW2PCMTO4OT56PLZ6AC3DAVCNFSM6AAAAABP2LBYKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBVGQZTGNJQGM . You are receiving this because you commented.Message ID: @.***>

-- Kristine M. Larson @.*** https://www.kristinelarson.net http://www.kristinelarson.net https://gnss-reflections.org https://github.com/kristinemlarson

Have you tried reading the documentation?

dahmic77 commented 1 week ago

Yes, it works, if I start the command outside the /opt/gnssrefl main directory.