Giter VIP home page Giter VIP logo

Comments (5)

alireza-nasiri avatar alireza-nasiri commented on September 4, 2024

I am not using that library and I run the code in python 3.7 which doesn't have that library. Maybe if you can copy the error code here to see which line of the code causes it, I can help you better.

from soundclr.

Lin-xuejuan-an avatar Lin-xuejuan-an commented on September 4, 2024

Error:C:\Users\52937\Anaconda3\python.exe "F:/123/Contrastive Learning/code/SoundCLR-main/SoundCLR-main/train_contrastiveLoss.py"
Traceback (most recent call last):
File "F:/123/Contrastive Learning/code/SoundCLR-main/SoundCLR-main/train_contrastiveLoss.py", line 21, in
import dataset_ESC50 as dataset
File "F:\123\Contrastive Learning\code\SoundCLR-main\SoundCLR-main\dataset_ESC50.py", line 5, in
import transforms
File "C:\Users\52937\Anaconda3\lib\site-packages\transforms_init_.py", line 1, in
from .safe_html import safe_html, bodyfinder
File "C:\Users\52937\Anaconda3\lib\site-packages\transforms\safe_html.py", line 1, in
from sgmllib import SGMLParser, SGMLParseError
ModuleNotFoundError: No module named 'sgmllib'

Process finished with exit code 1

  1. import dataset_ESC50 as dataset
  2. import transforms
  3. from .safe_html import safe_html, bodyfinder
  4. from sgmllib import SGMLParser, SGMLParseError
    These are four lines of code that indicate errors.

Looking forward to your reply !

from soundclr.

alireza-nasiri avatar alireza-nasiri commented on September 4, 2024

I updated couple of the lines including line 5 in dataset_ESC50.py. I changed "import transforms" to "from utils import transforms". I think this should solve the error that you are getting. I also made couple of updates in other import commands in the code.

Please let me know if changing the import commands take care of this issue.

from soundclr.

Lin-xuejuan-an avatar Lin-xuejuan-an commented on September 4, 2024

Thank you very much. This problem has been solved !

from soundclr.

alireza-nasiri avatar alireza-nasiri commented on September 4, 2024

Great, thanks for noticing this issue.

from soundclr.

Related Issues (6)

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.