olivierfriard / BORIS

Behavioral Observation Research Interactive Software
http://www.boris.unito.it
GNU General Public License v3.0
174 stars 34 forks source link

BORIS keeps crashing (Windows 10 OS) #397

Closed dejelase closed 5 months ago

dejelase commented 3 years ago

Hi,

I keep getting the following error log when I open BORIS (regardless of software version it seems):

Traceback (most recent call last): File "C:\Program Files (x86)\lib\runpy.py", line 184, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "C:\Program Files (x86)\lib\runpy.py", line 143, in _get_module_details return _get_module_details(pkg_main_name, error) File "C:\Program Files (x86)\lib\runpy.py", line 110, in _get_module_details import(pkg_name) File "C:\Program Files (x86)\lib\site-packages\boris__init.py", line 25, in from .core import main File "C:\Program Files (x86)\lib\site-packages\boris\core.py", line 44, in import matplotlib File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib\init.py", line 174, in _check_versions() File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib\init.py", line 159, in _check_versions from . import ft2font ImportError: cannot import name 'ft2font' from partially initialized module 'matplotlib' (most likely due to a circular import) (C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib\init__.py)

Any advice on how to troubleshoot this? Thanks.

olivierfriard commented 3 years ago

Hi,

what version of BORIS are you using, portable or setup? How do you launch BORIS ?

I do not understand why you are using 'C:\Program Files (x86)\lib\runpy.py' ?

o

On Tue, May 11, 2021 at 7:47 PM dejelase @.***> wrote:

Hi,

I keep getting the following error log when I open BORIS (regardless of software version it seems):

Traceback (most recent call last): File "C:\Program Files (x86)\lib\runpy.py", line 184, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "C:\Program Files (x86)\lib\runpy.py", line 143, in _get_module_details return

get_module_details(pkg_main_name, error) File "C:\Program Files (x86)\lib\runpy.py", line 110, in get_module_details import(pkg_name) File "C:\Program Files (x86)\lib\site-packages\boris_init.py", line 25, in from .core import main File "C:\Program Files (x86)\lib\site-packages\boris\core.py", line 44, in import matplotlib File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib_init.py", line 174, in

check_versions() File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib_init.py", line 159, in

check_versions from . import ft2font ImportError: cannot import name 'ft2font' from partially initialized module 'matplotlib' (most likely due to a circular import) (C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib_init.py)

Any advice on how to troubleshoot this? Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/olivierfriard/BORIS/issues/397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABR2AYTY22CQFROOXJBRXWLTNFUUFANCNFSM44WMJQRA .

-- University of Torino Dept of Life Sciences and Systems Biology Via dell'Accademia Albertina, 13 10123 TORINO (Italy) tel: +39 011 6704542 http://penelope.unito.it/friard/ http://orcid.org/0000-0002-0374-9872

dejelase commented 3 years ago

Hi,

I've tried both portable and setup and run into the same issue. I chose file path 'C:\Program Files (x86)' because the default was initially 'C:\Users\D L See', and I read that having spaces in the path name could sometimes cause issues with running software in general (I don't know why and that rule seems inconsistent...but I'm not tech savvy and was out of ideas so I took their word for it).

I should add that yesterday I attempted upgrading matplotlib to the latest version and just ended up with a different error. Is there anything else you recommend trying?

Thank you, DéJenaé

On Thu, May 13, 2021 at 2:10 AM Olivier Friard @.***> wrote:

Hi,

what version of BORIS are you using, portable or setup? How do you launch BORIS ?

I do not understand why you are using 'C:\Program Files (x86)\lib\runpy.py' ?

o

On Tue, May 11, 2021 at 7:47 PM dejelase @.***> wrote:

Hi,

I keep getting the following error log when I open BORIS (regardless of software version it seems):

Traceback (most recent call last): File "C:\Program Files (x86)\lib\runpy.py", line 184, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "C:\Program Files (x86)\lib\runpy.py", line 143, in _get_module_details return

get_module_details(pkg_main_name, error) File "C:\Program Files (x86)\lib\runpy.py", line 110, in get_module_details import(pkg_name) File "C:\Program Files (x86)\lib\site-packages\boris_init.py", line 25, in from .core import main File "C:\Program Files (x86)\lib\site-packages\boris\core.py", line 44, in import matplotlib File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib_init.py", line 174, in

check_versions() File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib_init.py", line 159, in

check_versions from . import ft2font ImportError: cannot import name 'ft2font' from partially initialized module 'matplotlib' (most likely due to a circular import) (C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib_init.py)

Any advice on how to troubleshoot this? Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/olivierfriard/BORIS/issues/397, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABR2AYTY22CQFROOXJBRXWLTNFUUFANCNFSM44WMJQRA

.

-- University of Torino Dept of Life Sciences and Systems Biology Via dell'Accademia Albertina, 13 10123 TORINO (Italy) tel: +39 011 6704542 http://penelope.unito.it/friard/ http://orcid.org/0000-0002-0374-9872

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/olivierfriard/BORIS/issues/397#issuecomment-840428554, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUBFEJD5AIYZ26KHGRL57FDTNOJRPANCNFSM44WMJQRA .

olivierfriard commented 3 years ago

On Thu, May 13, 2021 at 11:23 PM dejelase @.***> wrote:

Hi,

I've tried both portable and setup and run into the same issue. I chose file path 'C:\Program Files (x86)' because the default was initially 'C:\Users\D L See', and I read that having spaces in the path name could sometimes cause issues with running software in general (I don't know why and that rule seems inconsistent...but I'm not tech savvy and was out of ideas so I took their word for it).

BORIS (portable and setup) embed its own version of Python and all dependencies. BORIS should not use the python installed on your system. Try to use the portable version and extract it into a subfolder of your home folder (C:\Users\D L See). Please note that you have to explicitly extract the archive not only viewing it (The file explorer of windows usually shows the content of a zip archive as a folder but is not a true folder).

Let me know if it works If not send the error generated

o

dejelase commented 3 years ago

Hi,

Sorry for the late reply, my computer was running into new problems with Python that I tried to fix (to no avail). I followed your instructions and ended up with the following message after installing portable v.7.10.5 and opening start_boris.bat:

[image: image.png]

Let me know what you think.

Thanks, DS

On Thu, May 13, 2021 at 3:27 PM Olivier Friard @.***> wrote:

On Thu, May 13, 2021 at 11:23 PM dejelase @.***> wrote:

Hi,

I've tried both portable and setup and run into the same issue. I chose file path 'C:\Program Files (x86)' because the default was initially 'C:\Users\D L See', and I read that having spaces in the path name could sometimes cause issues with running software in general (I don't know why and that rule seems inconsistent...but I'm not tech savvy and was out of ideas so I took their word for it).

BORIS (portable and setup) embed its own version of Python and all dependencies. BORIS should not use the python installed on your system. Try to use the portable version and extract it into a subfolder of your home folder (C:\Users\D L See). Please note that you have to explicitly extract the archive not only viewing it (The file explorer of windows usually shows the content of a zip archive as a folder but is not a true folder).

Let me know if it works If not send the error generated

o

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/olivierfriard/BORIS/issues/397#issuecomment-840870813, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUBFEJEZ56Z2YYYL7DRPTTTTNRG4HANCNFSM44WMJQRA .

dejelase commented 3 years ago

Sorry, the error didn't copy over. It's below:

Traceback (most recent call last): File "C:\Users\D L See\borisportable\lib\runpy.py", line 184, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "C:\Users\D L See\borisportable\lib\runpy.py", line 143, in _get_module_details return _get_module_details(pkg_main_name, error) File "C:\Users\D L See\borisportable\lib\runpy.py", line 110, in _get_module_details import(pkg_name) File "C:\Users\D L See\borisportable\lib\site-packages\boris__init.py", line 25, in from .core import main File "C:\Users\D L See\borisportable\lib\site-packages\boris\core.py", line 44, in import matplotlib File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib__init__.py", line 107, in from . import _api, cbook, docstring, rcsetup File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\matplotlib\cbook\init.py", line 28, in import numpy as np File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\numpy\init.py", line 143, in from . import _distributor_init File "C:\Users\D L See\AppData\Roaming\Python\Python38\site-packages\numpy_distributor_init.py", line 26, in WinDLL(os.path.abspath(filename)) File "C:\Users\D L See\borisportable\lib\ctypes\init.py", line 373, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application

On Mon, May 17, 2021 at 6:45 AM DéJenaé See @.***> wrote:

Hi,

Sorry for the late reply, my computer was running into new problems with Python that I tried to fix (to no avail). I followed your instructions and ended up with the following message after installing portable v.7.10.5 and opening start_boris.bat:

[image: image.png]

Let me know what you think.

Thanks, DS

On Thu, May 13, 2021 at 3:27 PM Olivier Friard @.***> wrote:

On Thu, May 13, 2021 at 11:23 PM dejelase @.***> wrote:

Hi,

I've tried both portable and setup and run into the same issue. I chose file path 'C:\Program Files (x86)' because the default was initially 'C:\Users\D L See', and I read that having spaces in the path name could sometimes cause issues with running software in general (I don't know why and that rule seems inconsistent...but I'm not tech savvy and was out of ideas so I took their word for it).

BORIS (portable and setup) embed its own version of Python and all dependencies. BORIS should not use the python installed on your system. Try to use the portable version and extract it into a subfolder of your home folder (C:\Users\D L See). Please note that you have to explicitly extract the archive not only viewing it (The file explorer of windows usually shows the content of a zip archive as a folder but is not a true folder).

Let me know if it works If not send the error generated

o

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/olivierfriard/BORIS/issues/397#issuecomment-840870813, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUBFEJEZ56Z2YYYL7DRPTTTTNRG4HANCNFSM44WMJQRA .