pynetlinux icon indicating copy to clipboard operation
pynetlinux copied to clipboard

import fails in python3

Open tfeldmann opened this issue 10 years ago • 3 comments

import pynetlinux fails in python3.4, Ubuntu 14.04:

ImportError: No module named 'brctl'

tfeldmann avatar Apr 28 '14 13:04 tfeldmann

I fix it by edit the pynetlinux/init.py file. Simple add some code on the top

import sys
sys.path.append('pathto/site-packages/pynetlinux')

xushuxun avatar Jul 12 '17 07:07 xushuxun

same issue, the solution did not worked for me :-(

Gotcha007 avatar Mar 02 '21 23:03 Gotcha007

企业微信截图_16705754624543 pynetlinux/init.py,删掉import或者全部注释,init文件可以为空

hanlihub avatar Dec 09 '22 08:12 hanlihub