Perceptilabs Does Not Start

Hello, I ran through the intro video on how to install Perceptilabs, created a new conda env, installed Perceptilabs, and tried to start when I get (after a few ‘could not load’ cuda library warnings) :

PerceptiLabs: Starting
PerceptiLabs: Waiting for services to listen on these ports:
PerceptiLabs: rygg on port 8000
PerceptiLabs: fileserver on port 8011
PerceptiLabs: frontend on port 8080
PerceptiLabs: Waiting for services to listen on these ports:
PerceptiLabs: rygg on port 8000
PerceptiLabs: fileserver on port 8011
PerceptiLabs: frontend on port 8080

ad infinitum. The first time I ran it, Windows popped up with the ‘allow access to your public/private networks’ prompt, but after accepting that still nothing opens in a new browser window. Nothing comes back if I run netstat -na | Select-String "8000" in Powershell (or any of the other ports), before running perceptilabs, so I assume this means that they’re not being used. Does anyone have any ideas as to how to troubleshoot what might be going on?

Regards,
-Serotonin

Hi @Serotonin,
Sorry to hear that you are having issues starting the tool!

Sounds like something may have gone wrong with the installation, could you run the tool as “perceptilabs -v=3” (it enables a lot more messages) and cop/paste everything in the terminal over to here?
Then we can take a look and see what broke :slight_smile:

All the best,
Robert

2021-06-29 10:35:30.891955: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library ‘cudart64_110.dll’; dlerror: cudart64_110.dll not found
2021-06-29 10:35:30.895019: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2021-06-29 10:35:30.967501: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library ‘cudart64_110.dll’; dlerror: cudart64_110.dll not found
2021-06-29 10:35:30.967666: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Performing system checks…

Performing system checks…

Performing system checks…

System check identified no issues (0 silenced).
June 29, 2021 - 10:35:31
Django version 3.2, using settings ‘static_file_server.settings’
Starting development server at http://127.0.0.1:8080/
Quit the server with CTRL-BREAK.
Traceback (most recent call last):
File “c:\programdata\anaconda3\envs\pl\lib\runpy.py”, line 193, in run_module_as_main
main”, mod_spec)
File “c:\programdata\anaconda3\envs\pl\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django_main
.py", line 9, in
management.execute_from_command_line()
File "C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management_init
.py", line 419, in execute_from_command_line
utility.execute()
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management_init_.py”, line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\base.py”, line 354, in run_from_argv
self.execute(*args, **cmd_options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 61, in execute
super().execute(*args, **options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\base.py”, line 398, in execute
output = self.handle(*args, **options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 96, in handle
self.run(**options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 105, in run
self.inner_run(None, **options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 140, in inner_run
ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\servers\basehttp.py”, line 210, in run
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\servers\basehttp.py”, line 71, in init
super().init(*args, **kwargs)
File “c:\programdata\anaconda3\envs\pl\lib\socketserver.py”, line 452, in init
self.server_bind()
File “c:\programdata\anaconda3\envs\pl\lib\wsgiref\simple_server.py”, line 50, in server_bind
HTTPServer.server_bind(self)
File “c:\programdata\anaconda3\envs\pl\lib\http\server.py”, line 139, in server_bind
self.server_name = socket.getfqdn(host)
File “c:\programdata\anaconda3\envs\pl\lib\socket.py”, line 676, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xdf in position 0: invalid continuation byte
System check identified no issues (0 silenced).
June 29, 2021 - 10:35:31
Django version 3.2, using settings ‘rygg.settings’
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Traceback (most recent call last):
File “c:\programdata\anaconda3\envs\pl\lib\runpy.py”, line 193, in run_module_as_main
main”, mod_spec)
File “c:\programdata\anaconda3\envs\pl\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django_main
.py", line 9, in
management.execute_from_command_line()
File "C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management_init
.py", line 419, in execute_from_command_line
utility.execute()
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management_init_.py”, line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\base.py”, line 354, in run_from_argv
self.execute(*args, **cmd_options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 61, in execute
super().execute(*args, **options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\base.py”, line 398, in execute
output = self.handle(*args, **options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 96, in handle
self.run(**options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 105, in run
self.inner_run(None, **options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 140, in inner_run
ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\servers\basehttp.py”, line 210, in run
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\servers\basehttp.py”, line 71, in init
super().init(*args, **kwargs)
File “c:\programdata\anaconda3\envs\pl\lib\socketserver.py”, line 452, in init
self.server_bind()
File “c:\programdata\anaconda3\envs\pl\lib\wsgiref\simple_server.py”, line 50, in server_bind
HTTPServer.server_bind(self)
File “c:\programdata\anaconda3\envs\pl\lib\http\server.py”, line 139, in server_bind
self.server_name = socket.getfqdn(host)
File “c:\programdata\anaconda3\envs\pl\lib\socket.py”, line 676, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xdf in position 0: invalid continuation byte
System check identified no issues (0 silenced).
June 29, 2021 - 10:35:32
Django version 3.2, using settings ‘fileserver.settings’
Starting development server at http://127.0.0.1:8011/
Quit the server with CTRL-BREAK.
Traceback (most recent call last):
File “c:\programdata\anaconda3\envs\pl\lib\runpy.py”, line 193, in run_module_as_main
main”, mod_spec)
File “c:\programdata\anaconda3\envs\pl\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django_main
.py", line 9, in
management.execute_from_command_line()
File "C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management_init
.py", line 419, in execute_from_command_line
utility.execute()
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management_init_.py”, line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\base.py”, line 354, in run_from_argv
self.execute(*args, **cmd_options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 61, in execute
super().execute(*args, **options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\base.py”, line 398, in execute
output = self.handle(*args, **options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 96, in handle
self.run(**options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 105, in run
self.inner_run(None, **options)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py”, line 140, in inner_run
ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\servers\basehttp.py”, line 210, in run
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
File “C:\Users\tanma\AppData\Roaming\Python\Python37\site-packages\django\core\servers\basehttp.py”, line 71, in init
super().init(*args, **kwargs)
File “c:\programdata\anaconda3\envs\pl\lib\socketserver.py”, line 452, in init
self.server_bind()
File “c:\programdata\anaconda3\envs\pl\lib\wsgiref\simple_server.py”, line 50, in server_bind
HTTPServer.server_bind(self)
File “c:\programdata\anaconda3\envs\pl\lib\http\server.py”, line 139, in server_bind
self.server_name = socket.getfqdn(host)
File “c:\programdata\anaconda3\envs\pl\lib\socket.py”, line 676, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xdf in position 0: invalid continuation byte
2021-06-29 10:35:33.411563: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-06-29 10:35:33.412426: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library ‘nvcuda.dll’; dlerror: nvcuda.dll not found
2021-06-29 10:35:33.412561: W tensorflow/stream_executor/cuda/cuda_driver.cc:326] failed call to cuInit: UNKNOWN ERROR (303)
2021-06-29 10:35:33.416216: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: ▀-Endorphin
2021-06-29 10:35:33.416697: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: ▀-Endorphin
2021-06-29 10:35:33.423845: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-06-29 10:35:33.424739: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library ‘nvcuda.dll’; dlerror: nvcuda.dll not found
2021-06-29 10:35:33.424876: W tensorflow/stream_executor/cuda/cuda_driver.cc:326] failed call to cuInit: UNKNOWN ERROR (303)
2021-06-29 10:35:33.430763: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: ▀-Endorphin
2021-06-29 10:35:33.430960: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: ▀-Endorphin
2021-06-29 10:35:37,405 - INFO - perceptilabs_main_:4 - Started kernel in mode ‘{args.mode}’
2021-06-29 10:35:37,405 - INFO - perceptilabs_main_:4 - Reporting errors with commit id: 2d0477bff7e114a20241b90fc7b2edab35a9ebc4
2021-06-29 10:35:37,412 - INFO - perceptilabs_main_:4 - Started kernel in mode ‘{args.mode}’
PerceptiLabs is ready…
2021-06-29 10:35:37,472 - INFO - perceptilabs_main_:4 - Trying to listen to: 0.0.0.0 5000
PerceptiLabs: Waiting for services to listen on these ports:
PerceptiLabs: rygg on port 8000
PerceptiLabs: fileserver on port 8011
PerceptiLabs: frontend on port 8080

Hi,
Thanks for the logs!

It looks like something with the Django package is crashing, which version of Django do you have in that environment (you can see all packages through “pip list”)?
Also, did you install PerceptiLabs in a new environment? :slight_smile:

Django 3.2
django-cors-headers 3.7.0
django-http-exceptions 1.4.0
django-request-logging 0.7.3
djangorestframework 3.12.4

Yes, I created a new conda env, just as in the video. Originally, running
perceptilabs
after installation did not find the file (as pip didn’t install it to my \envs\pl environment), so I either have to add user\AppData\Roaming\Python\Python37\Scripts to my PATH or manually locate the file when running in Powershell.

Hi @Serotonin,
We took a deeper look and it seems like you may may have a host name (computer name) that’s not valid utf-8:

retrieving CUDA diagnostic information for host: ▀-Endorphin

(The little black square there is the non-valid symbol).

For some reason, Django does not like it and crashes, which seems to be a limitation in Django that we can’t do much about.
My best suggestion would be to update your computer name so it only contains “standard” symbols.

Hope that helps!

Bingo! Thanks for the help and sorry for my stupid naming conventions!

1 Like