question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Another string parsing to int error, in report page this time

See original GitHub issue

Error:

2020-04-21 14:26:23,858 - scout.server.app - ERROR: Exception on /reports/report [POST] [in /home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py:1892]
Traceback (most recent call last):
  File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/chanjo_report/server/blueprints/report/views.py", line 73, in report
    gene_ids = [int(gene_id.strip()) for gene_id in raw_gene_ids.split(',')]
  File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/chanjo_report/server/blueprints/report/views.py", line 73, in <listcomp>
    gene_ids = [int(gene_id.strip()) for gene_id in raw_gene_ids.split(',')]
ValueError: invalid literal for int() with base 10: 'IDU

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
moonsocommented, Apr 27, 2020

Should work now

1reaction
northwestwitchcommented, Apr 27, 2020

Thanks @moonso, moving this issue to chanjo-report: https://github.com/Clinical-Genomics/chanjo-report/issues/5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python String to Int, Int to String - DigitalOcean
This exception occurs if the string you want to convert does not represent any numbers.
Read more >
Converting String to Int using try/except in Python
So I'm pretty stumped on how to convert a string into an int using the try/except function.
Read more >
Solved: Error while convert string to number
Solved: Hi, I have 2 variables: 1 is string and 1 is integer. The string value already get from a table and substring...
Read more >
10 Reasons of java.lang.NumberFormatException in ... - Java67
This error comes when you try to convert a String into numeric data types e.g., int, float, double, long, short, char, or byte....
Read more >
Error : Cannot convert value " of type Text to type Integer
Error : Cannot convert value " of type Text to type Integer · Select the column with a left click · In the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found