I ended up changing the reference to PCANBasic in PCANBasic.py thus which solved the problem:
if platform.system() == 'Windows':
# self.__m_dllBasic = windll.LoadLibrary("C:\\MY Docs\\Phd\\PCAN-Basic API\\x64\\PCANBasic")
# self.__m_dllBasic = windll.LoadLibrary("C:\\Windows\\SysWOW64\\PCANBasic ...
Search found 5 matches
- Thu 4. Mar 2021, 16:45
- Forum: PCAN-Basic
- Topic: OSError: [WinError 126] The specified module could not be found
- Replies: 5
- Views: 9506
- Sat 27. Feb 2021, 16:26
- Forum: PCAN-Basic
- Topic: OSError: [WinError 126] The specified module could not be found
- Replies: 5
- Views: 9506
Re: OSError: [WinError 126] The specified module could not be found
Marvin,
Tried what you suggested - Rebooted after. Still get a similar error:
C:\My_Docs\PhD\NF_Processing\venv\Scripts\python.exe C:/My_Docs/PhD/NF_Processing/PCAN_Test.py
Traceback (most recent call last):
File "C:/My_Docs/PhD/NF_Processing/PCAN_Test.py", line 28, in <module>
objPCAN ...
Tried what you suggested - Rebooted after. Still get a similar error:
C:\My_Docs\PhD\NF_Processing\venv\Scripts\python.exe C:/My_Docs/PhD/NF_Processing/PCAN_Test.py
Traceback (most recent call last):
File "C:/My_Docs/PhD/NF_Processing/PCAN_Test.py", line 28, in <module>
objPCAN ...
- Sat 20. Feb 2021, 17:42
- Forum: PCAN-Basic
- Topic: OSError: [WinError 126] The specified module could not be found
- Replies: 5
- Views: 9506
OSError: [WinError 126] The specified module could not be found
I have a simple python program using PCANBasic. It fails on execution with the following:
C:\My_Docs\...\NF_Processing\venv\Scripts\python.exe C:/My_Docs/.../NF_Processing/PCAN_Test.py
Traceback (most recent call last):
File "C:/My_Docs/.../NF_Processing/PCAN_Test.py", line 28, in <module ...
C:\My_Docs\...\NF_Processing\venv\Scripts\python.exe C:/My_Docs/.../NF_Processing/PCAN_Test.py
Traceback (most recent call last):
File "C:/My_Docs/.../NF_Processing/PCAN_Test.py", line 28, in <module ...
- Fri 11. Dec 2020, 14:49
- Forum: PCAN-Basic
- Topic: Python CAN-ID Message Problem
- Replies: 2
- Views: 6314
Re: Python CAN-ID Message Problem
Thanks Marvin - that worked a treat 

- Fri 11. Dec 2020, 13:49
- Forum: PCAN-Basic
- Topic: Python CAN-ID Message Problem
- Replies: 2
- Views: 6314
Python CAN-ID Message Problem
PCAN Python Problem….
I’m running Windows 10 and Pycharm 2020.3 (a python IDE) & using Neurofield64 which is software that allows the control of various Neurofield eeg recording and stimulation devices, which work using a PEAK USB/CAN adapter. A Neurofield Z3 is a tACS/tDCS/tRNS brain stimulation ...
I’m running Windows 10 and Pycharm 2020.3 (a python IDE) & using Neurofield64 which is software that allows the control of various Neurofield eeg recording and stimulation devices, which work using a PEAK USB/CAN adapter. A Neurofield Z3 is a tACS/tDCS/tRNS brain stimulation ...