AttributeError: 'module' object has no attribute 'extract'
Hello, I got this error. Can you help me to fix it?
/usr/bin/python2.7 /home/zqn/project/0724/gist.py
Traceback (most recent call last):
File "/home/zqn/project/0724/gist.py", line 1, in
Hello, sorry for my late reply.
- Can you show me full
gist.py? - Can you confirm that you completed all the installation steps without any error?
- Can you execute the following code and paste the result here?
import gist
print(dir(gist))
print(gist.__file__)
I got the same error.
Executing the code you provided returns:
print(dir(gist)) ['GistAPI', 'builtins', 'doc', 'file', 'name', 'package', 'path', 'version', 'gist'] print(gist.file) /Users/martinli/anaconda2/lib/python2.7/site-packages/gist/init.pyc
This is because the gist module you are using is a different one with same name, possibly here: https://pypi.org/project/gist/
Sorry for name collision as lear-gist-python has not been registered to PyPI.
Please uninstall the existing one or edit setup.py in this repo to make it to have different name.
Thanks a lot, another question, why the gist feature of an image is 960?
@zqnnn Please see here: https://github.com/tuttieee/lear-gist-python/blob/190126a06282bf3b62d2ce044a6daa3db240c1d5/gistmodule.c#L70-L75
The dimension can be different if n_blocks and orientations_per_scale (and n_scale) are changed while these params are fixed in the current version of this repo.
while these params are fixed in the current version of this repo.
Now gist.extract() can take nblocks and orientations_per_scale arguments.
Please see test.py about how to use those arguments.
This is because the
gistmodule you are using is a different one with same name, possibly here: https://pypi.org/project/gist/Sorry for name collision as lear-gist-python has not been registered to PyPI.
Please uninstall the existing one or edit
setup.pyin this repo to make it to have different name.
sorry, i meet the same problemand i still need your help,i haven't understand how to fix this problem.
@worksking
Oh, sorry, please ignore this sentence:
edit setup.py in this repo to make it to have different name.
Please just try to uninstall the existing gist module and then install this lear-gist-python again.
I mean, first uninstall gist by
$ pip uninstall gist