python-lml / lml

Load me later. A lazy plugin management system for Python
http://lml.readthedocs.io
Other
12 stars 5 forks source link

"Deprecated! since version 0.0.3. Please use scan_plugins_regex!" #16

Closed chansdad closed 5 years ago

chansdad commented 5 years ago

Receiving this warning when trying out the v2 example . Any suggestions on fixing it ? $robotchef_v2 "Portable Battery" /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/lml/loader.py:64: UserWarning: Deprecated! since version 0.0.3. Please use scan_plugins_regex! "Deprecated! since version 0.0.3. Please use scan_plugins_regex!" I can cook Portable Battery for robots

Regards

chfw commented 5 years ago

Thanks for trying examples. Yes, can fix it.

chansdad commented 5 years ago

while you fix this. i am looking to use lml in production with scan_plugins function. Main reason for using lml is lazy loading and how easily i can add plugin functionality ..

chfw commented 5 years ago

to add a plugin is down to your design. lml provides a way to install, discover and load your plugin.

Take pyexcel as an example, by default pyexcel provides csv, tsv read/write capability. To be able to read and write xlsx, you install pyexcel-xlsx.

markp2 commented 5 years ago

Hi, just hit this same issue: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/lml/loader.py:64: UserWarning: Deprecated! since version 0.0.3. Please use scan_plugins_regex! "Deprecated! since version 0.0.3. Please use scan_plugins_regex!"

Looks like it is fixed (closed) in in cb74ea6 on 3 Apr –Any chance of a new release to resolve this? thanks!

chfw commented 5 years ago

It is a fix in examples, not in the library itself so I didn’t give it a release. How did it affect you?

markp2 commented 5 years ago

I am using pyexcel.

In file: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyexcel/internal/init.py

At lIne 27:

scanplugins('pyexcel', 'pyexcel', BLACK_LIST, WHITE_LIST)

markp2 commented 5 years ago

Apologies- looks like I was running an old [0.5.7] version of pyexcel. Upgrading to the latest 0.5.13 fixed this.

chfw commented 5 years ago

Alright then

KeithTt commented 2 years ago

Apologies- looks like I was running an old [0.5.7] version of pyexcel. Upgrading to the latest 0.5.13 fixed this.

I checked my package version, it is pyexcel==0.5.13, but I still face this problem.

chfw commented 2 years ago

Please try 0.1.0