* [ISSUE] python3-magic and pass-import problem
@ 2020-07-12 10:20 bda65
2020-07-12 13:12 ` bda65
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: bda65 @ 2020-07-12 10:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]
New issue by bda65 on void-packages repository
https://github.com/void-linux/void-packages/issues/23535
Description:
### System
x86_64 Glibc
* xuname:
*Void 5.7.8_1 x86_64 GenuineIntel uptodate rrFFFF
* packages:
*python3-magic-0.4.18_1
*pass-import-3.0_1
### Actual behavior
Import from cvs file (exported from firefox) return this:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/site-packages/pass_import/__main__.py", line 425, in <module>
main()
File "/usr/lib/python3.8/site-packages/pass_import/__main__.py", line 407, in main
decryptsource(conf)
File "/usr/lib/python3.8/site-packages/pass_import/__main__.py", line 260, in decryptsource
frmt, encoding = get_magics(path)
File "/usr/lib/python3.8/site-packages/pass_import/tools.py", line 42, in get_magics
res = magic.detect_from_content(header)
AttributeError: module 'magic' has no attribute 'detect_from_content'
### Steps to reproduce the behavior
pass import csv file.csv --cols 'url,login,pass'
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: python3-magic and pass-import problem
2020-07-12 10:20 [ISSUE] python3-magic and pass-import problem bda65
@ 2020-07-12 13:12 ` bda65
2020-07-12 23:38 ` sgn
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bda65 @ 2020-07-12 13:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 227 bytes --]
New comment by bda65 on void-packages repository
https://github.com/void-linux/void-packages/issues/23535#issuecomment-657220073
Comment:
It seem to be corrected here [https://github.com/roddhjav/pass-import/issues/103](url)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: python3-magic and pass-import problem
2020-07-12 10:20 [ISSUE] python3-magic and pass-import problem bda65
2020-07-12 13:12 ` bda65
@ 2020-07-12 23:38 ` sgn
2020-07-13 0:04 ` sgn
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2020-07-12 23:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 220 bytes --]
New comment by bda65 on void-packages repository
https://github.com/void-linux/void-packages/issues/23535#issuecomment-657220073
Comment:
It seem to be corrected here https://github.com/roddhjav/pass-import/issues/103
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: python3-magic and pass-import problem
2020-07-12 10:20 [ISSUE] python3-magic and pass-import problem bda65
2020-07-12 13:12 ` bda65
2020-07-12 23:38 ` sgn
@ 2020-07-13 0:04 ` sgn
2020-07-13 0:32 ` sgn
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2020-07-13 0:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 195 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/23535#issuecomment-657296320
Comment:
Yes, `pass-import` needs `file-magic` instead of `magic`
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: python3-magic and pass-import problem
2020-07-12 10:20 [ISSUE] python3-magic and pass-import problem bda65
` (2 preceding siblings ...)
2020-07-13 0:04 ` sgn
@ 2020-07-13 0:32 ` sgn
2020-07-13 13:05 ` bda65
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2020-07-13 0:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 215 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/23535#issuecomment-657300892
Comment:
There's a serious test failure when packaging this. I'll look into it later.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: python3-magic and pass-import problem
2020-07-12 10:20 [ISSUE] python3-magic and pass-import problem bda65
` (3 preceding siblings ...)
2020-07-13 0:32 ` sgn
@ 2020-07-13 13:05 ` bda65
2020-07-13 13:15 ` sgn
2020-07-13 14:36 ` [ISSUE] [CLOSED] " sgn
6 siblings, 0 replies; 8+ messages in thread
From: bda65 @ 2020-07-13 13:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
New comment by bda65 on void-packages repository
https://github.com/void-linux/void-packages/issues/23535#issuecomment-657548688
Comment:
Thanks :)
I've patched manually with any test. It work well with firefox import.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: python3-magic and pass-import problem
2020-07-12 10:20 [ISSUE] python3-magic and pass-import problem bda65
` (4 preceding siblings ...)
2020-07-13 13:05 ` bda65
@ 2020-07-13 13:15 ` sgn
2020-07-13 14:36 ` [ISSUE] [CLOSED] " sgn
6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2020-07-13 13:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/23535#issuecomment-657553664
Comment:
On 2020-07-13 06:06:10-0700, bda65 <notifications@github.com> wrote:
> Thanks :)
> I've patched manually with any test. It work well with firefox import.
I can publish python3-file-magic right now. And it'll works for you.
But, it's annoying me that detect_from_content on content extracted
from Python scripts count as application/octet-stream
Other two tests also fails, but they report text/x-script.python
Which is correct.
--
Danh
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [ISSUE] [CLOSED] python3-magic and pass-import problem
2020-07-12 10:20 [ISSUE] python3-magic and pass-import problem bda65
` (5 preceding siblings ...)
2020-07-13 13:15 ` sgn
@ 2020-07-13 14:36 ` sgn
6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2020-07-13 14:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]
Closed issue by bda65 on void-packages repository
https://github.com/void-linux/void-packages/issues/23535
Description:
### System
x86_64 Glibc
* xuname:
*Void 5.7.8_1 x86_64 GenuineIntel uptodate rrFFFF
* packages:
*python3-magic-0.4.18_1
*pass-import-3.0_1
### Actual behavior
Import from cvs file (exported from firefox) return this:
```
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/site-packages/pass_import/__main__.py", line 425, in <module>
main()
File "/usr/lib/python3.8/site-packages/pass_import/__main__.py", line 407, in main
decryptsource(conf)
File "/usr/lib/python3.8/site-packages/pass_import/__main__.py", line 260, in decryptsource
frmt, encoding = get_magics(path)
File "/usr/lib/python3.8/site-packages/pass_import/tools.py", line 42, in get_magics
res = magic.detect_from_content(header)
AttributeError: module 'magic' has no attribute 'detect_from_content'
```
### Steps to reproduce the behavior
```
pass import csv file.csv --cols 'url,login,pass'
```
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-07-13 14:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-12 10:20 [ISSUE] python3-magic and pass-import problem bda65
2020-07-12 13:12 ` bda65
2020-07-12 23:38 ` sgn
2020-07-13 0:04 ` sgn
2020-07-13 0:32 ` sgn
2020-07-13 13:05 ` bda65
2020-07-13 13:15 ` sgn
2020-07-13 14:36 ` [ISSUE] [CLOSED] " sgn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).