question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error loading plugin paho-mqtt

See original GitHub issue

I’m using Tavern tests to test my REST API here.

On my Windows machine, I can run all tests without problem.

When running my tests on a Ubuntu host or inside an Ubuntu container, I get the following error:

Errors:
E   tavern.util.exceptions.PluginLoadError: Error loading plugin paho-mqtt = tavern._plugins.mqtt.tavernhook - [Errno 20] Not a directory: '/home/stefan/venv-tng/lib/python3.6/site-packages/tavern-0.26.1-py3.6.egg/tavern/_plugins/mqtt/schema.yaml'

In don’t get this. I have installed tavern along with all other dependencies in a virtualenv. The error happens both when using python setup.py install and python setup.py develop.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stefanbschneidercommented, Dec 18, 2019

Unfortunately, the error just came back:

exc = PluginLoadError("Error loading plugin paho-mqtt = tavern._plugins.mqtt.tavernhook - [Errno 20] Not a directory: '/usr/local/lib/python3.6/site-packages/tavern-0.26.1-py3.6.egg/tavern/_plugins/mqtt/schema.yaml'",)

cause = NotADirectoryError(20, 'Not a directory')


    def raise_from(exc, cause):

        """

        Equivalent to:

    

            raise EXCEPTION from CAUSE

    

        on Python 3. (See PEP 3134).

        """

        myglobals, mylocals = _get_caller_globals_and_locals()

    

        # We pass the exception and cause along with other globals

        # when we exec():

        myglobals = myglobals.copy()

        myglobals['__python_future_raise_from_exc'] = exc

        myglobals['__python_future_raise_from_cause'] = cause

        execstr = "raise __python_future_raise_from_exc from __python_future_raise_from_cause"

>       exec(execstr, myglobals, mylocals)


/usr/local/lib/python3.6/site-packages/future-0.18.2-py3.6.egg/future/utils/__init__.py:403: 

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 


>   ???

E   tavern.util.exceptions.PluginLoadError: Error loading plugin paho-mqtt = tavern._plugins.mqtt.tavernhook - [Errno 20] Not a directory: '/usr/local/lib/python3.6/site-packages/tavern-0.26.1-py3.6.egg/tavern/_plugins/mqtt/schema.yaml'

I’m still using the same versions.

Strangely, the tests pass fine when executing them locally and the error only occurs when building and running them in Docker containers, eg, in Jenkins.

1reaction
michaelboultoncommented, Mar 23, 2019

I can’t really tell what would be causing that error, this line in particular seems completely wrong:

E   NotADirectoryError: [Errno 20] Not a directory: '/home/stefan/venv-tng/lib/python3.6/site-packages/tavern-0.26.1-py3.6.egg/tavern/_plugins/mqtt/schema.yaml'

Glad it’s fixed itself though!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while subscribing with paho MQTT broker
I am facing error while subscribing to MQTT broker (org.eclipse.paho.client.mqttv3.MqttClient) with username and password: Version:
Read more >
Paho Python MQTT Client - Working with Connections
A look at client connections and the Paho MQTT client. Includes examples of good and failed connections and re-connections.
Read more >
Trouble compiling Paho java plugin
Hi, I have successfully setup a simple Mosquitto MQTT server, and now I am attempting to setup Paho so I can experiment with...
Read more >
paho-mqtt
This document describes the source code for the Eclipse Paho MQTT Python ... an error when publishing, most likely due to the client...
Read more >
RabbitMQ Web MQTT Plugin
hostname; // mqtt websocket enabled broker var wsport = 15675; // port for above var client = new Paho.MQTT.Client(wsbroker, wsport, "/ws", "myclientid_" + ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found