simplegist icon indicating copy to clipboard operation
simplegist copied to clipboard

Import broken on Python 3.7.6

Open samuela opened this issue 4 years ago • 5 comments

I just pip installed simplegist in a fresh virtualenv and Python 3.7.6 but the basic import from the README is broken:

In [1]: from simplegist import Simplegist
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-cfc3872d7f2b> in <module>
----> 1 from simplegist import Simplegist

ImportError: cannot import name 'Simplegist' from 'simplegist' (/Users/skainswo/deletemevenv/lib/python3.7/site-packages/simplegist/__init__.py)

In [2]: from simplegist import simplegist
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-e41158dccbbe> in <module>
----> 1 from simplegist import simplegist

~/deletemevenv/lib/python3.7/site-packages/simplegist/simplegist.py in <module>
      2 import json
      3
----> 4 from config import USERNAME, API_TOKEN, BASE_URL, GIST_URL
      5
      6 from mygist import Mygist

ModuleNotFoundError: No module named 'config'

In [3]:

samuela avatar Apr 09 '20 01:04 samuela

I have the same error :/

jontobonto avatar Oct 31 '20 00:10 jontobonto

slightly different here:

ImportError                               Traceback (most recent call last)
<ipython-input-16-eefd19b81720> in <module>()
----> 1 from simplegist import Simplegist
      2 # GHgist = Simplegist(username='suredream',api_token='8cb2259725fddaeb22368976f9f30b793280a495')
      3 # GHgist.profile().listall()

ImportError: cannot import name 'Simplegist'

suredream avatar Jan 04 '21 03:01 suredream

Same here

jonaslsaa avatar Mar 03 '21 21:03 jonaslsaa

Same here

iamadiscordbot avatar Jun 05 '21 15:06 iamadiscordbot

fixed ?

UwU-VPN-db avatar Aug 29 '24 17:08 UwU-VPN-db