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.

extension _yaml is not built

See original GitHub issue

Trying to build the extension _yaml for pyyaml 4.1 on debian 8:

python setup.py build_ext

Fails with:

/home/dfroger/.pyenv/versions/3.6.2/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
running build_ext
building '_yaml' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/ext
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dfroger/.pyenv/versions/3.6.2/include/python3.6m -c ext/_yaml.c -o build/temp.linux-x86_64-3.6/ext/_yaml.o
gcc: error: ext/_yaml.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
Error compiling module, falling back to pure Python

Note that directory build/temp.linux-x86_64-3.6/ext is empty.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dfrogercommented, Jun 27, 2018

The problem is that in https://pypi.org/simple/pyyaml/ PyYAML-3.12.tar.gz contains ext/_yaml.c, but PyYAML-4.1.tar.gz do not, so cython is required for 4.1 to build the extension. (.pyx -> .c)

@sigmavirus24 could you make a 4.1 tarball that contains ext/_yaml.c, or would you accept a PR on that?

0reactions
ingydotnetcommented, Jun 29, 2018

FYI PyYAML release 4.1 was retracted but this has already been fixed in 4.2b1 by applying https://github.com/yaml/pyyaml/pull/188

Read more comments on GitHub >

github_iconTop Results From Across the Web

flutter - YAML Extension not found - Stack Overflow
I tried to debug my flutter app and this is the pop up i recieved. How to resolve this. I m not able...
Read more >
YAML files with .yml extensions are not supported - Drupal
I checked the issue but for me it seems there is no problem with .yml files. The File Entity module is not required...
Read more >
How to Install the PHP YAML Extension - ServerPilot
The PHP YAML extension provides PHP functions for parsing and serializing files and text containing YAML markup.
Read more >
YAML - Visual Studio Marketplace
Provides comprehensive YAML Language support to Visual Studio Code, via the yaml-language-server, with built-in Kubernetes syntax support.
Read more >
How to install YAML extension in PHP 7.2 - Plesk Forum
Zend Module Api No: 20170718. Zend Extension Api No: 320170718. Please provide the prefix of libyaml installation [autodetect] :
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