EchoTorch icon indicating copy to clipboard operation
EchoTorch copied to clipboard

Why I can't import Echotorch

Open imhithanks opened this issue 5 years ago • 6 comments

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'

imhithanks avatar Dec 30 '20 14:12 imhithanks

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?

dimitrisdermanis avatar Jan 13 '21 14:01 dimitrisdermanis

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?

slarson avatar Jan 13 '21 14:01 slarson

$ pip show echotorch
Name: EchoTorch
Version: 0.1.1
Summary: A Python toolkit for Reservoir Computing.
Home-page: UNKNOWN
Author: Nils Schaetti
Author-email: [email protected]
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

dimitrisdermanis avatar Jan 13 '21 15:01 dimitrisdermanis

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

nschaetti avatar Jan 22 '21 21:01 nschaetti

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

dimitrisdermanis avatar Jan 25 '21 10:01 dimitrisdermanis