This usually indicates one of a few things:
1) The Python version/executable being used is different between the
console and the script.
2) The Python path is different between the two.
3) The dynamic library search path (for MySQL .so files) is different
between the two.
Can you try adding some print statements to that file to check what the
import error looks like and to print sys.version and sys.path?
On Sunday, September 6, 2015, Ajoy Bhatia <ajoy.bha...@gmail.com> wrote:
> I opened rbsite.py and saw that the following code checks for MySQLdb
> module and, if present, MySQL should be listed as a choice. Here, for
> MySQL, names is an array containing only "MySQLdb"
> def has_modules(cls, names):
> """Returns True if one of the specified modules is installed."""
> for name in names:
> return True
> except ImportError:
> return False
> So I checked this call and there seems to be no error:
> *%> python*
> Python 2.7.10 (default, Jul 14 2015, 19:46:27)
> [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> __import__("MySQLdb")
> <module 'MySQLdb' from
> >>> exit()
> So I really cannot understand why MySQL is not displayed as a choice.
> Supercharge your Review Board with Power Pack:
> Want us to host Review Board for you? Check out RBCommons:
> Happy user? Let us know! https://www.reviewboard.org/users/
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com
> For more options, visit https://groups.google.com/d/optout.
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com
Supercharge your Review Board with Power Pack:
Want us to host Review Board for you? Check out RBCommons:
Happy user? Let us know! https://www.reviewboard.org/users/
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.