Skip to content

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Jan 13, 2026

The CMake Generator line for 64bit build was outdated and does not include the architecture anymore.


Use force to address for the legacy_datasets.tar

Move-Item : Cannot create a file when that file already exists.
At C:\projects\openpmd-api\share\openPMD\download_samples.ps1:30 char:1
+ Move-Item -Path legacy_datasets\* samples\git-sample\legacy\
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\projects\ope...5.0-hdf5-plugin:DirectoryInfo) [Move-Item], IOException
    + FullyQualifiedErrorId : MoveDirectoryItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand

@ax3l ax3l added this to the 0.17.0 milestone Jan 13, 2026
@ax3l ax3l requested a review from franzpoeschel January 13, 2026 18:30
@ax3l ax3l added the continuous deployment automated shipping label Jan 13, 2026
@ax3l ax3l force-pushed the fix-move-force-ps1 branch 2 times, most recently from e22c79f to 19d9bb9 Compare January 14, 2026 18:21
@ax3l ax3l changed the title Fix download_samples.ps1 Move Fix AppVeyor 64bit build Jan 14, 2026
@ax3l ax3l added continuous integration and removed continuous deployment automated shipping labels Jan 14, 2026
@ax3l ax3l force-pushed the fix-move-force-ps1 branch from 19d9bb9 to 0d6c9a2 Compare January 14, 2026 18:27
ax3l added 2 commits January 14, 2026 11:59
Use force to address for tge `legacy_datasets.tar`
```
Move-Item : Cannot create a file when that file already exists.
At C:\projects\openpmd-api\share\openPMD\download_samples.ps1:30 char:1
+ Move-Item -Path legacy_datasets\* samples\git-sample\legacy\
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\projects\ope...5.0-hdf5-plugin:DirectoryInfo) [Move-Item], IOException
    + FullyQualifiedErrorId : MoveDirectoryItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand
```
Architecture not part of `-G` anymore, maybe `-A x64`
Copy link
Contributor

@franzpoeschel franzpoeschel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed a fix for the build error, hoping that the CI will pass, if yes, then this looks good. Thank you!

@ax3l
Copy link
Member Author

ax3l commented Jan 23, 2026

Yay, only to fails left:

Unittest.py

5: ======================================================================
5: ERROR: testConstantRecords (API.APITest.APITest)
5: ----------------------------------------------------------------------
5: Traceback (most recent call last):
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 742, in testConstantRecords
5:     self.makeConstantRoundTrip(ext)
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 598, in makeConstantRoundTrip
5:     ms["int32"][SCALAR].reset_dataset(DS(np.dtype("int32"), extent))
5: RuntimeError: Datatype 'l' not known in 'dtype_from_numpy'!
5: 
5: ======================================================================
5: ERROR: testEmptyRecords (API.APITest.APITest)
5: ----------------------------------------------------------------------
5: Traceback (most recent call last):
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 985, in testEmptyRecords
5:     self.makeEmptyRoundTrip(backend_filesupport[b])
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 857, in makeEmptyRoundTrip
5:     ms["int32"][SCALAR].make_empty(np.dtype("int32"), 15)
5: RuntimeError: Datatype 'l' not known in 'dtype_from_numpy'!
5: 
5: ======================================================================
5: ERROR: testParticlePatches (API.APITest.APITest)
5: ----------------------------------------------------------------------
5: Traceback (most recent call last):
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 1829, in testParticlePatches
5:     self.backend_particle_patches(ext)
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 1775, in backend_particle_patches
5:     e.particle_patches["numParticles"][SCALAR].store(0, np.uint64(10))
5: RuntimeError: Datatypes of patch data (ULONGLONG) and dataset (ULONG) do not match.
5: 
5: ======================================================================
5: FAIL: testCloseIteration (API.APITest.APITest)
5: ----------------------------------------------------------------------
5: Traceback (most recent call last):
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 1928, in testCloseIteration
5:     self.makeCloseIterationRoundTrip(ext)
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 1898, in makeCloseIterationRoundTrip
5:     self.assertEqual(data[i], chunk[i])
5: AssertionError: np.int64(6) != np.int64(4620242857719391846)
5: 
5: ======================================================================
5: FAIL: testIterator (API.APITest.APITest)
5: ----------------------------------------------------------------------
5: Traceback (most recent call last):
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 2004, in testIterator
5:     self.makeIteratorRoundTrip(b, backend_filesupport[b])
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 1986, in makeIteratorRoundTrip
5:     self.assertEqual(data[i], chunk[i])
5: AssertionError: np.int64(4) != np.int32(0)
5: 
5: ======================================================================
5: FAIL: testWriteFromTemporary (API.APITest.APITest)
5: ----------------------------------------------------------------------
5: Traceback (most recent call last):
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 2119, in testWriteFromTemporary
5:     self.writeFromTemporary(ext)
5:   File "C:\projects\openpmd-api\test\python\unittest\API\APITest.py", line 2111, in writeFromTemporary
5:     np.testing.assert_allclose(
5:   File "C:\Miniconda37-x64\lib\site-packages\numpy\testing\_private\utils.py", line 1715, in assert_allclose
5:     assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
5:   File "C:\Miniconda37-x64\lib\site-packages\numpy\testing\_private\utils.py", line 921, in assert_array_compare
5:     raise AssertionError(msg)
5: AssertionError: 
5: Not equal to tolerance rtol=1e-07, atol=0
5: 
5: Mismatched elements: 5 / 9 (55.6%)
5: Max absolute difference among violations: 21474836477
5: Max relative difference among violations: 8.58993459e+09
5:  ACTUAL: array([[          1, 17179869186, 21474836480],
5:        [          7,           8,           9],
5:        [          7,           8,           9]])
5:  DESIRED: array([[1, 2, 3],
5:        [4, 5, 6],
5:        [7, 8, 9]])

Example.py.7_extended_write_serial

29:   File "C:\projects\openpmd-api\build\bin\7_extended_write_serial.py", line 180, in <module>
29:     electrons.particle_patches["numParticles"].store(
29: RuntimeError: Datatypes of patch data (ULONGLONG) and dataset (ULONG) do not match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants