question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'module' object has no attribute 'githash' (SOLVED)

See original GitHub issue

With major changes involving using Astropy package template (see #313), I just want to document this for those who encounter this error in the future when attempting to install Ginga from source and already has an existing installation from the pre-PR313 days:

Traceback (most recent call last):
  File "setup.py", line 63, in <module>
    get_debug_option(PACKAGENAME))
  File ".../ginga/astropy_helpers/astropy_helpers/version_helpers.py", line 236, in generate_version_py
    last_githash = version_module.githash
AttributeError: 'module' object has no attribute 'githash'

SOLUTION

  1. Find out where you install Ginga. Let’s call it install_dir. For example, blahblah/python2.7/site-packages/.
  2. Remove Ginga installation from install_dir manually. For example, rm -r blahblah/python2.7/site-packages/ginga* (use with care).
  3. Just to be safe, clean your source directory. For example, git clean -xdf (be careful of any new untracked files you wish to keep).
  4. Now, you can install Ginga as usual. For example, python setup.py install.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rirzecommented, May 16, 2016

Thanks for keeping this open, helped me out when I ran into this error.

1reaction
ejeschkecommented, May 9, 2016

Actually, @pllim, I’m wondering if we shouldn’t leave this open for a little while. I encountered this several times installing after merging #313. At the very least, it may prevent some filing of duplicate issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'module' object has no attribute - Stack Overflow
pyc files were out of sync, the import command in a .py file could not find the corresponding module in the .pyc files....
Read more >
AttributeError: 'module' object has no attribute ... - GitHub
I just called wget -P ~ https://git.io/.gdbinit in my home directory and started up gdb and this is the error I'm getting Traceback...
Read more >
[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
Read more >
Issues closed in the 1.0 development cycle — IPython 7.31.0 ...
PR #4639: Minor import fix to get qtconsole with –pylab=qt working ... #2578: AttributeError: 'module' object has no attribute 'TestCase'.
Read more >
AttributeError: 'module' object has no attribute 'relu'
I got AttributeError: 'module' object has no attribute 'relu' whenever I use relu for activation method, and if I change relu into tanh,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found