Giter Site home page Giter Site logo

Comments (4)

Hananel-Hazan avatar Hananel-Hazan commented on June 7, 2024

I'm unable to replicate this error, can you guide me how to replicate?

from bindsnet.

rafaelblevin821 avatar rafaelblevin821 commented on June 7, 2024

I'm unable to replicate this error, can you guide me how to replicate?

@Hananel-Hazan to replicate this error, you would need to install a fresh install of bindsnet using: pip install git+https://github.com/BindsNET/bindsnet.git and run pytest...

(bindsnet) [********@login1 [kelvin2] bindsnet]$ python3 -m pytest test
==================================================================== test session starts =====================================================================
platform linux -- Python 3.10.11, pytest-7.3.2, pluggy-1.2.0
rootdir: /users/********/bindsnet
collected 12 items / 3 errors

=========================================================================== ERRORS ===========================================================================
______________________________________________________ ERROR collecting test/analysis/test_analyzers.py ______________________________________________________
ImportError while importing test module '/users/********/bindsnet/test/analysis/test_analyzers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/mnt/scratch2/users/********/conda/envs/bindsnet/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/analysis/test_analyzers.py:6: in <module>
    from bindsnet.analysis.pipeline_analysis import MatplotlibAnalyzer, TensorboardAnalyzer
bindsnet/__init__.py:3: in <module>
    from bindsnet import (
bindsnet/datasets/__init__.py:2: in <module>
    from bindsnet.datasets.collate import time_aware_collate
bindsnet/datasets/collate.py:13: in <module>
    from torch._six import string_classes
E   ModuleNotFoundError: No module named 'torch._six'
______________________________________________________ ERROR collecting test/encoding/test_encoding.py _______________________________________________________
ImportError while importing test module '/users/dharkin/bindsnet/test/encoding/test_encoding.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/mnt/scratch2/users/********/conda/envs/bindsnet/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/encoding/test_encoding.py:3: in <module>
    from bindsnet.encoding import *
bindsnet/__init__.py:3: in <module>
    from bindsnet import (
bindsnet/datasets/__init__.py:2: in <module>
    from bindsnet.datasets.collate import time_aware_collate
bindsnet/datasets/collate.py:13: in <module>
    from torch._six import string_classes
E   ModuleNotFoundError: No module named 'torch._six'
________________________________________________________ ERROR collecting test/models/test_models.py _________________________________________________________
ImportError while importing test module '/users/dharkin/bindsnet/test/models/test_models.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/mnt/scratch2/users/********/conda/envs/bindsnet/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/models/test_models.py:1: in <module>
    from bindsnet.models import DiehlAndCook2015, TwoLayerNetwork
bindsnet/__init__.py:3: in <module>
    from bindsnet import (
bindsnet/datasets/__init__.py:2: in <module>
    from bindsnet.datasets.collate import time_aware_collate
bindsnet/datasets/collate.py:13: in <module>
    from torch._six import string_classes
E   ModuleNotFoundError: No module named 'torch._six'
================================================================== short test summary info ===================================================================
ERROR test/analysis/test_analyzers.py
ERROR test/encoding/test_encoding.py
ERROR test/models/test_models.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================ 3 errors in 72.48s (0:01:12) ================================================================

from bindsnet.

Hananel-Hazan avatar Hananel-Hazan commented on June 7, 2024

Thanks for elaborating.
I suspect that the installed BindsNET (3.1.2) and the version saved on the disk (running the tests) are not the same versions.
Can you please check this.

If you want to use the version on your disk, install it with pip install -e .

from bindsnet.

rafaelblevin821 avatar rafaelblevin821 commented on June 7, 2024

Hi @Hananel-Hazan, I think the issue was on my end. I was running pytest on the wrong installation folder. It now seems to be working fine.

from bindsnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.