vtsuperdarn / davitpy

DEPRECATED The DaViT Python project
http://vtsuperdarn.github.com/davitpy/
GNU General Public License v3.0
37 stars 59 forks source link

Import error for davitpy. I followed the steps given in the bin directory for installing and automagically putting the davitpy conf file in the ipython config. #348

Closed samridhim closed 6 years ago

samridhim commented 6 years ago

IPython profile: davitpy

[TerminalIPythonApp] Loading IPython extension: storemagic [TerminalIPythonApp] Running code in user namespace: %load_ext autoreload [TerminalIPythonApp] Running code in user namespace: %autoreload 2 [TerminalIPythonApp] Running code in user namespace: from davitpy import pydarn

ImportError Traceback (most recent call last)

in () ----> 1 from davitpy import pydarn ImportError: No module named davitpy [TerminalIPythonApp] Running code in user namespace: from davitpy import utils --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in () ----> 1 from davitpy import utils ImportError: No module named davitpy [TerminalIPythonApp] Running code in user namespace: from davitpy import models --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in () ----> 1 from davitpy import models ImportError: No module named davitpy [TerminalIPythonApp] Running code in user namespace: from davitpy import gme --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in () ----> 1 from davitpy import gme ImportError: No module named davitpy [TerminalIPythonApp] Running code in user namespace: from datetime import *
ksterne commented 6 years ago

@samridhim, what branch are you using? As well are you trying to run ipython/python from the davitpy directory? There are problems with that that should be coming with the next master release in a few months, but have been incorporated into the develop branch from #326. It's advisable to not run ipython from the top-level directory of this repo. Instead, go "up" one directory. Let me know if this resolves the issues here.

samridhim commented 6 years ago

It runs when i switch to root. But now it is giving error for hwd.dat and sqlite.radar files.

On Tue, Mar 13, 2018 at 6:38 PM, Kevin Sterne notifications@github.com wrote:

@samridhim https://github.com/samridhim, what branch are you using? As well are you trying to run ipython/python from the davitpy directory? There are problems with that that should be coming with the next master release in a few months, but have been incorporated into the develop branch from

326 https://github.com/vtsuperdarn/davitpy/pull/326. It's advisable to

not run ipython from the top-level directory of this repo. Instead, go "up" one directory. Let me know if this resolves the issues here.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vtsuperdarn/davitpy/issues/348#issuecomment-372658992, or mute the thread https://github.com/notifications/unsubscribe-auth/AQAOwHYW63dFIIT89ZJFQrENcoBTu8Jcks5td8TNgaJpZM4SlnMj .

-- Samridhi Maheshwari

ksterne commented 6 years ago

Do you mean switching to root user or the root directory (/)? Otherwise, you might search for similar closed issues like #339 or #300.

samridhim commented 6 years ago

Root user.

On Mar 14, 2018 7:37 PM, "Kevin Sterne" notifications@github.com wrote:

Do you mean switching to root user or the root directory (/)? Otherwise, you might search for similar closed issues like #339 https://github.com/vtsuperdarn/davitpy/issues/339 or #300 https://github.com/vtsuperdarn/davitpy/pull/300.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vtsuperdarn/davitpy/issues/348#issuecomment-373033059, or mute the thread https://github.com/notifications/unsubscribe-auth/AQAOwOqu-MdIY5uguYeAzNqzbktCP4eTks5teSQlgaJpZM4SlnMj .

ksterne commented 6 years ago

If you didn't run the setup.py code as a root user, then there could he permissions issues with your /tmp/sd/ directory and all of the files within that directory.

samridhim commented 6 years ago

I tried changed the permissions with chmod but still it wouldn't work! It works as a root user though...I'll try installing again as root.

On Mar 14, 2018 8:46 PM, "Kevin Sterne" notifications@github.com wrote:

If you didn't run the setup.py code as a root user, then there could he permissions issues with your /tmp/sd/ directory and all of the files within that directory.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vtsuperdarn/davitpy/issues/348#issuecomment-373058519, or mute the thread https://github.com/notifications/unsubscribe-auth/AQAOwC5_2aDMc0Tpz2l0Gg0_LjW1vocuks5teTRegaJpZM4SlnMj .

mts299 commented 6 years ago

By chance are you the only user for that machine (as in there are no other user accounts on your computer)? And which OS are you running?

samridhim commented 6 years ago

Ubuntu. I am the only user.

On Mon, Mar 26, 2018 at 9:10 PM, mts299 notifications@github.com wrote:

By chance are you the only user for that machine (as in there are no other user accounts on your computer)? And which OS are you running?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vtsuperdarn/davitpy/issues/348#issuecomment-376211643, or mute the thread https://github.com/notifications/unsubscribe-auth/AQAOwOmjWq26xwCghDnu4H6YY_6zB-p_ks5tiQwKgaJpZM4SlnMj .

-- Samridhi Maheshwari

mts299 commented 6 years ago

Interesting. Which Ubuntu version are you using? Also, can tell me if the python/pip version in your user account is the same version as sudo? Also, have you tried using a different python environment?

asreimer commented 6 years ago

This looks like a file permission issue. I'm closing due to inactivity/out of scope. If you are still having troubles, we can re-open if needed.