dmbee / seglearn

Python module for machine learning time series:
https://dmbee.github.io/seglearn/
BSD 3-Clause "New" or "Revised" License
571 stars 63 forks source link

pip install broken #56

Closed Betaglutamate closed 3 years ago

Betaglutamate commented 3 years ago

Description When installing seglearn both via pip install seglearn and by cloning github repo as described I encounter an error trying to load the package in a clean python environment.

steps to reproduce

  1. create clean environment
    $ conda activate test
    $ pip install seglearn matplotlib tensorflow
  2. try to activate seglearn in python
    
    import matplotlib.pyplot as plt
    from tensorflow.python.keras.layers import Dense, LSTM, Conv1D
    from tensorflow.python.keras.models import Sequential
    from tensorflow.python.keras.wrappers.scikit_learn import KerasClassifier
    from sklearn.model_selection import train_test_split

from seglearn.datasets import load_watch from seglearn.pipe import Pype from seglearn.transform import Segment```

  1. error output
    
    ---------------------------------------------------------------------------
    ModuleNotFoundError                       Traceback (most recent call last)
    ~/OneDrive/for JingJin/seglearn.py in 
      5 from tensorflow.python.keras.wrappers.scikit_learn import KerasClassifier
      6 from sklearn.model_selection import train_test_split
    ----> 7 from seglearn.datasets import load_watch
      8 from seglearn.pipe import Pype
      9 from seglearn.transform import Segment

~/OneDrive/for JingJin/seglearn.py in 6 from sklearn.model_selection import train_test_split 7 ----> 8 from seglearn.datasets import load_watch 9 from seglearn.pipe import Pype 10 from seglearn.transform import Segment

ModuleNotFoundError: No module named 'seglearn.datasets'; 'seglearn' is not a package



Thank you very much for your help.
Betaglutamate commented 3 years ago

Retried the procedure and now it works. Unclear what the issue was. I removed the environment and created a new one.