usnistgov / ndn-dpdk

NDN-DPDK: High-Speed Named Data Networking Forwarder
https://www.nist.gov/publications/ndn-dpdk-ndn-forwarding-100-gbps-commodity-hardware
Other
131 stars 26 forks source link

ModuleNotFoundError: No module named 'plugins' #78

Closed benwallace2 closed 1 year ago

benwallace2 commented 1 year ago

Hello,

I am encountering an error while trying to run the fileserver.py script.

Traceback (most recent call last):
  File "/home/fabric/work/ndn/fabric/ndndpdk/fileserver.py", line 9, in <module>
    import v4pub
  File "/home/fabric/work/ndn/fabric/ndndpdk/v4pub.py", line 12, in <module>
    from plugins import Plugins
ModuleNotFoundError: No module named 'plugins'

I've read the FABRIC NDN-DPDK Experiments README, but there doesn't seem to be any explicit mention of the plugins module or how to install it.

One solution I've tried is installing plugins.py as mentioned in the FABRIC IPv4 Internet Access README. However, this did not work and resulted in another error:

Traceback (most recent call last):
  File "/home/fabric/work/ndn/fabric/ndndpdk/fileserver.py", line 9, in <module>
    import v4pub
  File "/home/fabric/work/ndn/fabric/ndndpdk/v4pub.py", line 12, in <module>
    from plugins import Plugins
  File "/home/fabric/work/ndn/fabric/ndndpdk/plugins.py", line 1, in <module>
NameError: name 'false' is not defined. Did you mean: 'False'?

Any help would be greatly appreciated. Thank you!

yoursunny commented 1 year ago

One solution I've tried is installing plugins.py as mentioned in the FABRIC IPv4 Internet Access README.

Yes, this is the plugins.py file you need.

File "/home/fabric/work/ndn/fabric/ndndpdk/plugins.py", line 1, in NameError: name 'false' is not defined. Did you mean: 'False'?

plugins.py does not contain the token false. Are you sure you downloaded the file correctly?

yoursunny commented 1 year ago

plugins.py functionality has been merged into fablib. I updated v4pub.py to not depend on plugins.py anymore.