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

Compile nrppa using PER fail #165

Open
CoderHuo opened this issue Jul 21, 2023 · 0 comments
Open

Compile nrppa using PER fail #165

CoderHuo opened this issue Jul 21, 2023 · 0 comments

Comments

@CoderHuo
Copy link
Contributor

Compile nrppa using PER fail
The nrppa asn file
https://github.com/CoderHuo/learn-python3/blob/9725872fc3c3db0af490c1270b565386d75c62a1/NRPPa.asn#L9

The Traceback:
Traceback (most recent call last):
File "C:/Users/shhuo/IdeaProjects/agnss/asn1lib/base.py", line 20, in
nrppaCompile = asn1tools.compile_files(nrppaPath, 'per')
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\compiler.py", line 376, in compile_files
return compile_dict(parse_files(filenames, encoding),
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\compiler.py", line 308, in compile_dict
return Specification(codec.compile_dict(specification,
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\codecs\per.py", line 2247, in compile_dict
return Compiler(specification, numeric_enums).process()
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\codecs\compiler.py", line 210, in process
self.pre_process()
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\codecs\compiler.py", line 257, in pre_process
self.pre_process_parameterization_step_1(module['types'],
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\codecs\compiler.py", line 529, in pre_process_parameterization_step_1
self.pre_process_parameterization_step_1_type(type_descriptor,
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\codecs\compiler.py", line 548, in pre_process_parameterization_step_1_type
self.pre_process_parameterization_step_1_type(member,
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\codecs\compiler.py", line 590, in pre_process_parameterization_step_1_type
self.pre_process_parameterization_step_1_dummy_to_actual_type(
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\codecs\compiler.py", line 629, in pre_process_parameterization_step_1_dummy_to_actual_type
self.pre_process_parameterization_step_1_dummy_to_actual_type(
File "C:\Users\shhuo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\asn1tools\codecs\compiler.py", line 643, in pre_process_parameterization_step_1_dummy_to_actual_type
if parameter['type'] == dummy_parameter:
TypeError: string indices must be integers

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

1 participant