I am trying to do make install, but I keep getting an error. I already tried following this answer: Can't install via pip .
I get the below error:
C:\Python33>pip install envoy
Downloading/unpacking envoy
Downloading envoy-0.0.2.tar.gz
Running setup.py egg_info for package envoy
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\pom\appdata\local\temp\pip_build_pom\envoy\setup.py", line 6, in <module>
import envoy
File ".\envoy\__init__.py", line 1, in <module>
from core import *
ImportError: No module named 'core'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\pom\appdata\local\temp\pip_build_pom\envoy\setup.py", line 6, in <module>
import envoy
File ".\envoy\__init__.py", line 1, in <module>
from core import *
ImportError: No module named 'core'
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
c:\users\pom\appdata\local\temp\pip_build_pom\envoy
Storing complete log in C:\Users\pom\pip\pip.log
Related
When I try to import gensim, I get the below error:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\gensim\models\fasttext.py", line 264, in <module>
from gensim.models.fasttext_corpusfile import train_epoch_sg, train_epoch_cbow
ImportError: DLL load failed while importing fasttext_corpusfile: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\gensim\__init__.py", line 11, in <module>
from gensim import parsing, corpora, matutils, interfaces, models, similarities, utils # noqa:F401
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\gensim\models\__init__.py", line 22, in <module>
from .fasttext import FastText # noqa:F401
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\gensim\models\fasttext.py", line 266, in <module>
raise utils.NO_CYTHON
RuntimeError: Compiled extensions are unavailable. If you've installed from a package, ask the package maintainer to include compiled extensions. If you're building Gensim from source yourself, install Cython and a C compiler, and then run `python setup.py build_ext --inplace` to retry.
My computer is Windows Server 2022 Data Center, python is 3.8.10, gensim is 4.2.0.
How can I solve this problem? Thank you for your help.
I re-installed gensim (gensim-4.2.0-cp39-cp39-win_amd64.whl) from https://pypi.org/project/gensim/#files, but still had the above problem.
I have requirement where I need to use pandas dataframe attribute of Explode and json_normalize. It seems by default python glue shell runs 0.24.2 pandas version.
I was able to use .whl version pandas-0.23.0-cp36-cp36m-manylinux1_x86_64.whl.When I tried providing .whl files for pandas version by pandas-0.25.3-cp35-cp35m-manylinux1_x86_64.whl,pandas-1.0.0-cp38-cp38-manylinux1_x86_64.whl,pandas-1.0.3-cp38-cp38-manylinux1_x86_64.whl which all are failing to load with Below error message:
Traceback (most recent call last):
File "/glue/lib/installation/pandas/__init__.py", line 32, in <module>
from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
File "/glue/lib/installation/pandas/_libs/__init__.py", line 3, in <module>
from .tslibs import (
File "/glue/lib/installation/pandas/_libs/tslibs/__init__.py", line 3, in <module>
from .conversion import localize_pydatetime, normalize_date
ModuleNotFoundError: No module named 'pandas._libs.tslibs.conversion'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/runscript.py", line 211, in <module>
runpy.run_path(temp_file_path, run_name='__main__')
File "/usr/local/lib/python3.6/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/usr/local/lib/python3.6/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/glue-python-scripts-maew3inn/EPP_Json_To_CSV.py", line 1, in <module>
File "/glue/lib/installation/pandas/__init__.py", line 37, in <module>
f"C extension: {module} not built. If you want to import "
ImportError: C extension: No module named 'pandas._libs.tslibs.conversion' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/runscript.py", line 230, in <module>
raise e_type(e_value).with_traceback(new_stack)
File "/tmp/glue-python-scripts-maew3inn/EPP_Json_To_CSV.py", line 1, in <module>
File "/glue/lib/installation/pandas/__init__.py", line 37, in <module>
f"C extension: {module} not built. If you want to import "
ImportError: C extension: No module named 'pandas._libs.tslibs.conversion' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
Currently, you cannot import pandas library to Glue. AWS GLUE DOCUMENTATION
Only pure Python libraries can be used. Libraries that rely on C
extensions, such as the pandas Python Data Analysis Library, are not
yet supported.
It's a duplicate question: Use AWS Glue Python with NumPy and Pandas Python Packages
I'm trying to execute a script that uses Scikit and autosklearn on Ubuntu 20, python 3.8
I have followed the instructions to install sckit https://scikit-learn.org/stable/install.html and autosklearn installation https://automl.github.io/auto-sklearn/master/installation.html
However I'm getting
Exception ignored in: <function AutoML.__del__ at 0x7f37c6ee9160>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/autosklearn/automl.py", line 1380, in __del__
self._backend.context.delete_directories(force=False)
AttributeError: 'AutoMLClassifier' object has no attribute '_backend'
Traceback (most recent call last):
File "myscript.py", line 261, in <module>
import model_snow_magn_only_package
File "/myfolder/myscript.py", line 150, in <module>
clf = pickle.load(open(model_name, "rb"))
ModuleNotFoundError: No module named 'sklearn.metrics.classification'
I have tried other releases of these packages but without success.
Does anyone have an idea of which releases/packages to install to make it work?
I'm trying to get wxpython to work with python3.7.0 (32)
I installed it using "pip install wxpython", so I assume that there no compatibility problems.
this is the result:
Traceback (most recent call last):
File "E:\Scratch\Test.py", line 9, in <module>
import wx
File "C:\Python37\wx\__init__.py", line 17, in <module>
from wx.core import *
File "C:\Python37\wx\core.py", line 12, in <module>
from ._core import *
ModuleNotFoundError: No module named 'wx._core'
Any help appreciated. Thanks.
I'm trying to import theano and I'm getting an import error.
I've seen common issues with theano relate to not having g++, mingw, or libpython installed. I can confirm I have all three installed. g++ 4.7.0, mingw 4.7, libpython 2.1, and theano 1.0.1.
Any suggestions on what to chase down next? I'm a little stumped.
When I run a simple python (3.6) file trying to import theano I get the following:
You can find the C code in this temporary file: C:\Users\CAVEJO~1\AppData\Local\Temp\theano_compilation_error_1b3hfusl
Traceback (most recent call last):
File "C:\Users\Cave Johnson\AppData\Local\Programs\Python\Python36-32\lib\site-packages\theano\gof\lazylinker_c.py", line 75, in <module>
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Cave Johnson\AppData\Local\Programs\Python\Python36-32\lib\site-packages\theano\gof\lazylinker_c.py", line 92, in <module>
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Cave Johnson\AppData\Local\Programs\Python\Python36-32\Projects\Pandas\housing_prices.py", line 4, in <module>
import theano
File "C:\Users\Cave Johnson\AppData\Local\Programs\Python\Python36-32\lib\site-packages\theano\__init__.py", line 110, in <module>
from theano.compile import (
File "C:\Users\Cave Johnson\AppData\Local\Programs\Python\Python36-32\lib\site-packages\theano\compile\__init__.py", line 12, in <module>
from theano.compile.mode import *
File "C:\Users\Cave Johnson\AppData\Local\Programs\Python\Python36-32\lib\site-packages\theano\compile\mode.py", line 11, in <module>
import theano.gof.vm
File "C:\Users\Cave Johnson\AppData\Local\Programs\Python\Python36-32\lib\site-packages\theano\gof\vm.py", line 673, in <module>
from . import lazylinker_c
File "C:\Users\Cave Johnson\AppData\Local\Programs\Python\Python36-32\lib\site-packages\theano\gof\lazylinker_c.py", line 127, in <module>
preargs=args)
File "C:\Users\Cave Johnson\AppData\Local\Programs\Python\Python36-32\lib\site-packages\theano\gof\cmodule.py", line 2359, in compile_str
(status, compile_stderr.replace('\n', '. ')))
Exception: Compilation failed (return status=1): The system cannot find the path specified.
.
I had the same issue, and it came down to missing dependencies.
This seemed to be the key for me:
conda install numpy scipy mkl-service libpython m2w64-toolchain
conda install -c conda-forge blas
See https://github.com/Theano/Theano/issues/6532 or more details.