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

import error in devel version #80

Open
susnicek opened this issue Jun 28, 2022 · 5 comments
Open

import error in devel version #80

susnicek opened this issue Jun 28, 2022 · 5 comments

Comments

@susnicek
Copy link

Dear developers of zugbruecke,
while the version 0.0.15 of zugbruecke works well for me, the development version 0.1.0 shows the following error with call importzugbruecke.ctypes as ctypes :

>>> import zugbruecke.ctypes as ctypes /home/xxx/Applications/python_env/lib/python3.10/site-packages/requests/__init__.py:109: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn( Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/xxx/Applications/python_env/lib/python3.10/site-packages/zugbruecke/ctypes/__init__.py", line 44, in <module> _session = _CtypesSession() File "/home/xxx/Applications/python_env/lib/python3.10/site-packages/zugbruecke/core/session.py", line 129, in __init__ self._current_session = SessionClient(config=Config(**kwargs)) File "/home/xxx/Applications/python_env/lib/python3.10/site-packages/zugbruecke/core/session_client.py", line 117, in __init__ env.ensure() File "/home/xxx/Applications/python_env/lib/python3.10/site-packages/wenv/_core/env.py", line 238, in ensure self.setup_pip() File "/home/xxx/Applications/python_env/lib/python3.10/site-packages/wenv/_core/env.py", line 439, in setup_pip proc = subprocess.Popen( File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'wenv'

This error appears in fresh python virtual enviroment as well as with zuegbruecke installed in system python struccture. Any idea what to do?
My OS is: Debian sid: SMP PREEMPT_DYNAMIC Debian 5.18.5-1 (2022-06-16) x86_64 GNU/Linux
My Python is: Python 3.10.5 (main, Jun 8 2022, 09:26:22) [GCC 11.3.0]

Bests, susnicek

@s-m-e
Copy link
Member

s-m-e commented Jun 28, 2022

I split the package into two parts a while ago. Most of the plumbing related to Wine is handled by wenv now. You need to install its latest development version, too. I am "a little" overdue with publishing new releases for both packages ...

@s-m-e s-m-e added the question label Jun 28, 2022
@melvyn2
Copy link
Contributor

melvyn2 commented Jul 23, 2022

I had the same error due to my user-local pip bin directory not being in PATH. This package should probably call it by using python -m wenv instead, but in the mean time, try adding the location of pip's bin directory to your path.

@s-m-e
Copy link
Member

s-m-e commented Sep 11, 2022

I touched a fair bit of related code recently, as part of today's upcoming release of v0.1.0. If possible, please test it and let me know of the error persists.

@s-m-e
Copy link
Member

s-m-e commented Dec 22, 2022

Is this issue still present?

@s-m-e s-m-e added the bug label Dec 22, 2022
@melvyn2
Copy link
Contributor

melvyn2 commented Dec 23, 2022

Nope, still the same error if wenv is not in the path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants