Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-05-2019, 09:11 PM)snippsat Wrote: Try only. pip install opencv-python The do test import cv2 and see if get any errors.
Now it gives another error
Could not install packages due to an Enviro... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-05-2019, 09:19 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-05-2019, 06:34 PM)snippsat Wrote: Do: python -m pip install --user numpy -I pip install opencv-python Test that it work: G:\Anaconda3 λ python Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-05-2019, 08:24 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-05-2019, 03:26 PM)snippsat Wrote: (Jan-05-2019, 02:42 PM)gkiller007 Wrote: So, maybe i messed up on the instalation of Anaconda 3 right? What do you suggest? unnintall everyting and install a... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-05-2019, 04:31 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-05-2019, 02:38 PM)snippsat Wrote: (Jan-05-2019, 02:16 PM)gkiller007 Wrote: I'm using Anaconda 3, is this problem of reading the path, related with this Ide? Then error should never point to m... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-05-2019, 02:42 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-05-2019, 03:47 AM)snippsat Wrote: Are you using Anaconda3 or miniconda? Error:error: OpenCV(3.4.2) c:\miniconda3\conda-bld\opencv-suite_1534379934306\... The error comes from miniconda,but you ... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-05-2019, 02:16 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-05-2019, 01:49 AM)ichabod801 Wrote: file is only defined in the function. It does not exist outside the function. You need to return it from the function to use it elsewhere. Also, file is a re... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-05-2019, 02:27 AM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-04-2019, 06:52 PM)nilamo Wrote: Ok but the error is saying the module was never imported. So if it was imported, please share all of your code as it currently exists.
this is the complete code... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-04-2019, 11:59 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-04-2019, 06:39 PM)Axel_Erfurt Wrote: add import os on top
I've already put that import since i started |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-04-2019, 06:43 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-04-2019, 06:21 PM)Axel_Erfurt Wrote: add / C:/Users/gonca/Desktop/landscape/' + file C:/Users/gonca/Desktop/cityscape/' + file
dir1 = os.listdir('C:/Users/gonca/Desktop/cityscape/' + file)
dir2... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-04-2019, 06:32 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-04-2019, 05:00 PM)nilamo Wrote: So the files you're trying to open are in C:\Users\gonca\Anaconda3\lib\site-packages\Desktop\cityscape and C:\Users\gonca\Anaconda3\lib\site-packages\Desktop\lan... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-04-2019, 05:12 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-04-2019, 04:41 PM)Axel_Erfurt Wrote: Do you saved your file in C:\Users\gonca\Anaconda3\lib\site-packages ? If so, that's not a good idea.
No, it is saved at desktop, the project itself and the... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-04-2019, 04:49 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-04-2019, 04:28 PM)Axel_Erfurt Wrote: (Jan-04-2019, 04:08 PM)gkiller007 Wrote: Where do i find the absolute path? import os import sys try: root = os.path.dirname(os.path.abspath(__file__)) e... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-04-2019, 04:34 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
(Jan-04-2019, 03:59 PM)nilamo Wrote: What's the absolute path of where you're running the python file? That could be different than wherever the file is saved, especially if you're running it from ... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-04-2019, 04:08 PM |
|
|
Thread: Problem with reading a path
Post: RE: Problem with reading a path
yes, i've tried without the initial './' and i've got the same error |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-04-2019, 03:42 PM |
|
|
Thread: Problem with reading a path
Post: Problem with reading a path
i'm having a problem on reading a path that contains a group of images, i have the paths on my desktop but i can't read them
Can you guys help me?
I have the exact code on a computers friend and it ... |
|
gkiller007 |
General Coding Help |
30 |
23,011 |
Jan-04-2019, 03:34 PM |
|
|
Thread: error: (-215:Assertion failed)
Post: error: (-215:Assertion failed)
Hello everyone
I'm getting this error:
error Traceback (most recent call last)
<ipython-input-18-1ea0691ca06e> in <module>
1 dir1 = os.listdir(r... |
|
gkiller007 |
General Coding Help |
1 |
8,673 |
Jan-04-2019, 02:20 AM |