When I run a project used Pytorch I came up with this error:
Traceback (most recent call last):
File "train_drnet.py", line 10, in <module>
import utils
File "/home/muse/drnet-py/utils.py", line 18, in <module>
from data.kth import KTH
File "/home/muse/drnet-py/data/kth.py", line 7, in <module>
from torch.utils.serialization import load_lua
ModuleNotFoundError: No module named 'torch.utils.serialization'
how to solve this,please?
I think it was removed from Pytorch about a year ago, you can try tourch file instead - https://github.com/bshillingford/python-torchfile
Related
i'm trying install https://github.com/eth0izzle/bucket-stream in homebrew hyper not vs code or similiar , but each time i write an order it gives this error
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/bin/pip", line 5, in <module>
from pip import main
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/__init__.py", line 14, in <module>
from pip.utils import get_installed_distributions, get_prog
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/utils/__init__.py", line 27, in <module>
from pip._vendor import pkg_resources
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pkg_resources/__init__.py", line 32, in <module>
import symbol
ModuleNotFoundError: No module named 'symbol'
i tried everything online ,
No Module Named 'Symbol'
https://www.roseindia.net/answers/viewqa/pythonquestions/231919-ModuleNotFoundError-No-module-named-symbols.html
Can somebody help me with this? I am using Python 3.8 on Windows 10 and suddenly got this error with SKIMAGE module :/
What could it be? Something about C++?
Traceback (most recent call last):
File "board_detection.py", line 6, in <module>
import skimage
File "C:\Users\joao_\AppData\Local\Programs\Python\Python38\lib\site-packages\skimage\__init__.py", line 125, in <module>
from .util.dtype import (img_as_float32,
File "C:\Users\joao_\AppData\Local\Programs\Python\Python38\lib\site-packages\skimage\util\__init__.py", line 17, in <module>
from ._map_array import map_array
File "C:\Users\joao_\AppData\Local\Programs\Python\Python38\lib\site-packages\skimage\util\_map_array.py", line 2, in <module>
from ._remap import _map_array
ImportError: DLL load failed while importing _remap: the specific module could not found
I cloned a repo from github
I keep getting this error when I try running the code:
Traceback (most recent call last):
File "test.py", line 1, in <module>
import api.py
File "C:\xampp\htdocs\projects\mf\mf-platform-bse\mf-platform-bse\api.py", line 10, in <module>
from models.transactions import TransactionBSE, TransactionXsipBSE, TransResponseBSE, Transaction, PaymentLinkBSE
File "C:\xampp\htdocs\projects\mf\mf-platform-bse\mf-platform-bse\models\transactions.py", line 4, in <module>
from funds import SchemePlan, FundScheme
ImportError: No module named 'funds'
Here is my folder structure inside the models folder
While attempting to run jupyter notebook in python3.6.3 on my gnome terminal I get the following output, running on UBUNTU:
Traceback (most recent call last):
File "/home/willem/.local/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in <module>
import sqlite3
File "/usr/local/lib/python3.6/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.6/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/willem/.local/bin/jupyter-notebook", line 7, in <module>
from notebook.notebookapp import main
File "/home/willem/.local/lib/python3.6/site-packages/notebook/notebookapp.py", line 81, in <module>
from .services.sessions.sessionmanager import SessionManager
File "/home/willem/.local/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in <module>
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'
However, the module sqlite3 is present in my python3.6.3 directory. Which makes the problem rather vague.
Any suggestions for this problem to be fixed will be greatly appreciated
I am testing some chatbots from Github, I seem to get the following error whenever I try running chatbots using tensorflow.
after typing python train.py
Traceback (most recent call last):
File "train.py", line 8, in <module>
from tf_seq2seq_chatbot.lib.train import train
File "C:\Users\S\Downloads\ChatBot-master\ChatBot-master\tf_seq2seq_chatbot\lib\train.py", line 14, in <module>
from tf_seq2seq_chatbot.lib.seq2seq_model_utils import create_model
File "C:\Users\S\Downloads\ChatBot-master\ChatBot-master\tf_seq2seq_chatbot\lib\seq2seq_model_utils.py", line 11, in <module>
from tf_seq2seq_chatbot.lib import seq2seq_model
File "C:\Users\S\Downloads\ChatBot-master\ChatBot-master\tf_seq2seq_chatbot\lib\seq2seq_model.py", line 28, in <module>
from tensorflow.models.rnn.translate import data_utils
ImportError: No module named 'tensorflow.models'
Source https://github.com/AhmedAbdalazeem/ChatBot
You need to install the tensorflow.models repository.