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

Fails tests #32

Open
mouse07410 opened this issue Feb 18, 2025 · 1 comment
Open

Fails tests #32

mouse07410 opened this issue Feb 18, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mouse07410
Copy link

MacOS 15.4.1, Xcode-16.2, Python-3.13, pycrate-0.7.8 (current master here).

Installation seems to succeed:

$ sudo python3 setup.py install
.  .  .
 s = re.sub('[\s\(\)\'-/]', '', s).strip()
Adding pycrate 0.7.8 to easy-install.pth file
Installing pycrate_map_op_info.py script to /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin
Installing pycrate_gtp_type_info.py script to /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin
Installing pycrate_berdecode.py script to /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin
Installing pycrate_extnas_demo.py script to /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin
Installing pycrate_asn1compile.py script to /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin
Installing pycrate_shownas.py script to /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin
Installing pycrate_certdecode.py script to /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin
Installing pycrate_showmedia.py script to /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin

Installed /opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pycrate-0.7.8-py3.13.egg
Processing dependencies for pycrate==0.7.8
Finished processing dependencies for pycrate==0.7.8
$ 

Tests, however, fail:

$ python -m unittest test.test_pycrate
warning: CryptoMobile Python module not found, unable to handle LTE NAS security
warning: CryptoMobile Python module not found, unable to handle 5G NAS security
E
======================================================================
ERROR: test_pycrate (unittest.loader._FailedTest.test_pycrate)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_pycrate
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/unittest/loader.py", line 137, in loadTestsFromName
    module = __import__(module_name)
  File "/Users/ur20980/src/pycrate/test/test_pycrate.py", line 47, in <module>
    from test.test_sedebugmux  import *
  File "/Users/ur20980/src/pycrate/test/test_sedebugmux.py", line 32, in <module>
    from pycrate_osmo.SEDebugMux import *
  File "/Users/ur20980/src/pycrate/pycrate_osmo/SEDebugMux.py", line 31, in <module>
    import crcmod
ModuleNotFoundError: No module named 'crcmod'


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
$
@mitshell
Copy link
Member

You are missing one of the optional dependency: https://github.com/pycrate-org/pycrate?tab=readme-ov-file#dependencies. I admit this test should better be skipped if the module is not found.

@mitshell mitshell self-assigned this Feb 23, 2025
@mitshell mitshell added the enhancement New feature or request label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants