Code Monkey home page Code Monkey logo

Comments (6)

tom9672 avatar tom9672 commented on August 16, 2024 2

I tried on a Mac x86 interl i5 cpu, also not work. But definitely works well on Linux and Windows.

from pysoem.

tom9672 avatar tom9672 commented on August 16, 2024

works on Linux and windows, I also tried on a Mac, but it seems not work. Have you tried on a virtual machine on mac?

from pysoem.

michaelschem avatar michaelschem commented on August 16, 2024

I have not tried on a virtual machine for mac yet. I was thinking the problem was probably with my chip architecture since I'm on an M1. I'll try in a virtual machine and update here.

from pysoem.

raveslave avatar raveslave commented on August 16, 2024

pip install pysoem on Intel Mac also results in
No matching distribution found for pysoem

any tricks to roll this on mac? (no VM)

from pysoem.

Ice-Panda avatar Ice-Panda commented on August 16, 2024

@tom9672
Hi, I tried on a Mac x86 intel i7 cpu, and it works well for me.
What I did was download the source code and add some code for platform adaptation.

elif sys.platform.startswith('darwin'):
    soem_macros = []
    soem_lib_dirs = []
    soem_libs = ['pthread', 'pcap']
    os_name = 'macosx'

Then, you can use the following command to install the pysoem library in the same directory as the setup.py file.

pip install .

image
ps: I changed the version number to 1.1.5.
image

Oh, If you find that master.open(ifname) fails, please modify the read and write permissions of the mac's network port.
For example, I use the following command to open the permissions of four thunderbolt ports.

sudo chmod 777 /dev/bpf*

Enjoy it!

from pysoem.

bnjmnp avatar bnjmnp commented on August 16, 2024

Thank you @Ice-Panda for sharing, this was already available on a branch: https://github.com/bnjmnp/pysoem/blob/add_macos/setup.py
I just merged it into mainline. Now also binary wheels are build for macOS, so no build step is needed during the install.
With that I think we can close this now.

from pysoem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.