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.

Installing from source is broken

See original GitHub issue

When installing from the source distribution (.tar.gz) rather than the wheel, there is an error due to the readme.md not being in the source distribution:

pip install --no-binary :all: whatlies
Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/ld/gx_8s3_n25g1dkhj59zjlxww0000gn/T/pip-install-j1jgucid/whatlies_d4b383e945574b47b346e62542fc3c0d/setup.py", line 67, in <module>
        long_description=pathlib.Path("readme.md").read_text(),
      File "/Users/xyz/miniconda2/envs/foo/lib/python3.9/pathlib.py", line 1266, in read_text
        with self.open(mode='r', encoding=encoding, errors=errors) as f:
      File "/Users/xyz/miniconda2/envs/foo/lib/python3.9/pathlib.py", line 1252, in open
        return io.open(self, mode, buffering, encoding, errors, newline,
      File "/Users/xyz/miniconda2/envs/foo/lib/python3.9/pathlib.py", line 1120, in _opener
        return self._accessor.open(self, flags, mode)
    FileNotFoundError: [Errno 2] No such file or directory: 'readme.md'

I would recommend adding a MANIFEST.in file to specify that the readme is included: https://packaging.python.org/guides/using-manifest-in/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
synapticarborscommented, Nov 16, 2021

I think that should work

0reactions
sugatoraycommented, Nov 16, 2021

@koaning I had started packaging whatlies for conda-forge and this error happened there. Thanks to @synapticarbors, the root-cause of this error was identified and then it got fixed. The build just passed with the base requirements of whatlies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Building from source" seems broken with ninja install ... - GitHub
Install some package with brew install (on a machine that Homebrew was installed on a non-default path, which needs compiles for some package) ......
Read more >
How to Find and Fix Broken Packages on Linux - MakeUseOf
Reinstalling Broken Packages on Ubuntu and Debian · Open the terminal by pressing Ctrl + Alt + T on your keyboard and enter:...
Read more >
Use apt-get to fix missing and broken packages - Linux Hint
Using apt-get to fix missing and broken packages. Apt-get is a Terminal based package management tool used for installing, upgrading, and removing packages....
Read more >
Package system is broken. How to fix it? - apt - Ask Ubuntu
Open Synaptic. Go To 'Status' (in the left navigation). Choose 'Broken'. Remove these broken packages. Otherwise it ...
Read more >
Pixelbook installing r-base dependency with held broken ...
1 Answer 1 · Open your sources. · Select the Fix Broken Packages option in Synaptic package manager. · Another method of troubleshooting...
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