ValueError: invalid literal for int() with base 10: ''

Bug #526580 reported by kinu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wiithon
Fix Released
Low
Carlo Mandelli

Bug Description

Arch linux here.

Wiithon 1.1 said it can recognize the WBFS partition (WBFS Manager XP running on VirtualBox does recognize it), so I tried trunk branch. I did

python /usr/share/wiithon/wiithon.py

and I got

/usr/share/wiithon/util.py:409: SADeprecationWarning: The 'transactional' argument to sessionmaker() is deprecated; use autocommit=True|False instead.
  Session = scoped_session(sessionmaker(bind=db, autoflush=True, transactional=True))
Traceback (most recent call last):
  File "/usr/share/wiithon/wiithon.py", line 146, in <module>
    App()
  File "/usr/share/wiithon/wiithon.py", line 52, in App
    num_wiithonActivo = int(util.getSTDOUT(comando))
ValueError: invalid literal for int() with base 10: ''

So,

Can you help, please?

kInU

Revision history for this message
kinu (mvmiguel) wrote :

Sorry. This is obviously for "Answers" Too fast, too quick, too bad. Sorry again. Please, any administrator to change this to the right site?? kInU

Revision history for this message
Carlo Mandelli (camandel) wrote :

Please, install wiithon 1.21-r478 and try this test :

$ pgrep -fc python.*\/usr\/games\/wiithon

It should display 0 (zero).

then run wiithon with:

/usr/games/wiithon

Revision history for this message
kinu (mvmiguel) wrote :

As I understand wiithon 1.21-r478 is the trunk branch, isn't it?

Well pgrep does not understand "c", but it does not show any process.

The result of /usr/games/wiithon is

Traceback (most recent call last):
  File "/usr/games/wiithon", line 146, in <module>
    App()
  File "/usr/games/wiithon", line 52, in App
    num_wiithonActivo = int(util.getSTDOUT(comando))
ValueError: invalid literal for int() with base 10: ''

Revision history for this message
Ricardo Marmolejo García (makiolo) wrote :

I think it is fix in rev 381. Need test it.

Changed in wiithon:
importance: Undecided → Low
summary: - can run wiithon trunk branch
+ ValueError: invalid literal for int() with base 10: ''
Changed in wiithon:
status: New → Fix Committed
Revision history for this message
Carlo Mandelli (camandel) wrote :

I will revert to use "grep" instead of "pgrep" for distos with old procps package.

Changed in wiithon:
status: Fix Committed → In Progress
assignee: nobody → Carlo Mandelli (camandel)
Revision history for this message
Carlo Mandelli (camandel) wrote :

Fix committed in 1.21-r483

Changed in wiithon:
status: In Progress → Fix Committed
Revision history for this message
kinu (mvmiguel) wrote :

Thank you.

Changed in wiithon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.