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.

[Windows] ImportError: No module named glob

See original GitHub issue

OS version: Windows 10 x64

I’ve installed conan 0.14.1 package from the official site, and trying to test it with this simple conanfile.txt:

[requires]
Qt/5.6.1-1@osechet/testing

[generators]
cmake

Here’s the program output:

> conan install .
It seems to be the first time you run conan
Auto detecting your dev setup to initialize conan.conf
Found Visual Studio 11
Found Visual Studio 14
Default conan.conf settings
        os=Windows
        arch=x86_64
        compiler=Visual Studio
        compiler.version=14
        compiler.runtime=MD
        build_type=Release
*** You can change them in ~/.conan/conan.conf ***
*** Or override with -s compiler='other' -s ...s***


Qt/5.6.1-1@osechet/testing: Not found, looking in remotes...
WARN: Remotes registry file missing, creating default one in C:\Users\ForNeVeR\.conan\registry.txt
Qt/5.6.1-1@osechet/testing: Trying with 'conan.io'...
Downloading conanmanifest.txt
[==================================================]
Downloading conanfile.py
[==================================================]
Downloading conan_export.tgz
[==================================================]
icu/57.1@osechet/stable: Not found, looking in remotes...
icu/57.1@osechet/stable: Trying with 'conan.io'...
Downloading conanmanifest.txt
[==================================================]
Downloading conanfile.py
[==================================================]
Downloading conan_export.tgz
[==================================================]
ERROR: Unable to load conanfile in C:\Users\ForNeVeR\.conan\data\icu\57.1\osechet\stable\export\conanfile.py
    from glob import glob
ImportError: No module named glob

For some reason it cannot find the glob module. I believe that the script line in question is here.

What can be done with it? Is it package author mistake (and what should he do?) or a conan packaging issue (it have no necessary Python modules or something)?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Jan 26, 2017

Yes, that is totally true. The issue is related to the bundled app (conan + python interpreter) created with pyinstaller, which is the base for all the installers (Win, Linux, etc). That is why we have few control over it, it is how pyinstaller is doing things, and seems quite difficult to solve it from the outside.

The strongly recommended installation of conan is with the python/pip PyPI package. The download page already classify the Linux installer too as with possible issues.

1reaction
memshardedcommented, Nov 5, 2016

It seems an issue from the win conan installer. We suggest using the pip package, we have found to be the easiest and the one with less troubles. Having a python installation with pip is very easy in windows too. If you could try it, please tell us if it worked, we will have a look at the win installer when possible.

Thanks very much for your detailed report and feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install the 'glob' module? - python - Stack Overflow
I am running ubuntu 14.04 and trying to launch ROS Simulator. I have this error: ImportError: No ...
Read more >
pyhdf installation error 'No module named glob' #8060 - GitHub
I suspect the issue is that because we isolate the build environment, packages installed in your system Python aren't visible when building ( ......
Read more >
Import error: No module named 'glob' - ROS Answers
Thus, I guess that the problem occurs because the python executable which runs xacro.py can't locate the module glob in its path.
Read more >
How to install the 'glob' module? - Python - DevPress
Answer a question. I am running ubuntu 14.04 and trying to launch ROS Simulator. I have this error: ImportError: No module named 'glob'...
Read more >
from glob import glob ImportError - Google Groups
I tried to comment out the eggs I installed recently but still the same.. Any idea? New python executable in simple2/bin/python2. Also creating...
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