-
Notifications
You must be signed in to change notification settings - Fork 3
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
Import fails in python >= 3.7 #3
Comments
Hi,
Thanks for notifying me. Ill check it out later and try and figure out
whats broken.
…On Tue, 14 Dec 2021, 13:52 Blindfreddy, ***@***.***> wrote:
I would like to use this library but can't seem to install it so that it
works. Tried both installed 3.7 and venv 3.10.1. Platform is raspberry pi
Gen 2, Arm v7.
...
model name : ARMv7 Processor rev 4 (v7l)
...
libfaketime is installed.
Here is the output leading up to the suspected defect. Note that pip barks
but does install faketime, but subsequent import fails.
(venv_3.10_2) ***@***.***:~/.cache/pip# pip install faketime
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting faketime
Using cached faketime-0.9.8.tar.gz (41 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /root/pyvenv/venv_3.10_2/bin/python3.10 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_d30vvsr/faketime_b15767904e99435c9a0afcf16b1e873d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_d30vvsr/faketime_b15767904e99435c9a0afcf16b1e873d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-9g5dn6z5
cwd: /tmp/pip-install-_d30vvsr/faketime_b15767904e99435c9a0afcf16b1e873d/
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-_d30vvsr/faketime_b15767904e99435c9a0afcf16b1e873d/setup.py", line 79, in <module>
version=read('VERSION').replace('\n', ''),
File "/tmp/pip-install-_d30vvsr/faketime_b15767904e99435c9a0afcf16b1e873d/setup.py", line 74, in read
with codecs.open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts)) as f:
File "/usr/local/opt/python-3.10.0/lib/python3.10/codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-_d30vvsr/faketime_b15767904e99435c9a0afcf16b1e873d/VERSION'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/2a/4f/14ae990f996f14c6b229938d1713a2ae067d3added78a2610c6baa65472e/faketime-0.9.8.tar.gz#sha256=b12e43b355489b1938ed2b1db4ad2f2c83df5b2bd8c412a026965628669a2160 (from https://pypi.org/simple/faketime/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached https://www.piwheels.org/simple/faketime/faketime-0.9.7.1-py3-none-any.whl (95 kB)
Installing collected packages: faketime
Successfully installed faketime-0.9.7.1
(venv_3.10_2) ***@***.***:~/.cache/pip# python
Python 3.10.0 (default, Oct 19 2021, 12:56:59) [GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from faketime import Faketime
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'Faketime' from 'faketime' (/root/pyvenv/nola_venv_3.10_2/lib/python3.10/site-packages/faketime/__init__.py)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOJKNKER7TXBNYFU5ZRA23UQ5D3RANCNFSM5KA6KYIQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to use this library but can't seem to install it so that it works. Tried both installed 3.7 and venv 3.10.1. Platform is raspberry pi Gen 2, Arm v7.
libfaketime
is installed.Here is the output leading up to the suspected defect. Note that pip barks but does install faketime, but subsequent import fails.
The text was updated successfully, but these errors were encountered: