ImportError when making site for an app

I'm trying to make a site for an app I manually installed by running frappe --install [sitename] [dbname] in the frappe-bench/sites folder (the app is code for a modified version of ERPNext I was supplied, which I installed by replacing the erpnext folder with it). When I run the command however, I get an ImportError (the full traceback is available here). The last line says:

ImportError: this is MySQLdb version (1, 2, 4, 'final', 1), but _mysql is version (1, 2, 3, 'final', 0)

I haven't run into this before when doing the tutorials in the Developer Guide. What went wrong? Thanks for the help.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/44627e2f-2c5a-4016-b511-696e90cc118b%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Seems like a problem with the mysqldb library - you may have installed more than one in the same environment (?)


On 18-Jun-2014, at 10:01 pm, Chris Horton <ch...@thedrainage.com> wrote:

I'm trying to make a site for an app I manually installed by running frappe --install [sitename] [dbname] in the frappe-bench/sites folder (the app is code for a modified version of ERPNext I was supplied, which I installed by replacing the erpnext folder with it). When I run the command however, I get an ImportError (the full traceback is available here). The last line says:

ImportError: this is MySQLdb version (1, 2, 4, 'final', 1), but _mysql is version (1, 2, 3, 'final', 0)

I haven't run into this before when doing the tutorials in the Developer Guide. What went wrong? Thanks for the help.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/44627e2f-2c5a-4016-b511-696e90cc118b%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9DDE8B5C-34FC-4CFE-9526-29E9BA7519FC%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Yeah, I'm using MariaDB and I'm guessing one of the installer scripts for ERPNext that I tried running overwrote something related to that. I ran an apt-get install --reinstall command in the terminal and that seemed to fix the issue.

On Thursday, June 19, 2014 12:33:51 AM UTC-4, rushabh wrote:
Seems like a problem with the mysqldb library - you may have installed more than one in the same environment (?)


On 18-Jun-2014, at 10:01 pm, Chris Horton <ch...@thedrainage.com> wrote:

I'm trying to make a site for an app I manually installed by running frappe --install [sitename] [dbname] in the frappe-bench/sites folder (the app is code for a modified version of ERPNext I was supplied, which I installed by replacing the erpnext folder with it). When I run the command however, I get an ImportError (the full traceback is available here). The last line says:

ImportError: this is MySQLdb version (1, 2, 4, 'final', 1), but _mysql is version (1, 2, 3, 'final', 0)

I haven't run into this before when doing the tutorials in the Developer Guide. What went wrong? Thanks for the help.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/44627e2f-2c5a-4016-b511-696e90cc118b%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/842c8953-469f-412e-92ef-26c1ac53e6c1%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.