Giter Club home page Giter Club logo

Comments (4)

operatorequals avatar operatorequals commented on May 17, 2024

from httpimport.

ricardofrantz avatar ricardofrantz commented on May 17, 2024

Hi, I tried updating to the latest version 1.1.0 in Google Collab and still have the error, but still outside Google Colab it works fine...

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Requirement already satisfied: httpimport in /usr/local/lib/python3.9/site-packages (1.1.0)
Python 3.9.1
WARNING:httpimport:[!] Using non HTTPS URLs ('http://localhost:8000//') can be a security hazard!
DEBUG:httpimport:FINDER=================
DEBUG:httpimport:[!] Searching diff_matrix
DEBUG:httpimport:[!] Path is None
INFO:httpimport:[@] Checking if in declared remote module names >
INFO:httpimport:[-] Not found!
DEBUG:httpimport:FINDER=================
DEBUG:httpimport:[!] Searching diff_matrix
DEBUG:httpimport:[!] Path is None
INFO:httpimport:[@] Checking if in declared remote module names >
INFO:httpimport:[-] Not found!
DEBUG:httpimport:FINDER=================
DEBUG:httpimport:[!] Searching diff_matrix
DEBUG:httpimport:[!] Path is None
INFO:httpimport:[@] Checking if in declared remote module names >
INFO:httpimport:[-] Not found!
DEBUG:httpimport:FINDER=================
DEBUG:httpimport:[!] Searching diff_matrix
DEBUG:httpimport:[!] Path is None
INFO:httpimport:[@] Checking if in declared remote module names >
INFO:httpimport:[@] Checking if built-in >
INFO:httpimport:[@] Checking if it is name repetition >
INFO:httpimport:[*]Module/Package 'diff_matrix' can be loaded!
DEBUG:httpimport:LOADER=================
DEBUG:httpimport:[+] Loading diff_matrix
DEBUG:httpimport:[+] Trying to import as package from: 'http://localhost:8000//diff_matrix/__init__.py'
INFO:httpimport:[-] 'diff_matrix' is not a package:
DEBUG:httpimport:[+] Trying to import as module from: 'http://localhost:8000//diff_matrix.py'
INFO:httpimport:[-] 'diff_matrix' is not a module:
WARNING:httpimport:[!] 'diff_matrix' not found in HTTP repository. Moving to next Finder.
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
[<ipython-input-87-5acccd7888cb>](https://localhost:8080/#) in <module>
     11 url = "https://gist.githubusercontent.com/ricardofrantz/96ee9d9fc253c2af30b0b9d6405f35ef/raw/32a239c770c123cb3bfc98d1287a612ded4b4eb5"
     12 with httpimport.remote_repo(url):
---> 13     import diff_matrix as df
     14 # L = df.diff_matrix()
     15 # print(L)

3 frames
/usr/lib/python3.8/importlib/_bootstrap.py in _load_backward_compatible(spec)

KeyError: 'diff_matrix'

from httpimport.

operatorequals avatar operatorequals commented on May 17, 2024

Looks like you still have an older version loaded. The current version (1.1.0) does not contain such log messages at all!

$ grep 'FINDER=================' httpimport.py
$ grep __version__ httpimport.py
__version__ = '1.1.0'
""".format(version=__version__, homepage=__github__)

Try:

>>> import httpimport
>>> httpimport.__version__
???

to solve the mystery.

from httpimport.

operatorequals avatar operatorequals commented on May 17, 2024

I'm closing this issue for now. If your problem is not solved feel free to re-open it!

from httpimport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.