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: can only concatenate str (not "type") to str` instead of actual error

See original GitHub issue

Issue description

In some cases, pipenv outputs TypeError: can only concatenate str (not "type") to str instead of the actual error (or after printing out the actual error). It faces an error while handling the actual error.

Steps to replicate

Set WORKON_HOME to somewhere that current user doesn’t have permission for writing to. Example:

WORKON_HOME=/opt/ pipenv install


I encountered the issue on the latest source code from the Github.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jxltomcommented, Nov 4, 2018

@techalchemy Hi, I found it is TIMEOUT. I made a PR https://github.com/pypa/pipenv/pull/3159 for that.

0reactions
namanipradeepcommented, Apr 6, 2020

Hi ,

When I am trying to build pypika query for casting I am also getting same error, The code snippet will be(TypeError: can only concatenate str (not “type”) to str)

col_name = ‘fn.Cast(’ + aliasName + ‘.’ + columnNamevalue + ‘,’+ SqlTypes +‘.’+ castTypevalue+‘)’

Can any one help on this

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve TypeError: can only concatenate str (not "int ...
TypeError is caused because message type is a str . · The code iterates each character and attempts to add char , a...
Read more >
TypeError: can only concatenate str (not "list") to str | bobbyhadz
The Python "TypeError: can only concatenate str (not "list") to str" occurs when we try to concatenate a string and a list. To...
Read more >
TypeError: can only concatenate str (not "int") to str
This error occurs when you try adding (concatenating) an integer to a string. This error happens most commonly when trying to print an...
Read more >
Python typeerror: can only concatenate str (not "int") to str
The error “typeerror: can only concatenate str (not “int”) to str” is raised when you try to concatenate a string and an integer....
Read more >
How to resolve “TypeError: can only concatenate str (not “int ...
Find out in which line of code TypeError appeared and before the variables insert the data type you are interested in, when you...
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