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

Error TypeError: expected str, bytes or os.PathLike object, not NoneType when inport library : PySiddhi.core.SiddhiManager #33

Open
nguyenvanson1998 opened this issue Sep 10, 2020 · 1 comment

Comments

@nguyenvanson1998
Copy link

Traceback (most recent call last):
File "helloworld.py", line 3, in
from PySiddhi.core.SiddhiManager import SiddhiManager
File "/home/thienchuaheadshot/.local/lib/python3.7/site-packages/PySiddhi/core/SiddhiManager.py", line 19, in
from PySiddhi.core.SiddhiAppRuntime import SiddhiAppRuntime
File "/home/thienchuaheadshot/.local/lib/python3.7/site-packages/PySiddhi/core/SiddhiAppRuntime.py", line 18, in
from PySiddhi.core.debugger.SiddhiDebugger import SiddhiDebugger
File "/home/thienchuaheadshot/.local/lib/python3.7/site-packages/PySiddhi/core/debugger/SiddhiDebugger.py", line 23, in
from PySiddhi.core.event.ComplexEvent import ComplexEvent
File "/home/thienchuaheadshot/.local/lib/python3.7/site-packages/PySiddhi/core/event/ComplexEvent.py", line 23, in
class ComplexEvent(object):
File "/home/thienchuaheadshot/.local/lib/python3.7/site-packages/PySiddhi/core/event/ComplexEvent.py", line 28, in ComplexEvent
class Type(Enum):
File "/home/thienchuaheadshot/.local/lib/python3.7/site-packages/PySiddhi/core/event/ComplexEvent.py", line 30, in Type
"io.siddhi.pythonapi.proxy.core.event.complex_event.TypeProxy")().CURRENT(),
File "/home/thienchuaheadshot/.local/lib/python3.7/site-packages/PySiddhi/SiddhiLoader.py", line 131, in _loadType
loadLibrary()
File "/home/thienchuaheadshot/.local/lib/python3.7/site-packages/PySiddhi/SiddhiLoader.py", line 97, in loadLibrary
class_paths = ['.', os.path.join(siddhi_home, 'lib', '*')]
File "/usr/lib/python3.7/posixpath.py", line 80, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

@vishnu9400
Copy link

vishnu9400 commented Aug 17, 2021

export SIDDHISDK_HOME="{directory in which sdk was downloaded }/siddhi-sdk-5.1.0"

Run the above line of code before running your code. it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants