-
Notifications
You must be signed in to change notification settings - Fork 78
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
ImportError: cannot import name windll on Macos X #80
Comments
ImportError: cannot import name windll
on Macos X
I think you are the first person to use Mac. We have never used our code on
a Mac before. Cool!
Are you going to be using a Mac on the final machine?
If not, I recommend using the same machine as the "final" one, or at least
the same version of the same operating system. Many challenges can arise
when changing OSs.
In either case, can you give me the output of the following two commands on
your ipython console:
import platform
platform.system()
…On Fri, Jul 7, 2017 at 10:17 AM, sebma ***@***.***> wrote:
Hi,
I have installed Picoscope Beta v6.11.13.2
<https://www.picotech.com/downloads/_lightbox/picoscope6mac> (the drivers
are included)
I'm using Macos X 10.12.5 and when I try to :
ps = ps2000.PS2000(), I get this error :
In [3]: ps = ps2000.PS2000()
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-3eb67f4a7698> in <module>()
----> 1 ps = ps2000.PS2000()
/usr/local/lib/python2.7/site-packages/picoscope/ps2000.pyc in __init__(self, serialNumber, connect)
128 self.lib = cdll.LoadLibrary("lib" + self.LIBNAME + ".so")
129 else:
--> 130 from ctypes import windll
131 self.lib = windll.LoadLibrary(self.LIBNAME + ".dll")
132
ImportError: cannot import name windll
Can you help me ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#80>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFfmFk3_RPdIzMfRmf2wBUAixN-zJGXks5sLmgYgaJpZM4ORNXm>
.
|
Hi, cannot do it today because I'm at home and I don't have an ssh to it but. But I have an ssh access to an older one (
I've already seen this name and I'm almost positive that the mac I use at the university will also answer ' |
Ok you are going to have to test things for us. I assume you know how to use git? pip uninstall picoscope Checkout the git clone [email protected]:colinoflynn/pico-python.git
git checkout mac install the picoscope library in development mode using the mac branch: python setup.py develop You can see the difference between the |
Hi, I'm back at work :)
|
It should be
The ssh URL requires you to have repo access. |
Ok I had to Now I just installed And when I run
By searching
|
@hmaarrfk @colinoflynn I believe, maybe in ps2000.py#L126, you can try this :
But then it says |
Ok, I found how :
and then run |
Hi sebma, I assume that the two changes you did were to
Did picoscope teach you about exporting the path? Do you have a reference for this? I would rather not duplicate install instructions that are available on the official picotech website. Other than that, I'll try to update the libraries we have to enable Mac support. Mark |
I don't understand what you mean because I don't think you need to change your install instructions at all. Maybe if you are willing, just give a little advice in a new Thank you for your time and patience. Please me, keep me updated when you have |
You didn't simply guess that you had to add this specific path:
Was this your knowledge of software, or some instructions on the picotech website? |
Ok, now I understand the question :) and the answer is :
|
It's almost 8pm, so I really have to go :) Jesus bless you ! |
Ah ok, so you hunted for the library yourself. I'll try to push it to pip soon. BTW, this is about as much as I can do in terms of helping you setup the MacOSX libraries. If you want to continue fixing things up, I suggest you do the following:
|
@hmaarrfk Hi, Unfortunatly, I don't have much time to do this at the moment because I'm already late in my tasks. The only thing you need to do on your side is to modify from lines 126 to 131 of ps2000.py#L126-L131 using this piece of code. Add then apply that to the other libraries as well. Maybe replace this piece of code by a function that you can call. |
The changes were done soon after you requested them in the |
@hmaarrfk Thanks a lot :) |
@hmaarrfk
It can be also done with a single command :)
You can add the them in the Additional Installation Information for Mac OSX. |
Thanks. Please create a new issue that way we keep track of the things that we still have "todo" Mark |
@hmaarrfk Hi, Why not reopen this one ? It's title seems fine to me to follow the "Macos X Support" changes. |
Reopenning issues makes them difficult to track down. While there were only 10s of comments on this one, what happens when there are 100s? If I hadn't seen this email immediately, I would have missed your comment since Closed Issues don't appear in the same list as open issues. If you come by this thread 5 years later, after a few versions of MacOS X have been released, is the original issue mentioned still a problem? You would have to read about 10 different issues, just to see which one you care about, and to see if it was fixed. Anyway, it isn't that big of a deal, and this one was borderline appropriate to reopen. I could have seen it as: "your previous instructions were incomplete". But I can also see it as not an issue with our library as the first issue required changes in the code, but rather the way you installed the picotech library on your own computer. |
@hmaarrfk Ok, now I understand. Let me change the title of this issue and also create a new one. |
@hmaarrfk What name can I choose for the new issue to keep track of the things that we still have "todo" ? |
Its fine, I fixed the Readme already. Thanks for reporting bugs. |
@hmaarrfk Hi, My mistake on Macos, the name of variable containing the PATH to the libraries is not Can you please change it in the README.md ? |
Will do. Please stop adding comments to this thread. Anything that needs a "fix" needs to be filed under a different change. |
Hi,
I have installed Picoscope Beta v6.11.13.2 (the drivers are included)
I'm using Macos X 10.12.5 and when I try to :
ps = ps2000.PS2000()
, I get this error :Can you help me ?
The text was updated successfully, but these errors were encountered: