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.

TypeError: attrib() got an unexpected keyword argument 'converter'

See original GitHub issue

In a Travis CI linux build on Python 3.6, I am getting an odd error:

E   TypeError: attrib() got an unexpected keyword argument 'converter'

The errors occurs in the following line of jsonschema:

https://github.com/Julian/jsonschema/blob/bb92111a85c981d14788257ebc0885f272b17e40/jsonschema/_types.py#L64

Windows builds passed. These builds are for https://github.com/greenelab/manubot/pull/49/commits/34de1a6f34c2b3cc8bc7ee112347a0f6af6a1e99 of https://github.com/greenelab/manubot/pull/49.

Interestingly, the tests pass locally for me on Linux. From the test log, it seems that the error is being triggered upon import. Possibly related to pytest.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Juliancommented, Aug 8, 2018

Yeah setup.py install hasn’t been a great way to install things for awhile – definitely go for pip. Glad you got it working.

On Wed, Aug 8, 2018, 16:53 Daniel Himmelstein notifications@github.com wrote:

Let me wipe the Travis pip cache and rerun.

That did not fix. However, I switched to installing the manubot package on Travis using pip install . rather than python setup.py install in greenelab/manubot@ec10ec6 https://github.com/greenelab/manubot/commit/ec10ec63ff0c7ee038d6efdf9cc7ed859854a2e0. The new Travis build https://travis-ci.org/greenelab/manubot/builds/413590031#L482 passed!

I believe python setup.py install was using easy_install rather than pip, but not sure why this would cause the outdated version of attrs when it claimed to be installing 18.1.0. Anyways, I’m happy since the build is passing, so not likely to dig further unless this issue reappears.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Julian/jsonschema/issues/449#issuecomment-411413391, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUIXkYaMNkoutNQIg4v7ptbl5bPvZ84ks5uOu1QgaJpZM4Vy-J9 .

1reaction
Juliancommented, Aug 8, 2018

@dhimmel jsonschema should already be declaring that it needs attrs>17.4 – just in case that was added after v3.0.0a1, I just pushed a v3.0.0a2, but there’s also a small chance you are depending on some library that is pinning attrs to below 17.4.0.

Try re-running your build now and see if it still fails?

Will close this since jsonschema’s own test suite is passing here so I’m pretty sure the bug would be elsewhere, but leave a comment if you have any issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: attrib() got an unexpected keyword argument 'convert'
This error occurred during automated testing of a python project on the CI server using pytest . I'm using pytest==4.0.2 . This error...
Read more >
TypeError: attrib() got an unexpected keyword argument 'convert'
When I import aplpy package in jupyter notebook, I get the following error. Looks like the problem is in the Pytest package: Traceback...
Read more >
attrib() got an unexpected keyword argument 'convert ...
Hi Everyone,. Hope you are enjoying the course! If by any chance, you are receiving the following error while running pytest:
Read more >
attrib() got an unexpected keyword argument 'convert' - YouTube
PYTHON : TypeError : attrib() got an unexpected keyword argument ' convert ' [ Gift : Animated Search Engine ...
Read more >
TypeError: attrib() got an unexpected keyword argument 'convert'
typeerror : attrib() got an unexpected keyword argument 'convert'. Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On January...
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