Skip to content

unable to install the package properly #9

@AkshatSharma05

Description

@AkshatSharma05

I tried installing the package on an environment without the canopen library with pip from both PyPi and through Github.
The install finishes successfully but when I run the example, I get No module named 'canopen'.

So I tried installing canopen first and then canopen-asyncio.
But running the example gives me the following output:

Traceback (most recent call last):
  File "/home/akshat/xena_test/test.py", line 67, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/akshat/xena_test/test.py", line 57, in main
    async with canopen.Network(loop=loop).connect(
TypeError: Network.__init__() got an unexpected keyword argument 'loop'

That leads me to believe that python can't differentiate between canopen and canopen-asyncio.
While just canopen-asyncio is not working.
Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions