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.

ModuleNotFoundError for v0.1.8

See original GitHub issue

I’m getting import errors after upgrading to v0.1.8:

$ pip3 install flatten_json==0.1.8 && python3 -c "import flatten_json; print('ok')"
Collecting flatten_json==0.1.8
  Using cached https://files.pythonhosted.org/packages/a0/d3/a5d5d3ed553e059e2b844177087beb5d32cd2d19959a466b1e9b3c795995/flatten_json-0.1.8-py3-none-any.whl
Requirement already satisfied: six in ./venv/dev/lib/python3.8/site-packages (from flatten_json==0.1.8) (1.14.0)
Installing collected packages: flatten-json
  Found existing installation: flatten-json 0.1.7
    Uninstalling flatten-json-0.1.7:
      Successfully uninstalled flatten-json-0.1.7
Successfully installed flatten-json-0.1.8
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'flatten_json'

Note that the previous one (v0.1.7) works fine:

$ pip3 install flatten_json==0.1.7 && python3 -c "import flatten_json; print('ok')"
Collecting flatten_json==0.1.7
  Using cached https://files.pythonhosted.org/packages/eb/a9/1e35abfc4726065f9692decb3c57cf379e5d5329befc6fa5a1ab835fffb8/flatten_json-0.1.7-py3-none-any.whl
Installing collected packages: flatten-json
  Found existing installation: flatten-json 0.1.8
    Uninstalling flatten-json-0.1.8:
      Successfully uninstalled flatten-json-0.1.8
Successfully installed flatten-json-0.1.7
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ok

I can see the package metadata in my virtual env, but no package source or wheel.

image

Perhaps something went wrong during the last release process?

Python: 3.8.1 OS: macOS 10.15.4 venv: python3 -m venv venv

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
marclafountaincommented, Aug 13, 2020

I see the same pip/poetry search output that @ecklm and @amir-ziai-zefr are reporting. However, I am also still getting the 0.1.8 version when I run:

poetry add flatten_json

and also get the ModuleNotFoundError error under 0.1.8.

Removing 0.1.8 with

poetry remove flatten_json

and installing again using

poetry add "flatten_json==0.1.7"

has resolved the issue for me.

1reaction
alexjudacommented, Feb 23, 2021

Thanks @amirziai, works like a charm now!

Again, running

pip3 install flatten_json && python3 -c "import flatten_json; print('ok')"

works as expected, installs v0.1.13 and prints “ok”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] All python apps returning "ModuleNotFoundError ...
Im not sure what caused it but all of my python apps are now returning ModuleNotFoundError. This is not related to an individual...
Read more >
Installation - Hugging Face
Once you've created your virtual environment, you can install Datasets in it. pip. The most straightforward way to install Datasets is with pip ......
Read more >
libscrc · PyPI
libscrc is a library for calculating CRC3 CRC4 CRC5 CRC6 CRC7 CRC8 CRC16 CRC24 CRC32 CRC64 CRC82. CRCx. CRC8. CRC16. CRC24. CRC32.
Read more >
Installation - Kaolin documentation - Read the Docs
Installation¶. Most functions in Kaolin use PyTorch with custom high-performance code in C++ and CUDA. For this reason, full Kaolin functionality is only ......
Read more >
Install bcc on ArchLinux | Nan Xiao's Blog
... 4 aur/bcc-tools-git v0.1.8.r330.52cd371-1 (2) (0.06) BPF Compiler ... in from bcc import BPF ModuleNotFoundError: No module named 'bcc'
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