softvar / simplegist

Advanced python wrapper for Github Gist API
https://pypi.python.org/pypi/simplegist
MIT License
64 stars 24 forks source link

Import broken on Python 3.7.6 #8

Open samuela opened 4 years ago

samuela commented 4 years ago

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]:
jontobonto commented 3 years ago

I have the same error :/

suredream commented 3 years ago

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'
jonaslsaa commented 3 years ago

Same here

iamadiscordbot commented 3 years ago

Same here

UwU-VPN-db commented 2 weeks ago

fixed ?