diging / tethne

Python module for bibliographic network analysis.
http://diging.github.io/tethne/
GNU General Public License v3.0
81 stars 32 forks source link

Tethne Install Error setup.py egg_info #178

Open adil1993 opened 6 years ago

adil1993 commented 6 years ago

I am getting error while installing tethne through pip

Collecting distribute (from slate->tethne) Using cached distribute-0.7.3.zip Complete output from command python setup.py egginfo: Traceback (most recent call last): File "", line 1, in File "/private/var/folders/7/0psy1jvd4jjd3ckc7btqc4cr0000gn/T/pip-build-d5l2l4t1/distribute/setuptools/init.py", line 2, in from setuptools.extension import Extension, Library File "/private/var/folders/7_/0psy1jvd4jjd3ckc7btqc4cr0000gn/T/pip-build-d5l2l4t1/distribute/setuptools/extension.py", line 5, in from setuptools.dist import _getunpatched File "/private/var/folders/7/0psy1jvd4jjd3ckc7btqc4cr0000gn/T/pip-build-d5l2l4t1/distribute/setuptools/dist.py", line 7, in from setuptools.command.install import install File "/private/var/folders/7_/0psy1jvd4jjd3ckc7btqc4cr0000gn/T/pip-build-d5l2l4t1/distribute/setuptools/command/init.py", line 8, in from setuptools.command import installscripts File "/private/var/folders/7/0psy1jvd4jjd3ckc7btqc4cr0000gn/T/pip-build-d5l2l4t1/distribute/setuptools/command/install_scripts.py", line 3, in from pkg_resources import Distribution, PathMetadata, ensuredirectory File "/private/var/folders/7/0psy1jvd4jjd3ckc7btqc4cr0000gn/T/pip-build-d5l2l4t1/distribute/pkg_resources.py", line 1518, in register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider) AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'

sshojiro commented 6 years ago

@adil1993 I have encountered the same error and am still working on fixing it. I thought pip install python-dotenv was helpful, as a similar discussion mentions: https://github.com/theskumar/python-dotenv/issues/113#issue-324759355. However, I couldn't fix this. The cause seems in pip install distribute. When you may find a way to solve, I would appreciate it to share it with me. Thank you in advance.

jdamerow commented 6 years ago

@adil1993 and @sshojiro, are you using Python 3 by any chance? It's not fully supported I believe. I did get your error when I ran pip3 install tethne. Installing the development version seemed to work fine though pip3 install tethne --pre.

sshojiro commented 6 years ago

@jdamerow Wow thank you for your comment, it was a great help to me and it worked! I'm looking forward to a stable version of the library for python3.