TLSeparation / source

Source code of the TLSeparation Python package.
GNU General Public License v3.0
30 stars 16 forks source link

ModuleNotFoundError: No module named 'classification' #3

Open yeshwanth95 opened 4 years ago

yeshwanth95 commented 4 years ago

I'm trying to install the TLSeparation library in a conda (4.7.12) environment. I'm using pip to install the library within the conda environment having python 3.6. Although the installation occurs, when I try to import the library from within a python script, I get the following error:

Python 3.6.10 |Anaconda, Inc.| (default, Jan 7 2020, 21:14:29) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import tlseparation Traceback (most recent call last): File "", line 1, in File "/home/vr-lab/anaconda3/envs/tlsep_env/lib/python3.6/site-packages/tlseparation/init.py", line 30, in import classification ModuleNotFoundError: No module named 'classification'

I'm using Ubuntu 16.04 LTS. @mattbv @philwilkes Kindly provide me assistance in resolving this issue.

orchid00 commented 4 years ago

hi, same issue. just installed pip install tlseparation run

import tlseparation
ModuleNotFoundError: No module named 'classification'

run pip install classification

import tlseparation
ModuleNotFoundError: No module named 'utility'

run pip install utility

and again

import tlseparation
ModuleNotFoundError: No module named 'utility'

using Python 3.6.9 on Ubuntu 18.04 ping @mattbv

philwilkes commented 4 years ago

Owing to the way modules are referenced within TLSeparation you will need to run in a Python 2 environment.

I have a conda environment specifically for running TLSeparation. Something like:

conda create --name tlseparation python=2 as well as dependencies (see requirements.txt)

or you could then do a pip install tlseparation inside the new environment (although this is not the best way to install dependencies).