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.

ImportError: No module named utils.utility_programs

See original GitHub issue

When I try to run from grove.amplification.oracles import basis_selector_oracle

it returns the error:

from grove.utils.utility_programs import ControlledProgramBuilder
ImportError: No module named utils.utility_programs

After downloading the file from https://pypi.python.org/pypi/quantum-grove/1.2.0 , i find that there is no utils folders inside the grove folder.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jotterbachcommented, Nov 17, 2017

@ogamel @rasa97 I verified on my MacOSX and Ubuntu16.04 that this works now:

[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from grove.amplification.oracles import basis_selector_oracle
>>> ```

```Python 3.6.1 (default, Apr  4 2017, 09:40:21)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from grove.amplification.oracles import basis_selector_oracle
>>>```

Closing this one out
1reaction
jotterbachcommented, Nov 8, 2017

@rasa97 @ogamel We just pushed a new release to pypi. This should hopefully address this install bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - No module named utils error on compiling py file
First you need to find which file is trying to import "utils.py". Starting with your main file, look up all the files you...
Read more >
ImportError: No module named utils · Issue #1747 - GitHub
I'm getting an error when trying to run the object_detection_tutorial.ipynb in a jupyter notebook as: ...
Read more >
How to correct the error of 'No module named utils'in ... - Quora
The error could be because version mismatch in the tensorflow library and the object detection code which you are using(probably downloaded based on...
Read more >
How to Fix ModuleNotFoundError and ImportError
I believe most Python programmes are quite familiar with ModuleNotFoundError import aModuleNotFoundError: No module named 'a'.
Read more >
modulenotfounderror: no module named 'utils' colab
Okay, so it looks like that there was a naming conflict with your script named email.py. There is a package in Python called...
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