Import module error

Hello All,
   1) I have installed mybarcode7.
   2) I written the barcode generation code in stock modules utils.py . I have pasted code on “def get_br(bno): import barcode from barcode.writer import ImageWriter - Pastebin.com
   3) same code works on local machine
   4) Same code gives following error

File “…/app/stock/utils.py”, line 53, in get_br
import barcode
ImportError: No module named barcode

What should i do?

Thanking you.

Regards,
Gangadhar kadam





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.

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

     

     
Where is the barcode module file located? Did you install it using pip or easy install?

Sent from my phone

On 27-Jul-2013, at 2:35 PM, gangadhar kadam <em...@gmail.com> wrote:

Hello All,
   1) I have installed mybarcode7.
   2) I written the barcode generation code in stock modules utils.py . I have pasted code on "http://pastebin.com/NcLdgY54"
   3) same code works on local machine
   4) Same code gives following error

File "../app/stock/utils.py", line 53, in get_br
    import barcode
 ImportError: No module named barcode

What should i do?

Thanking you.

Regards,
Gangadhar kadam





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.

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

     

     



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.

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

     

     
1) I have downloaded pyBarcode 0.7.tar.gz in gangadhar folder and extrated it.
2) After extraction I run "python setup.py install" in pybarcode (extrated) folder.
2) my ERPnext setup is in /srv folder .
3) i tried to import barcode in python terminal,it got imported.

Thank you


On 27 July 2013 16:27, Anand Doshi <an...@iwebnotes.com> wrote:
Where is the barcode module file located? Did you install it using pip or easy install?

Sent from my phone

On 27-Jul-2013, at 2:35 PM, gangadhar kadam <em...@gmail.com> wrote:

Hello All,
1) I have installed mybarcode7.
2) I written the barcode generation code in stock modules utils.py . I have pasted code on "http://pastebin.com/NcLdgY54"
3) same code works on local machine
4) Same code gives following error

File "../app/stock/utils.py", line 53, in get_br
    import barcode
 ImportError: No module named barcode

What should i do?

Thanking you.

Regards,
Gangadhar kadam





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.

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






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.

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







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



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.

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

     

     

Gangadhar,
The python version of the terminal may not be the same used by the module wsgi apache “internal issues”, the best thing to do is to import the barcode module in the terminal and inspect your installation path is shared with the version of python mod_wsgi, for this, you can run python in the terminal the following command:

import barcode
print barcode.__file__

The shared location of python modules is:
/usr/lib/pyshared or /usr/lib/pymodules

If you really need to generate the barcode on the server side, why do you need to store them, then you can edit the file “server.py” and add the root path of the installation of the barcode.

If you simply need to represent data in the bar code and has no need for the storage of the same, I recommend you use a javascript library like http://barcode-coder.com/en/barcode-jquery-plugin-201.html

See this would greatly improve network latency and response time of the server if you need to constantly generate barcodes.



2013/7/27 gangadhar kadam <em...@gmail.com>
1) I have downloaded pyBarcode 0.7.tar.gz in gangadhar folder and extrated it.
2) After extraction I run "python setup.py install" in pybarcode (extrated) folder.
2) my ERPnext setup is in /srv folder .
3) i tried to import barcode in python terminal,it got imported.

Thank you


On 27 July 2013 16:27, Anand Doshi <an...@iwebnotes.com> wrote:
Where is the barcode module file located? Did you install it using pip or easy install?

Sent from my phone

On 27-Jul-2013, at 2:35 PM, gangadhar kadam <em...@gmail.com> wrote:

Hello All,
1) I have installed mybarcode7.
2) I written the barcode generation code in stock modules utils.py . I have pasted code on "http://pastebin.com/NcLdgY54"
  1. same code works on local machine
    4) Same code gives following error

    File "…/app/stock/utils.py", line 53, in get_br
    import barcode
    ImportError: No module named barcode

    What should i do?

    Thanking you.

    Regards,
    Gangadhar kadam





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.

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






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.

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







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444

Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



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.

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







--


Maxwell Morais

(+55 11) 3931-1412 Ramal 31
www.realizemodulados.com.br



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.

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