I tried to install that install Caffe Tutorial, but I am block at this line in the tuto: ./tools/demo.py
I havre this error message:
MacBook-Pro-de-OlostA:fast-rcnn OlostA$ ./tools/demo.py
Traceback (most recent call last):
File "./tools/demo.py", line 19, in <module>
from fast_rcnn.config import cfg
File "/Users/OlostA/Technologies/fast-rcnn/tools/../lib/fast_rcnn/__init__.py", line 9, in <module>
from . import train
File "/Users/OlostA/Technologies/fast-rcnn/tools/../lib/fast_rcnn/train.py", line 10, in <module>
import caffe
File "/Users/OlostA/Technologies/fast-rcnn/tools/../caffe-fast-rcnn/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver
File "/Users/OlostA/Technologies/fast-rcnn/tools/../caffe-fast-rcnn/python/caffe/pycaffe.py", line 13, in <module>
from ._caffe import Net, SGDSolver
ImportError: No module named _caffe
Thanks in advance.
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
I've added "C:\Users\sj\anaconda3\Scripts" to System environment variable list, but I got the following result.
C:\Users\sj>jupyter-lab
Traceback (most recent call last):
File "C:\Users\sj\anaconda3\lib\site-packages\jupyter_server\services\sessions\sessionmanager.py", line 8, in <module>
import sqlite3
File "C:\Users\sj\anaconda3\lib\sqlite3\__init__.py", line 57, in <module>
from sqlite3.dbapi2 import *
File "C:\Users\sj\anaconda3\lib\sqlite3\dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: DLL load failed while importing _sqlite3: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\sj\anaconda3\Scripts\jupyter-lab-script.py", line 5, in <module>
from jupyterlab.labapp import main
File "C:\Users\sj\anaconda3\lib\site-packages\jupyterlab\labapp.py", line 13, in <module>
from jupyter_server.serverapp import flags
File "C:\Users\sj\anaconda3\lib\site-packages\jupyter_server\serverapp.py", line 83, in <module>
from jupyter_server.services.sessions.sessionmanager import SessionManager
File "C:\Users\sj\anaconda3\lib\site-packages\jupyter_server\services\sessions\sessionmanager.py", line 11, in <module>
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'
Could anyone help me to fix this and make "jupyter-lab" and "jupyter-notebook" global?
I have tried by installing spacy in new virtual environment as well just in case if there are any module version clashes but still gives the same error upon doing the spacy import
import spacy
Also tried with downgrading of the spacy version to 2.2.2.
Error Log:
Traceback (most recent call last):
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/catalogue.py", line 8, in <module>
import importlib.metadata as importlib_metadata
ModuleNotFoundError: No module named 'importlib.metadata'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/testUser/Desktop/ml/test-project/src/EmailParser.py", line 3, in <module>
import spacy
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/spacy/__init__.py", line 10, in <module>
from thinc.neural.util import prefer_gpu, require_gpu
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/thinc/__init__.py", line 8, in <module>
from ._registry import registry
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/thinc/_registry.py", line 1, in <module>
import catalogue
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/catalogue.py", line 10, in <module>
import importlib_metadata
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 16, in <module>
from ._compat import (
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/importlib_metadata/_compat.py", line 115, in <module>
email.message_from_string
AttributeError: module 'email' has no attribute 'message_from_string'
I try to use cx_freeze build python3.6 + selenium to .exe. when I run .exe file got this traceback.
Traceback (most recent call last):
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run
module.run()
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run
exec(code, m.__dict__)
File "tx66.py", line 1, in <module>
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\__init__.py", line 18, in <module>
from .firefox.webdriver import WebDriver as Firefox # noqa
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 21, in <module>
import httplib as http_client
ModuleNotFoundError: No module named 'httplib'
Traceback (most recent call last):
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 19, in <module>
import http.client as http_client
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\http\__init__.py", line 1, in <module>
from enum import IntEnum
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\enum.py", line 2, in <module>
from types import MappingProxyType, DynamicClassAttribute
ImportError: cannot import name 'MappingProxyType'
In my code, I just import webdriver and used chromedriver not firefox.
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.