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

running the tests fails with missing file naughty-strings/blns.json #113

Closed
varioustoxins opened this issue Jan 25, 2023 · 1 comment
Closed

Comments

@varioustoxins
Copy link

Make sure the library can handle odd strings.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/xxxx/PyNMRSTAR/pynmrstar/unit_tests/__init__.py", line 57, in test_odd_strings
    with open(os.path.join(our_path, 'naughty-strings/blns.json')) as odd_string_file:
FileNotFoundError: [Errno 2] No such file or directory: '/xxx/PyNMRSTAR/pynmrstar/unit_tests/naughty-strings/blns.json'
@jonwedell
Copy link
Member

I'd recommend installing pynmrstar from PyPI or install it using setup.py if at all possible rather than running it out of a local directory - otherwise you'll need to either manually compile the C extension for faster tokenization and formatting, or it will run far slower.

If you want to run the unit tests locally, you'll need to check out the naughty-strings submodule. To do that, go to the root of your pynmrstar checkout and run

git submodule init
git submodule update

and then the units tests will 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

2 participants