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

OPC problem #23

Closed
charlieali opened this issue Mar 16, 2018 · 1 comment
Closed

OPC problem #23

charlieali opened this issue Mar 16, 2018 · 1 comment

Comments

@charlieali
Copy link

charlieali commented Mar 16, 2018

When I try to run main.py i get this error indicating I install opc

runfile('C:/Users/charlie/Desktop/Systematic-LEDs-masterFC/python/main.py', wdir='C:/Users/charlie/Desktop/Systematic-LEDs-masterFC/python')
C:\Users\charlie\Anaconda3\envs\fc3\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Unable to import audioled.opc library
You can install this library with pip install opc
Traceback (most recent call last):

File "", line 1, in
runfile('C:/Users/charlie/Desktop/Systematic-LEDs-masterFC/python/main.py', wdir='C:/Users/charlie/Desktop/Systematic-LEDs-masterFC/python')

File "C:\Users\charlie\Anaconda3\envs\fc3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)

File "C:\Users\charlie\Anaconda3\envs\fc3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/charlie/Desktop/Systematic-LEDs-masterFC/python/main.py", line 1407, in
server=config.settings["devices"][board]["configuration"]["SERVER"])

File "C:\Users\charlie\Desktop\Systematic-LEDs-masterFC\python\lib\devices.py", line 162, in init
raise e

File "C:\Users\charlie\Desktop\Systematic-LEDs-masterFC\python\lib\devices.py", line 158, in init
import audioled.opc

ImportError: No module named 'audioled'

Only problem Is I already have OPC installed in the environment. I tried uninstalling it and reinstalling and it didn't work.

@charlieali
Copy link
Author

Solution is actually to uninstall opc, this is trying to call a file. Also opc.py has to be moved to a folder called audioled in the python folder for this to work.

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

1 participant