Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install pmdarima with python 3.7 #63

Closed
rvenghat opened this issue Dec 7, 2018 · 10 comments
Closed

Unable to install pmdarima with python 3.7 #63

rvenghat opened this issue Dec 7, 2018 · 10 comments
Labels
python 3.7 Related to Python 3.7 compatibility
Milestone

Comments

@rvenghat
Copy link

rvenghat commented Dec 7, 2018

pip install pmdarima --user
Collecting pmdarima
Using cached https://files.pythonhosted.org/packages/dd/43/d204f675a1258e60fae438205c7019ad4909622982330925a668c7f1f9ae/pmdarima-1.0.0.tar.gz
Requirement already satisfied: Cython>=0.23 in /home/rejuna15/.local/lib/python3.7/site-packages (from pmdarima) (0.27.3)
Requirement already satisfied: numpy>=1.10 in /home/rejuna15/.local/lib/python3.7/site-packages (from pmdarima) (1.15.4)
Requirement already satisfied: pandas>=0.19 in /home/rejuna15/.local/lib/python3.7/site-packages (from pmdarima) (0.23.4)
Requirement already satisfied: scikit-learn>=0.17 in /home/rejuna15/.local/lib/python3.7/site-packages (from pmdarima) (0.20.1)
Requirement already satisfied: scipy>=0.9 in /home/rejuna15/.local/lib/python3.7/site-packages (from pmdarima) (1.1.0)
Requirement already satisfied: statsmodels>=0.9.0 in /home/rejuna15/.local/lib/python3.7/site-packages (from pmdarima) (0.9.0)
Requirement already satisfied: python-dateutil>=2.5.0 in /home/rejuna15/.local/lib/python3.7/site-packages (from pandas>=0.19->pmdarima) (2.7.5)
Requirement already satisfied: pytz>=2011k in /usr/lib/python3/dist-packages (from pandas>=0.19->pmdarima) (2018.3)
Requirement already satisfied: patsy in /home/rejuna15/.local/lib/python3.7/site-packages (from statsmodels>=0.9.0->pmdarima) (0.5.1)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.5.0->pandas>=0.19->pmdarima) (1.11.0)
Building wheels for collected packages: pmdarima
Running setup.py bdist_wheel for pmdarima ... error
Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;file='/tmp/pip-install-ioa_i29w/pmdarima/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-knh_gr9k --python-tag cp37:
Partial import of pmdarima during the build process.
Requirements: ['numpy>=1.10', 'Cython>=0.23', 'scipy>=0.9', 'scikit-learn>=0.17', 'pandas>=0.19', 'statsmodels>=0.9.0']
Adding extra setuptools args
/usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-ioa_i29w/pmdarima/setup.py", line 248, in
do_setup()
File "/tmp/pip-install-ioa_i29w/pmdarima/setup.py", line 244, in do_setup
setup(**metadata)
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "/tmp/pip-install-ioa_i29w/pmdarima/setup.py", line 163, in configuration
config.add_subpackage(DISTNAME)
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/distutils/misc_util.py", line 1037, in add_subpackage
caller_level = 2)
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/distutils/misc_util.py", line 1006, in get_subpackage
caller_level = caller_level + 1)
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/distutils/misc_util.py", line 919, in _get_configuration_from_setup_py
('.py', 'U', 1))
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/compat/py3k.py", line 122, in npy_load_module
return importlib.machinery.SourceFileLoader(name, fn).load_module()
File "", line 407, in _check_name_wrapper
File "", line 907, in load_module
File "", line 732, in load_module
File "", line 265, in _load_module_shim
File "", line 696, in _load
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "pmdarima/setup.py", line 11, in
from pmdarima._build_utils import maybe_cythonize_extensions
ModuleNotFoundError: No module named 'pmdarima._build_utils'


Failed building wheel for pmdarima
Running setup.py clean for pmdarima
Failed to build pmdarima
Installing collected packages: pmdarima
Running setup.py install for pmdarima ... error
Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;file='/tmp/pip-install-ioa_i29w/pmdarima/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-37l5bnlx/install-record.txt --single-version-externally-managed --compile --user --prefix=:
Partial import of pmdarima during the build process.
Requirements: ['numpy>=1.10', 'Cython>=0.23', 'scipy>=0.9', 'scikit-learn>=0.17', 'pandas>=0.19', 'statsmodels>=0.9.0']
Adding extra setuptools args
/usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-ioa_i29w/pmdarima/setup.py", line 248, in
do_setup()
File "/tmp/pip-install-ioa_i29w/pmdarima/setup.py", line 244, in do_setup
setup(**metadata)
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "/tmp/pip-install-ioa_i29w/pmdarima/setup.py", line 163, in configuration
config.add_subpackage(DISTNAME)
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/distutils/misc_util.py", line 1037, in add_subpackage
caller_level = 2)
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/distutils/misc_util.py", line 1006, in get_subpackage
caller_level = caller_level + 1)
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/distutils/misc_util.py", line 919, in _get_configuration_from_setup_py
('.py', 'U', 1))
File "/home/rejuna15/.local/lib/python3.7/site-packages/numpy/compat/py3k.py", line 122, in npy_load_module
return importlib.machinery.SourceFileLoader(name, fn).load_module()
File "", line 407, in _check_name_wrapper
File "", line 907, in load_module
File "", line 732, in load_module
File "", line 265, in _load_module_shim
File "", line 696, in _load
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "pmdarima/setup.py", line 11, in
from pmdarima._build_utils import maybe_cythonize_extensions
ModuleNotFoundError: No module named 'pmdarima._build_utils'

----------------------------------------

Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;file='/tmp/pip-install-ioa_i29w/pmdarima/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-37l5bnlx/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-ioa_i29w/pmdarima/

Description

Works with python 3.6 but i need to know if support for 3.7 will be provided in the near future?

Steps/Code to Reproduce

pip install pmdarima with python version 3.7

Expected Results

Actual Results

Versions

Linux-4.15.0-42-generic-x86_64-with-Ubuntu-18.04-bionic
Python 3.7.1 (default, Oct 22 2018, 11:21:55)
[GCC 8.2.0]
NumPy 1.15.4
SciPy 1.1.0
Scikit-Learn 0.20.1
Statsmodels 0.9.0

@tgsmith61591
Copy link
Member

Duplicate of #44. I'll only leave it open since it's created so many open issues lately. This is an issue with cython on python 3.7. I can't guarantee when it will be fixed, but it probably won't be in version 1.1.0 (the upcoming).

@tgsmith61591 tgsmith61591 added the python 3.7 Related to Python 3.7 compatibility label Dec 7, 2018
@tgsmith61591
Copy link
Member

For context, see this Cython issue:

cython/cython#1978

@tgsmith61591
Copy link
Member

tgsmith61591 commented Dec 14, 2018

I understand your frustration. But keep in mind this is a free project and I do have a day job. Feel free to submit a PR if there's something you need immediately, otherwise I'll get to it as soon as my schedule (and the other feature requests I also get) allow.

If you do feel so inclined, a good place to start would be updating the Travis and Appveyor builds to include 3.7 variants so wheels are distributed on release.

And, I'll note, even though the linked issue was closed by the cython developers, you'll note about a dozen other projects have linked to that issue since then indicating the problem hasn't gone away.

Here is a guide on how to submit a PR if you'd like.

@tgsmith61591
Copy link
Member

Sorry for the email spam if you guys have been following this issue. #75 was merged into develop which means v1.1.0 will support Python 3.7 (coming in Jan). I'll leave this open until then.

@tgsmith61591
Copy link
Member

Fixed in #78

@preethijd
Copy link

Failed building wheel for pyramid-arima, python3.7 version. I read the above conversation it was dec 2018, you have mentioned use python 3.6.

Is any update for 3.7 or need to run pyramid-arima in 3.6?

@aaronreidsmith
Copy link
Member

@preethijd We do support Python 3.7, but we haven’t been under the pyramid-arima namespace for quite some time. Try pip install pmdarima

@RSwarnkar
Copy link

Hello there, I am facing similar error on Termux Android app while installing the pmdarima.
Attaching the error file. Can you please look into it when you have time.
error.txt

@tgsmith61591
Copy link
Member

@RSwarnkar this is a separate issue. The best practices in filing issues are to share only the relevant portions of a stack trace in the description (avoid attaching a file), as well as various system versions that we ask for in the issue template. In this case, knowing your system details is really important because it's building the package from source that seems to be causing the issue. Can you open a new issue with your system details and the stack trace as part of the description?

@RSwarnkar
Copy link

RSwarnkar commented Dec 3, 2019

@tgsmith61591 Sure would open new issue.
I would attach below details.

  • python packages installed
  • termux os info
  • apt list
  • non verbose pip error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python 3.7 Related to Python 3.7 compatibility
Projects
None yet
Development

No branches or pull requests

5 participants