-
Notifications
You must be signed in to change notification settings - Fork 36
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
rpmvenv failing and complaining about 'time' module not existing. #56
Comments
UPDATE: I tried the same thing in Fedora 25 and got a similar error, but this time it is complaining about not finding the math module. |
Does the same error occur if you manually run virtualenv with the same --always-copy flag that rpmvenv uses? I believe this may actually be a bug in the recent release of virtualenv. Reference: pypa/virtualenv#565 |
You are right! Just tried to create a virtual env with the --always-copy flag, got the same error. So, in theory, I should just downgrade the version of virtualenv then. PS: Thank you very much for such quick response! EDIT: Hum, this issue with virtualenv was reported 3 years ago. Not sure if downgrading virtualenv is what I want. |
The issue appears to be with the default system Python. I am able to recreate the failure you are seeing consistently in CentOS 6 and 7 when using the pre-installed Python. However, if you build the same version of Python from source and install it on the system then the problem goes away. I've not personally encountered this issue as the organisations I work with typically build and install specific Python versions rather than relying on the system default. As far as I can tell, the default Python installation on CentOS, Fedora, and RedHat are different enough in some way from what virtualenv expects that they simply do not work. |
You were right. Indeed I can generate RPM packages with a custom installation of Python. Thank you for your help, you may want to close this ticket now since it has nothing to do with your tool. PS: Thank you for developing such nice tool and for an amazing support! |
I'm glad we could figure it out! Let me know if you have any more trouble. |
Hello,
When I run rpmvenv to package my python library I get a wierd error saying it was not possible to import the library 'time'.
Although if I create a virtual env myself and import time, it works just fine.
This is for CentOS Linux 7 (Core)
The json file, for now, is pretty basic (almost equal to the one in the example):
And the output is:
Any help please?
Thank you!
The text was updated successfully, but these errors were encountered: