Closed matmunn closed 1 year ago
That's weird. I can't reproduce on Ubuntu 16.04 and both Python 2.7 and Python 3.5.
Which Python version do you have?
It's being built on Travis CI, in a docker container based on an ubuntu image with python 2.7.14
I don't know what to do. I am unable to trigger this error.
What is the exact workflow that leads to this error?
I was using the maya library which uses pendulum for parsing a bunch of dates, it failed during the pip install
phase while trying to build pendulum.
From look at the stack trace it seems to be creating all the necessary files but then fails in a further step when trying to copy them all again.
I'll close this for now while I poke around and see if I can find a possible fix.
Keep me posted.
Version 1.4.3 was the first to be released using poetry so something might be broken even though I didn't experience issues on my end.
Same issue here, doing a pip install pendulum==1.5.1
(and 1.4.3
) fails, but 1.4.2
was installed successfully.
This is on Debian Wheezy, Python 2.7.3
virtualenv with pip==10.0.1
(setuptools
is installed)
Last lines of the installation:
copying pendulum/lang/et.py -> build/lib.linux-x86_64-2.7/pendulum/lang
creating build/lib.linux-x86_64-2.7/pendulum/mixins
copying pendulum/mixins/interval.py -> build/lib.linux-x86_64-2.7/pendulum/mixins
copying pendulum/mixins/default.py -> build/lib.linux-x86_64-2.7/pendulum/mixins
copying pendulum/mixins/__init__.py -> build/lib.linux-x86_64-2.7/pendulum/mixins
creating build/lib.linux-x86_64-2.7/pendulum/parsing
copying pendulum/parsing/parser.py -> build/lib.linux-x86_64-2.7/pendulum/parsing
copying pendulum/parsing/__init__.py -> build/lib.linux-x86_64-2.7/pendulum/parsing
creating build/lib.linux-x86_64-2.7/pendulum/parsing/exceptions
copying pendulum/parsing/exceptions/__init__.py -> build/lib.linux-x86_64-2.7/pendulum/parsing/exceptions
creating build/lib.linux-x86_64-2.7/pendulum/tz
copying pendulum/tz/transition_type.py -> build/lib.linux-x86_64-2.7/pendulum/tz
copying pendulum/tz/exceptions.py -> build/lib.linux-x86_64-2.7/pendulum/tz
copying pendulum/tz/local_timezone.py -> build/lib.linux-x86_64-2.7/pendulum/tz
copying pendulum/tz/timezone.py -> build/lib.linux-x86_64-2.7/pendulum/tz
copying pendulum/tz/transition.py -> build/lib.linux-x86_64-2.7/pendulum/tz
copying pendulum/tz/__init__.py -> build/lib.linux-x86_64-2.7/pendulum/tz
copying pendulum/tz/loader.py -> build/lib.linux-x86_64-2.7/pendulum/tz
copying pendulum/tz/timezone_info.py -> build/lib.linux-x86_64-2.7/pendulum/tz
error: can't copy 'pendulum/_extensions': doesn't exist or not a regular file
That's weird. I still can't reproduce.
And the archive structure is the same so there should not be difference in the behavior.
The only difference I can think of right now is that the generated setup.py
file no longer uses setuptools
but distutils
directly. I wonder if this could be the problem.
Which version of setuptools
do you have?
Ok. I just checked and the problem occurs only in you have setuptools<21.1.1
.
Even though the generated setup.py
does not use setuptools
directly, setuptools
monkey-patches distutils
.
Anyway, if you want it to work you will have to upgrade setuptools
: pip install -U setuptools
and it should work.
I was able to isolate the issue by downgrading pip to version 18.1 from 19.0.1 which was the Root Cause. Environment: Python version is 2.7.5 setuptool version is 40.8.0. pendulum version is 2.0.4
This worked for me. CentOS 7.5.1804 Python 2.7.5 setuptools 0.9.8 pip 18.1 pendulum 2.0.5
But if I upgraded to pip 19+, I got errors similar to these. Of note, I'm using an ancient version of setuptools. so setuptools seems to not be the issue.
Should be fixed in modern Python, setuptools and Pendulum versions
When building v1.4.3 as part of my CI flow I am presented with the following stack trace:
Reverting to v1.4.2 for now has resolved the problem.