abdulfatir / abdulfatir/twitter-sentiment-analysis
error in xgboost file
- Linguagem predominante
- Python
- Estrelas
- 1.7k
- Forks
- 601
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
hello sir,
sir xgboost file is showing error
File "C:\Users\win10\Desktop\twitter-sentiment-analysis-master\code\xgboost.py", line 4, in
from xgboost import XGBClassifier
File "C:\Users\win10\Desktop\twitter-sentiment-analysis-master\code\xgboost.py", line 4, in
from xgboost import XGBClassifier
ImportError: cannot import name 'XGBClassifier' from partially initialized module 'xgboost' (most likely due to a circular import) (C:\Users\win10\Desktop\twitter-sentiment-analysis-master\code\xgboost.py)
and when i change the file name its showing error
File "C:\Users\win10\Desktop\twitter-sentiment-analysis-master\code\xgbost.py", line 4, in
from xgboost import XGBClassifier
File "C:\Users\win10\anaconda3\lib\site-packages\xgboost\_init_.py", line 11, in
from .core import DMatrix, Booster
File "C:\Users\win10\anaconda3\lib\site-packages\xgboost\core.py", line 115, in
_LIB = _load_lib()
File "C:\Users\win10\anaconda3\lib\site-packages\xgboost\core.py", line 109, in _load_lib
lib = ctypes.cdll.LoadLibrary(lib_path[0])
File "C:\Users\win10\anaconda3\lib\ctypes\_init_.py", line 451, in LoadLibrary
return self._dlltype(name)
File "C:\Users\win10\anaconda3\lib\ctypes\_init.py", line 373, in __init_
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
The error is a circular import because the user's script is named xgboost.py, which conflicts with the xgboost library. The fix is to rename the script to something else, like train_xgboost.py. Also, the Windows error suggests a possible library installation issue. Check the repository's code directory for the xgboost.py file and verify the xgboost library is correctly installed for the user's system.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Domínio
- machine-learning, tooling
- Tipo de issue
- Bug
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100