perklet/aioify

NameError: name 'ModuleNotFoundError' is not defined

Closed this issue · 5 comments

At first aioify was working very well I used it close to 4 months with out any issue
All of a sudden I get this following error
NameError: name 'ModuleNotFoundError' is not defined

import subprocess
import shlex 
import time
import asyncio
from aioify import aioify
try:
    import simplejson as json
except ImportError:
    import json
# Create an Asyncronous version subprocess.Popen
self.asyncfy_popen =  aioify(obj=subprocess.Popen)
self.SendWSSMessages =  aioify(obj=self.wss.websocket.sendMessage)

The above piece of code worked until it failed
witht he error discribed above.

Which version of Python, aioify, and module-wrapper do you use? Please attach a minimal reproducible example (two last lines contain undefined variables). Also, please correct typos and formatting.

Also, you don't need aioify for Popen. See https://docs.python.org/3/library/asyncio-subprocess.html.

It's not just POPEN it's for all modules now

Tested on Python3.6 ( Ubuntu 18.04 )
Tested on Python3.5 ( Debian 9 )

All fail
ioify version 0.3.1
Module-wrapper >=0.2.3,<0.3.0

Please, attach minimal reproducible example as I cannot reproduce.

OK, I got it. Please, install the latest version of module-wrapper and comment here if the problem persists.