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:display_layout.cc

See original GitHub issue

Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.

Make sure to mention your debugging experience if the documented solution failed.

Issue description

I am trying to execute a script with python -m pipenv run main.py but it is throwing a display_layout.cc error.

I can’t find a solution to this problem anywhere online.

Expected result

The program to execute without throwing any errors.

Actual result

Console output after executing the command: [9464:0203/141858.364:ERROR:display_layout.cc(562)] PlacementList must be sorted by first 8 bits of display_id

The script’s contents:

print('Hello, World!')

Pipfile contents:

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[requires]
python_version = "3.10"

Locations:

Pipenv version: `'2021.11.23'`

Pipenv location: `'C:\\Users\\grantwforsythe\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\pipenv'`

Python location: `'C:\\Users\\grantwforsythe\\AppData\\Local\\Programs\\Python\\Python310\\python.exe'`

Steps to replicate

I am unsure of how to replicate the issue since I assume this is a problem with my system.


Please run $ pipenv --support, and paste the results here. Don’t put backticks (`) around it! The output already contains Markdown formatting.

If you’re on macOS, run the following:

$ pipenv --support | pbcopy

If you’re on Windows, run the following:

> pipenv --support | clip

If you’re on Linux, run the following:

$ pipenv --support | xclip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
grantwforsythecommented, Feb 17, 2022

Hi, @matteius

Your comment was a solution to my problem.

Thanks, @oz123, for your help as well.

0reactions
matteiuscommented, Feb 16, 2022

@grantwforsythe I think the issue is the command you are running, it doesn’t work on git shell either and tries to open a new window. Specifically this: python -m pipenv run main.py pipenv should be used to run python, not the other way around, so like: pipenv run python main.py worked for me:

$ pipenv run python main.py
Hello, World!

This also works:

$ python -u -m pipenv run python main.py
Hello, World!
Read more comments on GitHub >

github_iconTop Results From Across the Web

lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found ...
Installing 1.2.1 error on debian wheezy (Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found) #517.
Read more >
Diff - fb0734bbb7..80461bb5df - chromium/src - Git at Google
... "system/network/network_state_list_detailed_view.cc", @@ -724,6 +727,8 ... display::kInvalidDisplayId) { + LOG(ERROR) << "Display layout has invalid id: ...
Read more >
PHP Error Class - Code Review Stack Exchange
ErrorDisplayTemplate - a class defining template to use for error display. Perhaps this takes form of an abstract base class that can be ......
Read more >
Westy - Responsive Multi-Purpose WordPress Theme by 7oroof
Westy is a beautifully handcrafted, pixel perfect multi purpose WordPress Theme based on Visual Composer & designed with great attention to ...
Read more >
Python Selenium Error: PlacementList must be sorted by first 8 ...
How can I solve this? This is the code: from selenium import webdriver e = "C:/Downloads/edgedriver_win64/msedgedriver.exe" driver = webdriver ...
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