nschaetti / EchoTorch

A Python toolkit for Reservoir Computing and Echo State Network experimentation based on pyTorch. EchoTorch is the only Python module available to easily create Deep Reservoir Computing models.
https://nschaetti.github.io/echotorch.github.io/
GNU General Public License v3.0
441 stars 117 forks source link

Why I can't import Echotorch #19

Open imhithanks opened 3 years ago

imhithanks commented 3 years ago

Why I can't import Echotorch?What's wrong with module 'datasets'? This problem disturbs me for days. Thank you for your help

import echotorch.nn.reservoir as etrs import echotorch.utils import echotorch.utils.matrix_generation as mg


ModuleNotFoundError Traceback (most recent call last)

in () ----> 1 import echotorch.nn.reservoir as etrs 2 import echotorch.utils 3 import echotorch.utils.matrix_generation as mg ~/anaconda3/lib/python3.7/site-packages/echotorch/__init__.py in () 3 4 # Imports ----> 5 import datasets 6 import models 7 import nn ModuleNotFoundError: No module named 'datasets'
dimitrisdermanis commented 3 years ago

Having the same problem here. This is an attempt to debug. I only import the library and try to initialize an object.

import torch
import echotorch.nn as etnn

esn = etnn.LiESN()

The response is weird.

Traceback (most recent call last):
  File "test.py", line 2, in <module>
    import echotorch.nn as etnn
  File "~/.local/lib/python3.7/site-packages/echotorch/__init__.py", line 5, in <module>
    import datasets
ModuleNotFoundError: No module named 'datasets'

Any ideas on what to do?

slarson commented 3 years ago

I had a similar problem on the dev branch, but it was resolved when I worked with the latest released version: https://github.com/nschaetti/EchoTorch/releases/tag/202006291

What version did you see this on?

dimitrisdermanis commented 3 years ago
$ pip show echotorch
Name: EchoTorch
Version: 0.1.1
Summary: A Python toolkit for Reservoir Computing.
Home-page: UNKNOWN
Author: Nils Schaetti
Author-email: nils.schaetti@unine.ch
License: GPLv3
Location: /home/dimitris/PycharmProjects/echo_torch/lib/python3.7/site-packages
Requires: torch, numpy, torchvision
Required-by: 

Seems like an older version, but this is the one that I 've installed using pip yesterday.

Works when used the latest release from github

nschaetti commented 3 years ago

Hi,

I created a new branch for the test release and released a 0.2.3 version after running succesfully all tests.

Can someone test the new branch ? pip install -i https://test.pypi.org/simple/ EchoTorch

Regards,

Nils

dimitrisdermanis commented 3 years ago

works for me so far Some of the examples have errors but once they are fixed, examples run as well.