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 get started #36

Closed
c-poole opened this issue Jan 21, 2021 · 3 comments
Closed

Unable to get started #36

c-poole opened this issue Jan 21, 2021 · 3 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@c-poole
Copy link

c-poole commented Jan 21, 2021

I have recently tried to install pytket on a Windows 10 Enterprise LTSC machine and am unable to use the package from the get-go. I am using Python 3.7.9 and use the command pip install pytket==0.6.1. The installation works but when I load up a python console and try to import pytket, it fails with the following message:

Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pytket
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\QC\Envs\pyqt\lib\site-packages\pytket\__init__.py", line 18, in <module>
    from pytket.circuit import (
  File "C:\Users\QC\Envs\pyqt\lib\site-packages\pytket\circuit\__init__.py", line 17, in <module>
    from pytket._tket.pauli import Pauli
ImportError: DLL load failed: The specified module could not be found.

I have looked in the _tket folder on this machine and the files that need to be there do appear to be there as they match the filenames for an install of pytket I have on another machine with the same version of python and pytket that works. The computer with the functioning installation has just Enterprise instead of Enterprise LTSC. I've gone as far as making a requirements file out of a pip freeze from a functioning virtual environment on the functioning machine and using that to set up an environment on the failing machine for the project I'm working on as well as only having pytket installed. Failure happens in each case.

EDIT: Problem also seems to exist on Python 3.8.2 for the same machine.

@ss2165 ss2165 added the bug Something isn't working label Jan 21, 2021
@ss2165
Copy link
Member

ss2165 commented Jan 21, 2021

Thank you for the report and trying what you have already, I am not sure what is happening but it may well be that our windows builds are not compatible with LTSC as a platform. My only suggestion for now is, if possible could you try installing with a a conda distribution of python, rather than a system one?

@c-poole
Copy link
Author

c-poole commented Jan 21, 2021

Same issue I'm afraid.

@ss2165
Copy link
Member

ss2165 commented Jan 25, 2021

The LTSC versions of Windows are designed to not change for 10 years, and are intended for very static, special purpose systems (more here). In that sense I suppose it is not that surprising something breaks there, but pip should not have installed it if that were the case. Unfortunately I think the best we can do is add a warning to the installation docs that LTSC may not work. Are you able to try something like a virtual machine or a docker container on that system?

@ss2165 ss2165 closed this as completed Jan 25, 2021
@ss2165 ss2165 added the wontfix This will not be worked on label Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants