olivierfriard / BORIS

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

Issue with geometric measurements #721

Open sofiapanzetta opened 6 months ago

sofiapanzetta commented 6 months ago

Using BORIS version 8.24. I attempted to get the latest version and try this again but the same error pops up.

I'm trying to use the Polyline tool under Geometric Measurements but an error message pops up every time I try to use it. I attempted to do the same with the other tools in Geometric Measurements but none of them wanted to work (the same error message shows up).

Steps to reproduce the behavior:

  1. Go to 'Geometric Measurements'
  2. Click on 'Polyline' or any tool in it
  3. Try to calculate distance
  4. See error message

The following message pops up:

An error has occured!

to improve the software please report this problem at: https://github.com/olivierfriard/BORIS/issues

Please no screenshot, the error message was copied to the clipboard.

Thank you for your collaboration!

BORIS version: 8.24 OS: Windows 10 10.0.19045 CPU: AMD64 Intel64 Family 6 Model 85 Stepping 4, GenuineIntel Python 3.11.2 (64-bit) Qt 5.15.2 - PyQt 5.15.10 MPV library version: 2.1 MPV library file path: C:\Users\SPanzetta\BORIS\Lib\site-packages\boris\misc\mpv-2.dll

Error succeded at 2024-02-12 10:08

Traceback (most recent call last): File "C:\Users\SPanzetta\BORIS\Lib\site-packages\boris\core.py", line 1713, in frame_image_clicked geometric_measurement.image_clicked(self, n_player, event) File "C:\Users\SPanzetta\BORIS\Lib\site-packages\boris\geometric_measurement.py", line 553, in image_clicked media_file_name = str(pl.Path(fn).relative_to(pl.Path(self.projectFileName).parent)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\SPanzetta\BORIS\Lib\pathlib.py", line 730, in relative_to raise ValueError("{!r} is not in the subpath of {!r}" ValueError: 'E:\EGC001_C1_Videos\EGC001_C1_001.LRV' is not in the subpath of '' OR one path is relative and the other is absolute.

System info

Host Name: DESKTOP-2S4SJ8F OS Name: Microsoft Windows 10 Education OS Version: 10.0.19045 N/A Build 19045 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free Registered Owner: BioSciIT Registered Organization: University of Alberta Product ID: 00328-10000-00001-AA126 Original Install Date: 2022-07-27, 5:45:04 PM System Boot Time: 2024-01-24, 12:10:18 PM System Manufacturer: Dell Inc. System Model: Precision 7920 Tower System Type: x64-based PC Processor(s): 1 Processor(s) Installed. 01: Intel64 Family 6 Model 85 Stepping 4 GenuineIntel ~2195 Mhz BIOS Version: Dell Inc. 2.6.3, 2020-05-04 Windows Directory: C:\WINDOWS System Directory: C:\WINDOWS\system32 Boot Device: \Device\HarddiskVolume2 System Locale: en-us;English (United States) Input Locale: en-us;English (United States) Time Zone: (UTC-07:00) Mountain Time (US & Canada) Total Physical Memory: 129,694 MB Available Physical Memory: 114,070 MB Virtual Memory: Max Size: 148,126 MB Virtual Memory: Available: 129,046 MB Virtual Memory: In Use: 19,080 MB Page File Location(s): C:\pagefile.sys Domain: WORKGROUP Logon Server: \DESKTOP-2S4SJ8F Hotfix(s): 9 Hotfix(s) Installed.

                       [02]: KB5003791
                       [03]: KB5007401
                       [04]: KB5015684
                       [05]: KB5029244
                       [06]: KB5014671
                       [07]: KB5016705
                       [08]: KB5028318
                       [09]: KB5028380

Network Card(s): 3 NIC(s) Installed. 01: Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64 Connection Name: Ethernet 2 Status: Hardware not present [02]: Intel(R) Ethernet Connection (3) I219-LM Connection Name: Ethernet DHCP Enabled: Yes DHCP Server: 129.128.3.250 IP address(es)

                             [02]: fe80::e0da:35bd:eee:dfc2
                       [03]: Intel(R) I210 Gigabit Network Connection
                             Connection Name: Ethernet 3
                             Status:          Media disconnected

Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.

olivierfriard commented 6 months ago

Hi, thank you for reporting this. Can you give me the minimal detailed procedure to reproduce this issue? Did you add media with relative path?

sofiapanzetta commented 3 months ago

Sorry for the late reply! It started to work but now has crashed and is no longer working again. To reproduce the issue, we first started a new project and added a new observation with an absolute path for the media file. We then clicked geometric measurements and then polyline. As soon as we clicked once with polyline, the error message popped up and no measurements could be taken.

On Tue, Feb 13, 2024 at 8:25 AM Olivier Friard @.***> wrote:

Hi, thank you for reporting this. Can you give me the minimal detailed procedure to reproduce this issue? Did you add media with relative path?

— Reply to this email directly, view it on GitHub https://github.com/olivierfriard/BORIS/issues/721#issuecomment-1941944657, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARYQZ6ANG56RAYS4RPDC7UTYTOHWTAVCNFSM6AAAAABDFC4TSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBRHE2DINRVG4 . You are receiving this because you authored the thread.Message ID: @.***>

olivierfriard commented 3 months ago

I need your project file to reproduce this issue. Is it possible? You can send it by email (see www.boris.unito.it > About)

sofiapanzetta commented 3 months ago

I sent the file via email last week. Did you receive it/were you able to open it?

On Wed, May 22, 2024 at 7:27 AM Olivier Friard @.***> wrote:

I need your project file to reproduce this issue. Is it possible? You can send it by email (see www.boris.unito.it > About)

— Reply to this email directly, view it on GitHub https://github.com/olivierfriard/BORIS/issues/721#issuecomment-2124943631, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARYQZ6DOQHH6DBASDUPKIE3ZDSTONAVCNFSM6AAAAABDFC4TSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRUHE2DGNRTGE . You are receiving this because you authored the thread.Message ID: @.***>

olivierfriard commented 2 months ago

Hi, I got your email (it was in the spam). I will try to reproduce the issue. Sorry for the delay.