user_agent icon indicating copy to clipboard operation
user_agent copied to clipboard

for windows not work

Open zodman opened this issue 6 years ago • 14 comments

https://github.com/lorien/user_agent/blob/9af2d1a243338d667027491da67d75a4545ef84e/user_agent/device.py#L7


SMARTPHONE_DEV_IDS = json.load(open(os.path.join(
    PACKAGE_DIR, 'data/smartphone_dev_id.json')))

this path on windows didnt exists

correct way:

SMARTPHONE_DEV_IDS = json.load(open(os.path.join(
    PACKAGE_DIR, 'data','smartphone_dev_id.json')))

zodman avatar May 15 '18 03:05 zodman

What windows and python versions? I run tests on appveyor platform (windows) and they pass: https://ci.appveyor.com/project/lorien/user-agent Could you provide minimal code that does not work?

lorien avatar May 15 '18 09:05 lorien

No answer. Closing.

lorien avatar Nov 07 '20 02:11 lorien

having problems with this also using pyinstaller on windows

MCTRACO avatar Apr 28 '21 18:04 MCTRACO

also having issues with this using pyinstaller on windows

sc0ned avatar Jul 17 '21 23:07 sc0ned

Подтверждаю выше сказанное, с pyinstaller есть такая проблема досихпор

Aleksandr66 avatar Nov 30 '21 10:11 Aleksandr66

До сих пор есть такая проблема

HamerLolKekChegoo avatar Aug 26 '22 20:08 HamerLolKekChegoo

@HamerLolKekChegoo @Aleksandr66 @sc0ned

Does pyinstaller works correctly with a fix suggesed in 1 message https://github.com/lorien/user_agent/issues/27#issue-323050178 ?

lorien avatar Aug 27 '22 07:08 lorien

@lorien If I understand correctly, this should be inserted into the working file?

HamerLolKekChegoo avatar Aug 27 '22 07:08 HamerLolKekChegoo

You need to clone repository, apply fix to source code, then use patched user_agent library with pyinstaller.

lorien avatar Aug 27 '22 07:08 lorien

Hello guys. I have changed the way of loading package data. No data is loaded with "pkgutil.get_data()" function. That possibly fixes pyinstaller issue. Please test pyinstaller with recent version of user_agent in githu repo. I have not uploaded new package to pypi yet.

lorien avatar Dec 12 '22 23:12 lorien

someone find how fixe this please ? SMARTPHONE_DEV_IDS = json.load(open(os.path.join( PACKAGE_DIR, 'data/smartphone_dev_id.json')))

Venon282 avatar Mar 15 '23 08:03 Venon282

@Venon282 try to use latest version of user_agent from repository, I have changed there the method of loading data from JSON files. This change is not released yet as pypi package.

lorien avatar Mar 15 '23 08:03 lorien

Could you tell me how you did please ? I don't use user_agent but i have this problem on my own application

Venon282 avatar Mar 15 '23 08:03 Venon282

@Venon282 I have no idea what you are talking about.

lorien avatar Mar 15 '23 08:03 lorien