AttributeError: 'sql_connector' object has no attribute 'pwd'

Bug #506940 reported by Nhomar - Vauxoo
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenETL
Fix Released
Undecided
Mustufa Rangwala (Open ERP)

Bug Description

When you try to connect to a MySQL database this error is shown!

../lib/openetl/tools.py:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import pickle, md5
Traceback (most recent call last):
  File "./sql_mysql_in_example.py", line 21, in <module>
    job1.run()
  File "../lib/openetl/job.py", line 232, in run
    cProfile.runctx('self.start()', globals(), locals(), path_profile)
  File "/usr/lib/python2.6/cProfile.py", line 49, in runctx
    prof = prof.runctx(statement, globals, locals)
  File "/usr/lib/python2.6/cProfile.py", line 140, in runctx
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "../lib/openetl/job.py", line 177, in start
    for a in c.channel_get():
  File "../lib/openetl/component/component.py", line 177, in channel_get
    data, chan = gen.next()
  File "../lib/openetl/component/transform/logger.py", line 62, in process
    for d in iterator:
  File "../lib/openetl/component/component.py", line 177, in channel_get
    data, chan = gen.next()
  File "../lib/openetl/component/input/sql_in.py", line 81, in process
    self.sql_con = self.connector.open()
  File "../lib/openetl/connector/sql_connector.py", line 92, in open
    connector = MySQLdb.Connection(db=self.db, host=self.host, port=self.port, user=self.uid, passwd=self.pwd)
AttributeError: 'sql_connector' object has no attribute 'pwd'

Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

I correct 2 stuff at same time:

An error in the revno 40 with the new improvment connector with dbf. Only change the name is calling etl.component is openetl.component
The little error with mysql.

Thanks

Changed in openetl:
status: New → Fix Committed
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Hello Nhomar,

Can you give us patch which u have fixed in your local code?

Thanks
Mustufa (mra)

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

And yes

https://code.launchpad.net/~nhomar/openetl/bug_mysql i checked this branch , it is empty so please if it not needed then kindly delete it :)

Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

Sorry for the delay mra.

I proposed the branch for merge!

!!!!

Changed in openetl:
assignee: nobody → mra (Open ERP) (mra-tinyerp)
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Hello Nhomar,

We have uploaded your code in main branch..you can take up..

And yes if the https://code.launchpad.net/~nhomar/openetl/bug_mysql branch is only for that bug then can you please now remove the branch ?

thanks
Mustufa (mra)

Changed in openetl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.